about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 01:44:05 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 01:44:05 -0600
commit5d864b1e40fde9d42c4da0544f57bf7eefe2eca4 (patch)
treefcdc70f55e1b5c353e25e6bd4a9c3397afcdb377 /app
parentc717c34bd799ebe4d1b9f51b67e829a0acdf7ed0 (diff)
add `process_mentions` boolean to post worker
Diffstat (limited to 'app')
-rw-r--r--app/workers/post_status_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb
index 56ebb4453..9d9bb93db 100644
--- a/app/workers/post_status_worker.rb
+++ b/app/workers/post_status_worker.rb
@@ -8,7 +8,7 @@ class PostStatusWorker
     return false if status.destroyed?
 
     status.update(options.slice(:visibility, :local_only, :reject_replies, :hidden).compact)
-    process_mentions_service.call(status, skip_process: true) unless options[:nomentions]
+    process_mentions_service.call(status, skip_process: options[:process_mentions] != true) unless options[:nomentions]
 
     LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text.present?
     DistributionWorker.perform_async(status.id) unless options[:distribute] == false