about summary refs log tree commit diff
path: root/app/channels/public_channel.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-23 11:56:04 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-23 11:56:04 +0200
commitabb8f5837ee1fa72d13d255cf29f4ade35f53ece (patch)
treefe377076c65b28cae9e12b74b2bc891dc79a2f08 /app/channels/public_channel.rb
parenta9e40a3d80435431f689b8d19005dd77a8f50224 (diff)
Fix public channel
Diffstat (limited to 'app/channels/public_channel.rb')
-rw-r--r--app/channels/public_channel.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/channels/public_channel.rb b/app/channels/public_channel.rb
index 578cdc001..708eff055 100644
--- a/app/channels/public_channel.rb
+++ b/app/channels/public_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 PublicChannel < ApplicationCable::Channel
   def subscribed
-    stream_from 'timeline:public', lambda do |encoded_message|
+    stream_from 'timeline:public', lambda { |encoded_message|
       message = ActiveSupport::JSON.decode(encoded_message)
 
       status = Status.find_by(id: message['id'])
@@ -10,7 +10,7 @@ class PublicChannel < ApplicationCable::Channel
       message['message'] = FeedManager.instance.inline_render(current_user.account, status)
 
       transmit message
-    end
+    }
   end
 
   def unsubscribed