diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-05 18:58:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 18:58:32 +0200 |
commit | c9ebd5d19fccaabd1192f5e61537251c2c2d782e (patch) | |
tree | ee849d7bc74fabe9685caa903cce35fe9422ceae /app | |
parent | 1b8c244dff84ae981d89a1672a9db06f08cf405e (diff) |
Fix wrong variable used in publish channel
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/push_update_worker.rb | 2 |
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 |