Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Nov 10, 2023
1 parent bfc7b01 commit 8c18d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/status_cache_hydrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def hydrate(account_id)
# We take advantage of the fact that some relationships can only occur with an original status, not
# the reblog that wraps it, so we can assume that some values are always false
if payload[:reblog]
hydrate_reblog_payload(payload, account_id)
hydrate_reblog_payload(payload, account_id, account)
else
hydrate_non_reblog_payload(payload, account_id, account)
end
Expand All @@ -43,7 +43,7 @@ def hydrate_non_reblog_payload(empty_payload, account_id, account)
end
end

def hydrate_reblog_payload(empty_payload, account_id)
def hydrate_reblog_payload(empty_payload, account_id, account)
empty_payload.tap do |payload|
payload[:muted] = false
payload[:bookmarked] = false
Expand Down

0 comments on commit 8c18d76

Please sign in to comment.