about summary refs log tree commit diff
path: root/app/workers/distribution_worker.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-14 02:41:44 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commitabfd0c107c8003ba06a118625c49d22df553696f (patch)
treebb41e6b47b2848233b7830b179a7b2e4df21dd91 /app/workers/distribution_worker.rb
parentd97a574b07cb60e9c2bdd98ace5049e73ee9b861 (diff)
[Command Tags] Add #!notify toggle to allow toggling whether or not a post should be locally delivered to timelines/notifications
Diffstat (limited to 'app/workers/distribution_worker.rb')
-rw-r--r--app/workers/distribution_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/distribution_worker.rb b/app/workers/distribution_worker.rb
index 765cd76c8..049d2732b 100644
--- a/app/workers/distribution_worker.rb
+++ b/app/workers/distribution_worker.rb
@@ -7,7 +7,7 @@ class DistributionWorker
     RedisLock.acquire(redis: Redis.current, key: "distribute:#{status_id}") do |lock|
       if lock.acquired?
         status = Status.find(status_id)
-        FanOutOnWriteService.new.call(status, only_to_self: !status.published? || only_to_self)
+        FanOutOnWriteService.new.call(status, only_to_self: !status.published? || only_to_self || !status.notify?)
       else
         raise Mastodon::RaceConditionError
       end