From 2ac0b20c5c917d8a25fdfb6e04a56fb3fa80233f Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 18 Nov 2019 05:29:21 -0600 Subject: Be more specific about checking for the truthiness of `nomentions`. --- app/workers/post_status_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers') diff --git a/app/workers/post_status_worker.rb b/app/workers/post_status_worker.rb index 99f2c2e99..7b44c9a54 100644 --- a/app/workers/post_status_worker.rb +++ b/app/workers/post_status_worker.rb @@ -14,7 +14,7 @@ class PostStatusWorker status.reject_replies = options[:reject_replies] if options[:reject_replies] status.save! - process_mentions_service.call(status) unless options[:nomentions] + process_mentions_service.call(status) unless options[:nomentions].present? LinkCrawlWorker.perform_async(status.id) unless options[:nocrawl] || status.spoiler_text? DistributionWorker.perform_async(status.id) unless options[:distribute] == false -- cgit