about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-05 18:58:32 +0200
committerGitHub <noreply@github.com>2017-04-05 18:58:32 +0200
commitc9ebd5d19fccaabd1192f5e61537251c2c2d782e (patch)
treeee849d7bc74fabe9685caa903cce35fe9422ceae /app
parent1b8c244dff84ae981d89a1672a9db06f08cf405e (diff)
Fix wrong variable used in publish channel
Diffstat (limited to 'app')
-rw-r--r--app/workers/push_update_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/push_update_worker.rb b/app/workers/push_update_worker.rb
index 9d16c20bf..166a9b449 100644
--- a/app/workers/push_update_worker.rb
+++ b/app/workers/push_update_worker.rb
@@ -15,7 +15,7 @@ class PushUpdateWorker
       scope: InlineRablScope.new(account)
     )
 
-    Redis.current.publish("timeline:#{timeline_id}", Oj.dump({ event: :update, payload: message, queued_at: (Time.now.to_f * 1000.0).to_i }))
+    Redis.current.publish("timeline:#{account.id}", Oj.dump({ event: :update, payload: message, queued_at: (Time.now.to_f * 1000.0).to_i }))
   rescue ActiveRecord::RecordNotFound
     true
   end