From a82f2e4b824ee09419871d6cbb5284368dd83f24 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 4 Sep 2016 19:22:27 +0200 Subject: [PATCH] Fix timelines for users whose user id and account_id are not the same --- app/channels/timeline_channel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/channels/timeline_channel.rb b/app/channels/timeline_channel.rb index c128fae584f..4b34f8ed54e 100644 --- a/app/channels/timeline_channel.rb +++ b/app/channels/timeline_channel.rb @@ -1,7 +1,7 @@ # Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading. class TimelineChannel < ApplicationCable::Channel def subscribed - stream_from "timeline:#{current_user.id}" + stream_from "timeline:#{current_user.account_id}" end def unsubscribed