]> cat aescling's git repositories - mastodon.git/commitdiff
Fix bug
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 2 Feb 2017 15:57:09 +0000 (16:57 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 2 Feb 2017 15:57:09 +0000 (16:57 +0100)
app/channels/application_cable/channel.rb

index f57bcc56aa03d1e0e608ee9cc76d63dd5dbb0809..344511caeb48115fd53572004ee2899f5c736ac9 100644 (file)
@@ -5,11 +5,11 @@ module ApplicationCable
     protected
 
     def hydrate_status(encoded_message)
-      message = OJ.load(encoded_message)
+      message = Oj.load(encoded_message)
 
       return [nil, message] if message['event'] == 'delete'
 
-      status_json = OJ.load(message['payload'])
+      status_json = Oj.load(message['payload'])
       status      = Status.find(status_json['id'])
 
       [status, message]