]> cat aescling's git repositories - mastodon.git/commitdiff
Fix timelines for users whose user id and account_id are not the same
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Sep 2016 17:22:27 +0000 (19:22 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Sep 2016 17:22:27 +0000 (19:22 +0200)
app/channels/timeline_channel.rb

index c128fae584f6346c5566f497b81e52e18ab9c17b..4b34f8ed54ed6f181b728ec4143a122b658d6646 100644 (file)
@@ -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