From 5d864b1e40fde9d42c4da0544f57bf7eefe2eca4 Mon Sep 17 00:00:00 2001 From: multiple creatures <dev@multiple-creature.party> Date: Sun, 16 Feb 2020 01:44:05 -0600 Subject: add `process_mentions` boolean to post worker --- app/workers/post_status_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit