about summary refs log tree commit diff
path: root/app/workers/publish_announcement_reaction_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-01 19:05:21 +0200
committerGitHub <noreply@github.com>2020-07-01 19:05:21 +0200
commit6d23d40420e4548778f3ca4ed9e8cb16e0eb0073 (patch)
tree814fe2ea2f3b6b8ab9db2d12b289ba49db44c8fd /app/workers/publish_announcement_reaction_worker.rb
parente9ea960773ee6a1068623374b21d768918fbc93b (diff)
Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191)
Diffstat (limited to 'app/workers/publish_announcement_reaction_worker.rb')
-rw-r--r--app/workers/publish_announcement_reaction_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/publish_announcement_reaction_worker.rb b/app/workers/publish_announcement_reaction_worker.rb
index 418dc7127..03da56550 100644
--- a/app/workers/publish_announcement_reaction_worker.rb
+++ b/app/workers/publish_announcement_reaction_worker.rb
@@ -14,7 +14,7 @@ class PublishAnnouncementReactionWorker
     payload = Oj.dump(event: :'announcement.reaction', payload: payload)
 
     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
   rescue ActiveRecord::RecordNotFound
     true