about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/post_status_service.rb4
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