mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix bug
This commit is contained in:
parent
aa2fa227e9
commit
889b814385
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@ module ApplicationCable
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def hydrate_status(encoded_message)
|
def hydrate_status(encoded_message)
|
||||||
message = OJ.load(encoded_message)
|
message = Oj.load(encoded_message)
|
||||||
|
|
||||||
return [nil, message] if message['event'] == 'delete'
|
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 = Status.find(status_json['id'])
|
||||||
|
|
||||||
[status, message]
|
[status, message]
|
||||||
|
|
Loading…
Reference in a new issue