From abfd0c107c8003ba06a118625c49d22df553696f Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 14 Aug 2020 02:41:44 -0500 Subject: [Command Tags] Add #!notify toggle to allow toggling whether or not a post should be locally delivered to timelines/notifications --- app/workers/distribution_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers') 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 -- cgit