Skip to content
Snippets Groups Projects
Commit 02e3e1ec authored by Eugen Rochko's avatar Eugen Rochko Committed by Yamagishi Kazutoshi
Browse files

Fix nil error in log_target_from_history helper (#6173)

parent ff924f95
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment