diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-04 19:22:27 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-04 19:22:27 +0200 |
commit | a82f2e4b824ee09419871d6cbb5284368dd83f24 (patch) | |
tree | 777ddec3166de294677e653343021a57bdb516d6 /app/channels/timeline_channel.rb | |
parent | a289c1d52fa3330ecdfdaeeefdfbddb4b47c9be0 (diff) |
Fix timelines for users whose user id and account_id are not the same
Diffstat (limited to 'app/channels/timeline_channel.rb')
-rw-r--r-- | app/channels/timeline_channel.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/channels/timeline_channel.rb b/app/channels/timeline_channel.rb index c128fae58..4b34f8ed5 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 |