about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 08:21:48 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 08:21:48 -0600
commit4f8172d2154b10883618f94717f7a183503d72c6 (patch)
tree43737e3cab508d88ebfda5f7735c78f41d14c494 /app
parent8d5b0d64487e9432fd7b7f7108e15c5dd93f10e3 (diff)
Improve readability somewhat.
Diffstat (limited to 'app')
-rw-r--r--app/services/post_status_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 50991b10b..6b3d10584 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -61,7 +61,8 @@ class PostStatusService < BaseService
       schedule_status!
     else
       return unless process_status!
-      delay_for = (@options[:delayed].present? || @account&.user&.delayed_roars?) ? [5, @account&.user&.delayed_for.to_i].max : 1
+      is_delayed = @options[:delayed].present? || @account&.user&.delayed_roars?
+      delay_for = is_delayed ? [5, @account&.user&.delayed_for.to_i].max : 1
       delay_until = Time.now.utc + delay_for.seconds
       opts = {
         visibility: @visibility,