mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 04:22:24 -05:00 
			
		
		
		
	[feature] Receive notification when followed account posts (if desired) (#1680)
* start working on notifs for new posts * tidy up a bit * update swagger * carry over show reblogs + notify from follow req * test notify on status post * update column slice * dedupe update logic + add tests * fix own boosts not being timelined * avoid type check, passing unnecessary accounts * remove unnecessary 'inReplyToID' check * add a couple todo's for future db functions
This commit is contained in:
		
					parent
					
						
							
								c01d2f9b44
							
						
					
				
			
			
				commit
				
					
						093cf2ab12
					
				
			
		
					 17 changed files with 788 additions and 448 deletions
				
			
		|  | @ -164,11 +164,7 @@ func (p *Processor) processCreateStatusFromFederator(ctx context.Context, federa | |||
| 		status.Account = a | ||||
| 	} | ||||
| 
 | ||||
| 	if err := p.timelineStatus(ctx, status); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
| 	if err := p.notifyStatus(ctx, status); err != nil { | ||||
| 	if err := p.timelineAndNotifyStatus(ctx, status); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
|  | @ -327,7 +323,7 @@ func (p *Processor) processCreateAnnounceFromFederator(ctx context.Context, fede | |||
| 		return fmt.Errorf("error adding dereferenced announce to the db: %s", err) | ||||
| 	} | ||||
| 
 | ||||
| 	if err := p.timelineStatus(ctx, incomingAnnounce); err != nil { | ||||
| 	if err := p.timelineAndNotifyStatus(ctx, incomingAnnounce); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
|  | @ -367,7 +363,7 @@ func (p *Processor) processCreateFlagFromFederator(ctx context.Context, federato | |||
| 	// TODO: handle additional side effects of flag creation: | ||||
| 	// - notify admins by dm / notification | ||||
| 
 | ||||
| 	return p.notifyReport(ctx, incomingReport) | ||||
| 	return p.emailReport(ctx, incomingReport) | ||||
| } | ||||
| 
 | ||||
| // processUpdateAccountFromFederator handles Activity Update and Object Profile | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue