set local_only flag on statuses in post_status_service
This commit is contained in:
		
							parent
							
								
									993449ee59
								
							
						
					
					
						commit
						d431bb8930
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -40,8 +40,9 @@ class PostStatusService < BaseService | ||||||
|     LinkCrawlWorker.perform_async(status.id) unless status.spoiler_text? |     LinkCrawlWorker.perform_async(status.id) unless status.spoiler_text? | ||||||
|     DistributionWorker.perform_async(status.id) |     DistributionWorker.perform_async(status.id) | ||||||
| 
 | 
 | ||||||
|     # match both with and without U+FE0F (the emoji variation selector) |     status.local_only = status.marked_local_only? | ||||||
|     unless /👁\ufe0f?\z/.match?(status.content) | 
 | ||||||
|  |     unless status.local_only | ||||||
|       Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id) |       Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id) | ||||||
|       ActivityPub::DistributionWorker.perform_async(status.id) |       ActivityPub::DistributionWorker.perform_async(status.id) | ||||||
|       ActivityPub::ReplyDistributionWorker.perform_async(status.id) if status.reply? && status.thread.account.local? |       ActivityPub::ReplyDistributionWorker.perform_async(status.id) if status.reply? && status.thread.account.local? | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue