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][: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][: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]
|
payload[:reblog][:filtered] = payload[:filtered]
|
||||||
<<<<<<< HEAD
|
|
||||||
payload[:reblog][:reactions] = serialized_reactions(account_id)
|
|
||||||
=======
|
|
||||||
payload[:reblog][:reactions] = serialized_reactions(account_id, @status.reblog)
|
payload[:reblog][:reactions] = serialized_reactions(account_id, @status.reblog)
|
||||||
>>>>>>> e3dbd2e6489b90f68b5a207c7561ebf7435f967c
|
|
||||||
|
|
||||||
if payload[:reblog][:poll]
|
if payload[:reblog][:poll]
|
||||||
if @status.reblog.account_id == account_id
|
if @status.reblog.account_id == account_id
|
||||||
@ -94,13 +90,8 @@ class StatusCacheHydrator
|
|||||||
).as_json
|
).as_json
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def serialized_reactions(account_id)
|
|
||||||
reactions = @status.reactions(account_id)
|
|
||||||
=======
|
|
||||||
def serialized_reactions(account_id, status)
|
def serialized_reactions(account_id, status)
|
||||||
reactions = status.reactions(account_id)
|
reactions = status.reactions(account_id)
|
||||||
>>>>>>> e3dbd2e6489b90f68b5a207c7561ebf7435f967c
|
|
||||||
ActiveModelSerializers::SerializableResource.new(
|
ActiveModelSerializers::SerializableResource.new(
|
||||||
reactions,
|
reactions,
|
||||||
each_serializer: REST::ReactionSerializer,
|
each_serializer: REST::ReactionSerializer,
|
||||||
|
Loading…
Reference in New Issue
Block a user