Avoid deleted attributes when building a Status from action log (fixes #8371) (#8373)

th-downstream
ThibG 6 years ago committed by Eugen Rochko
parent bb7dce98a0
commit 653f3d822c

@ -33,7 +33,7 @@ module Admin::ActionLogsHelper
when 'DomainBlock', 'EmailDomainBlock'
link_to attributes['domain'], "https://#{attributes['domain']}"
when 'Status'
tmp_status = Status.new(attributes)
tmp_status = Status.new(attributes.except('reblogs_count', 'favourites_count'))
if tmp_status.account
link_to tmp_status.account&.acct || "##{tmp_status.account_id}", admin_account_path(tmp_status.account_id)
else

Loading…
Cancel
Save