about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorErin <sylphofelectricity@gmail.com>2017-12-10 17:04:32 -0600
committerErin <sylphofelectricity@gmail.com>2017-12-10 17:04:32 -0600
commitcfbb95605b3f04ad18d668861002dec2fab03441 (patch)
treee16bf90d49628a5cab16bb6c439ec7c8cd5286ea /app
parent08519cd4f4bd290e633d5243e8195111471b7bf0 (diff)
set local_only flag on statuses in post_status_service
Diffstat (limited to 'app')
-rw-r--r--app/services/post_status_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 59531a76c..e531384c8 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -40,8 +40,9 @@ class PostStatusService < BaseService
     LinkCrawlWorker.perform_async(status.id) unless status.spoiler_text?
     DistributionWorker.perform_async(status.id)
 
-    # match both with and without U+FE0F (the emoji variation selector)
-    unless /👁\ufe0f?\z/.match?(status.content)
+    status.local_only = status.marked_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?