Browse Source

Fix nil error in log_target_from_history helper (#6173)

pull/4/head
Eugen Rochko 6 years ago
committed by Yamagishi Kazutoshi
parent
commit
02e3e1ec09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/helpers/admin/action_logs_helper.rb

+ 1
- 1
app/helpers/admin/action_logs_helper.rb View File

@ -34,7 +34,7 @@ module Admin::ActionLogsHelper
link_to attributes['domain'], "https://#{attributes['domain']}"
when 'Status'
tmp_status = Status.new(attributes)
link_to tmp_status.account.acct, TagManager.instance.url_for(tmp_status)
link_to tmp_status.account&.acct || "##{tmp_status.account_id}", TagManager.instance.url_for(tmp_status)
end
end

Loading…
Cancel
Save