Fix nil error in log_target_from_history helper (#6173)

lolsob-rspec
Eugen Rochko 2018-01-04 02:56:23 +01:00 committed by Yamagishi Kazutoshi
parent 321be04a5f
commit 73e1c12daa
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module Admin::ActionLogsHelper
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)
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
end end