Skip to content

Commit

Permalink
fix: error running glitch-soc#1
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaHimesaka1873 committed Aug 24, 2024
1 parent 28899f8 commit 3cd5601
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/lib/status_cache_hydrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ def hydrate_reblog_payload(empty_payload, account_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][: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
Expand Down Expand Up @@ -94,13 +90,8 @@ def serialized_filter(filter)
).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,
Expand Down

0 comments on commit 3cd5601

Please sign in to comment.