From: Eugen Date: Wed, 5 Apr 2017 16:58:32 +0000 (+0200) Subject: Fix wrong variable used in publish channel X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c9ebd5d19fccaabd1192f5e61537251c2c2d782e;p=mastodon.git Fix wrong variable used in publish channel --- 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