diff options
author | ThibG <thib@sitedethib.com> | 2018-08-22 20:55:50 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-22 20:55:50 +0200 |
commit | 56f882aed6fc81bbe4fb8821f11ba196795c99a8 (patch) | |
tree | e4b8cf1683f92acafc9aa988745232baf783d5ed /app/helpers/admin | |
parent | 802cf6a4c53175c7da17ded39cf75679fa352385 (diff) |
Avoid deleted attributes when building a Status from action log (fixes #8371) (#8373)
Diffstat (limited to 'app/helpers/admin')
-rw-r--r-- | app/helpers/admin/action_logs_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/admin/action_logs_helper.rb b/app/helpers/admin/action_logs_helper.rb index 85bd30304..c28f0be6b 100644 --- a/app/helpers/admin/action_logs_helper.rb +++ b/app/helpers/admin/action_logs_helper.rb @@ -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 |