mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:22:26 -05:00 
			
		
		
		
	Timeline improvements (#41)
Tidying up. Parent/child statuses now display correctly in status/id/context.
This commit is contained in:
		
					parent
					
						
							
								b4288f3c47
							
						
					
				
			
			
				commit
				
					
						82d9f88e42
					
				
			
		
					 39 changed files with 739 additions and 602 deletions
				
			
		|  | @ -24,14 +24,8 @@ func (p *processor) BoostedBy(account *gtsmodel.Account, targetStatusID string) | |||
| 		return nil, gtserror.NewErrorNotFound(fmt.Errorf("StatusBoostedBy: error fetching target account %s: %s", targetStatus.AccountID, err)) | ||||
| 	} | ||||
| 
 | ||||
| 	l.Trace("going to get relevant accounts") | ||||
| 	relevantAccounts, err := p.db.PullRelevantAccountsFromStatus(targetStatus) | ||||
| 	if err != nil { | ||||
| 		return nil, gtserror.NewErrorNotFound(fmt.Errorf("StatusBoostedBy: error fetching related accounts for status %s: %s", targetStatusID, err)) | ||||
| 	} | ||||
| 
 | ||||
| 	l.Trace("going to see if status is visible") | ||||
| 	visible, err := p.db.StatusVisible(targetStatus, account, relevantAccounts) | ||||
| 	visible, err := p.filter.StatusVisible(targetStatus, account) | ||||
| 	if err != nil { | ||||
| 		return nil, gtserror.NewErrorNotFound(fmt.Errorf("StatusBoostedBy: error seeing if status %s is visible: %s", targetStatus.ID, err)) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue