浏览代码

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

master
ThibG 5 年前
committed by Eugen Rochko
父节点
当前提交
56f882aed6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/helpers/admin/action_logs_helper.rb

+ 1
- 1
app/helpers/admin/action_logs_helper.rb 查看文件

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


正在加载...
取消
保存