diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-06 22:23:57 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-06 22:23:57 -0500 |
commit | ff22f11aae1cb895f80931510ac1c3a7690c34e2 (patch) | |
tree | b054701af993968368ebe59b3b357bc51cf1c45e /app/services | |
parent | 2329043e7b6480f0fa9328a81b769d0cb7121568 (diff) |
`@options[:delayed]` -> `@options[:delayed].present?`
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/post_status_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 04eda5f33..bd076eaf4 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -61,7 +61,7 @@ class PostStatusService < BaseService schedule_status! else return unless process_status! - if @options[:delayed] || @account&.user&.delayed_roars? + if @options[:delayed].present? || @account&.user&.delayed_roars? delay_for = [5, @account&.user&.delayed_for.to_i].max delay_until = Time.now.utc + delay_for.seconds opts = { @@ -190,7 +190,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] || @options[:nomentions] + process_mentions_service.call(@status) unless @options[:delayed].present? || @options[:nomentions] return true end |