fix: error running #1
This commit is contained in:
parent
28899f8c3e
commit
3cd560117e
@ -58,11 +58,7 @@ class StatusCacheHydrator
|
||||
payload[:reblog][:bookmarked] = Bookmark.exists?(account_id: account_id, status_id: @status.reblog_of_id)
|
||||
payload[:reblog][:pinned] = StatusPin.exists?(account_id: account_id, status_id: @status.reblog_of_id) if @status.reblog.account_id == account_id
|
||||
payload[:reblog][:filtered] = payload[:filtered]
|
||||
<<<<<<< HEAD
|
||||
payload[:reblog][:reactions] = serialized_reactions(account_id)
|
||||
=======
|
||||
payload[:reblog][:reactions] = serialized_reactions(account_id, @status.reblog)
|
||||
>>>>>>> e3dbd2e6489b90f68b5a207c7561ebf7435f967c
|
||||
|
||||
if payload[:reblog][:poll]
|
||||
if @status.reblog.account_id == account_id
|
||||
@ -94,13 +90,8 @@ class StatusCacheHydrator
|
||||
).as_json
|
||||
end
|
||||
|
||||
<<<<<<< HEAD
|
||||
def serialized_reactions(account_id)
|
||||
reactions = @status.reactions(account_id)
|
||||
=======
|
||||
def serialized_reactions(account_id, status)
|
||||
reactions = status.reactions(account_id)
|
||||
>>>>>>> e3dbd2e6489b90f68b5a207c7561ebf7435f967c
|
||||
ActiveModelSerializers::SerializableResource.new(
|
||||
reactions,
|
||||
each_serializer: REST::ReactionSerializer,
|
||||
|
Loading…
Reference in New Issue
Block a user