diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-04 02:56:23 +0100 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-01-04 10:56:23 +0900 |
commit | 02e3e1ec09e8885dbaeb063afd4d3d3f1f32031c (patch) | |
tree | 26c62c7d046b6e64ae2b8fb9a0206de1a8e760b5 /app/helpers/admin | |
parent | ff924f95bbb9ed728bbc95cab1651cc788e1351b (diff) |
Fix nil error in log_target_from_history helper (#6173)
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 e85243e57..4475034a5 100644 --- a/app/helpers/admin/action_logs_helper.rb +++ b/app/helpers/admin/action_logs_helper.rb @@ -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 |