Fix error

This commit is contained in:
KMY 2023-11-10 09:18:22 +09:00
parent bfc7b0101d
commit 8c18d76275

View file

@ -18,7 +18,7 @@ class StatusCacheHydrator
# We take advantage of the fact that some relationships can only occur with an original status, not # 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 # the reblog that wraps it, so we can assume that some values are always false
if payload[:reblog] if payload[:reblog]
hydrate_reblog_payload(payload, account_id) hydrate_reblog_payload(payload, account_id, account)
else else
hydrate_non_reblog_payload(payload, account_id, account) hydrate_non_reblog_payload(payload, account_id, account)
end end
@ -43,7 +43,7 @@ class StatusCacheHydrator
end end
end end
def hydrate_reblog_payload(empty_payload, account_id) def hydrate_reblog_payload(empty_payload, account_id, account)
empty_payload.tap do |payload| empty_payload.tap do |payload|
payload[:muted] = false payload[:muted] = false
payload[:bookmarked] = false payload[:bookmarked] = false