logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 02e3e1ec09e8885dbaeb063afd4d3d3f1f32031c
parent: ff924f95bbb9ed728bbc95cab1651cc788e1351b
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Thu,  4 Jan 2018 02:56:23 +0100

Fix nil error in log_target_from_history helper (#6173)


Diffstat:

Mapp/helpers/admin/action_logs_helper.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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