diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-29 18:17:51 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-29 18:17:51 -0500 |
commit | 0fb1e7888e8f2f83c8f1d6b19a44b6c079251a2e (patch) | |
tree | 8d33a54a5a23ac1776750922597ca17fc0fbb2bc /app/services/post_status_service.rb | |
parent | 9d55cfc6addd0c6f6d3974fab3d66f09972d9fc5 (diff) |
actually let's make the delay time configurable
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r-- | app/services/post_status_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index a61a4f756..e8f785db5 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -59,7 +59,8 @@ class PostStatusService < BaseService else return unless process_status! if @options[:delayed] || @account&.user&.delayed_roars? - delay_until = Time.now.utc + 1.minute + delay_for = [5, @account&.user&.delayed_for.to_i].max + delay_until = Time.now.utc + delay_for.seconds opts = { visibility: @visibility, local_only: @local_only, |