From a9e40a3d80435431f689b8d19005dd77a8f50224 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 22 Oct 2016 19:38:47 +0200 Subject: Adding OAuth access scopes, fixing OAuth authorization UI, adding rate limiting to the API --- app/channels/public_channel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/channels') diff --git a/app/channels/public_channel.rb b/app/channels/public_channel.rb index 5d7fadc1d..578cdc001 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', -> (encoded_message) do + stream_from 'timeline:public', lambda do |encoded_message| message = ActiveSupport::JSON.decode(encoded_message) status = Status.find_by(id: message['id']) -- cgit