diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-07-01 19:23:14 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-07-01 19:23:14 +0200 |
commit | 45deca65b3fb8e9f19818e3db7d315cab0572d1a (patch) | |
tree | 1b9bab6ec764e8a6600d245595facd5694287e16 /app/workers/unpublish_announcement_worker.rb | |
parent | 39a0622de70dc24275808cee9526658bd68a55ed (diff) | |
parent | 6d23d40420e4548778f3ca4ed9e8cb16e0eb0073 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `app/javascript/packs/public.js`: Conflict because part of that file has been split to `app/javascript/core/settings.js`. Ported those changes there.
Diffstat (limited to 'app/workers/unpublish_announcement_worker.rb')
-rw-r--r-- | app/workers/unpublish_announcement_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/unpublish_announcement_worker.rb b/app/workers/unpublish_announcement_worker.rb index e99d70cf8..e58c07554 100644 --- a/app/workers/unpublish_announcement_worker.rb +++ b/app/workers/unpublish_announcement_worker.rb @@ -8,7 +8,7 @@ class UnpublishAnnouncementWorker payload = Oj.dump(event: :'announcement.delete', payload: announcement_id.to_s) FeedManager.instance.with_active_accounts do |account| - redis.publish("timeline:#{account.id}", payload) if redis.exists("subscribed:timeline:#{account.id}") + redis.publish("timeline:#{account.id}", payload) if redis.exists?("subscribed:timeline:#{account.id}") end end end |