]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong variable used in publish channel
authorEugen <eugen@zeonfederated.com>
Wed, 5 Apr 2017 16:58:32 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 16:58:32 +0000 (18:58 +0200)
app/workers/push_update_worker.rb

index 9d16c20bf0a8290e2a66577236c057e8d2e4b73b..166a9b44956625fc25645de0b107e45b44f74693 100644 (file)
@@ -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