diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-29 14:26:41 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-29 14:26:41 -0500 |
commit | 74290d4eb3f6771ad21d9e2c1d0a76d4f76bb263 (patch) | |
tree | a6309badafe748d3a0269d23a00411c8586299d3 /app/services/fan_out_on_write_service.rb | |
parent | 02729ab3ae3f5a59b6c9b84bd24282e9a003e3d2 (diff) |
optional delayed publishing of roars for proofreading
Diffstat (limited to 'app/services/fan_out_on_write_service.rb')
-rw-r--r-- | app/services/fan_out_on_write_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index 235c156f5..b1db23acd 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -3,10 +3,11 @@ class FanOutOnWriteService < BaseService # Push a status into home and mentions feeds # @param [Status] status - def call(status) + def call(status, delayed = false) raise Mastodon::RaceConditionError if status.visibility.nil? deliver_to_self(status) if status.account.local? + return if delayed render_anonymous_payload(status) |