about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 19:22:27 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 19:22:27 +0200
commita82f2e4b824ee09419871d6cbb5284368dd83f24 (patch)
tree777ddec3166de294677e653343021a57bdb516d6 /app
parenta289c1d52fa3330ecdfdaeeefdfbddb4b47c9be0 (diff)
Fix timelines for users whose user id and account_id are not the same
Diffstat (limited to 'app')
-rw-r--r--app/channels/timeline_channel.rb2
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