]> cat aescling's git repositories - mastodon.git/commitdiff
post_status_service: stylistic change (local_only -> local_only?)
authorErin <sylphofelectricity@gmail.com>
Mon, 11 Dec 2017 21:27:31 +0000 (15:27 -0600)
committerErin <sylphofelectricity@gmail.com>
Mon, 11 Dec 2017 21:27:31 +0000 (15:27 -0600)
app/services/post_status_service.rb

index ff6cfbe8f52028e67e4fbc79f80c674e1a92d269..6b6a37676a31e829d8b47fe01ebc3e01fa99929f 100644 (file)
@@ -40,7 +40,7 @@ class PostStatusService < BaseService
     LinkCrawlWorker.perform_async(status.id) unless status.spoiler_text?
     DistributionWorker.perform_async(status.id)
 
-    unless status.local_only
+    unless status.local_only?
       Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
       ActivityPub::DistributionWorker.perform_async(status.id)
       ActivityPub::ReplyDistributionWorker.perform_async(status.id) if status.reply? && status.thread.account.local?