diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-18 05:29:21 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 05:29:21 -0600 |
commit | 2ac0b20c5c917d8a25fdfb6e04a56fb3fa80233f (patch) | |
tree | 4a9ba858dc285a49f3f48d016667b7b98de8c309 | |
parent | 59ef948640cb3c6cc268db29ef91a4f3718597e2 (diff) |
Be more specific about checking for the truthiness of `nomentions`.
-rw-r--r-- | app/services/post_status_service.rb | 2 | ||||
-rw-r--r-- | app/workers/post_status_worker.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 45d66831b..104e4ae9b 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -201,7 +201,7 @@ class PostStatusService < BaseService return false if @status.destroyed? process_hashtags_service.call(@status, @tags, @preloaded_tags) - process_mentions_service.call(@status) unless @options[:delayed].present? || @account&.user&.delayed_roars? || @options[:nomentions] + process_mentions_service.call(@status) unless @options[:delayed].present? || @account&.user&.delayed_roars? || @options[:nomentions].present? return true end 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 |