mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Fix bug
This commit is contained in:
parent
aa2fa227e9
commit
889b814385
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user