|
|
@ -44,6 +44,8 @@ module Admin::ActionLogsHelper
|
|
|
|
'flag'
|
|
|
|
'flag'
|
|
|
|
when 'DomainBlock'
|
|
|
|
when 'DomainBlock'
|
|
|
|
'lock'
|
|
|
|
'lock'
|
|
|
|
|
|
|
|
when 'DomainAllow'
|
|
|
|
|
|
|
|
'plus-circle'
|
|
|
|
when 'EmailDomainBlock'
|
|
|
|
when 'EmailDomainBlock'
|
|
|
|
'envelope'
|
|
|
|
'envelope'
|
|
|
|
when 'Status'
|
|
|
|
when 'Status'
|
|
|
@ -86,7 +88,7 @@ module Admin::ActionLogsHelper
|
|
|
|
record.shortcode
|
|
|
|
record.shortcode
|
|
|
|
when 'Report'
|
|
|
|
when 'Report'
|
|
|
|
link_to "##{record.id}", admin_report_path(record)
|
|
|
|
link_to "##{record.id}", admin_report_path(record)
|
|
|
|
when 'DomainBlock', 'EmailDomainBlock'
|
|
|
|
when 'DomainBlock', 'DomainAllow', 'EmailDomainBlock'
|
|
|
|
link_to record.domain, "https://#{record.domain}"
|
|
|
|
link_to record.domain, "https://#{record.domain}"
|
|
|
|
when 'Status'
|
|
|
|
when 'Status'
|
|
|
|
link_to record.account.acct, ActivityPub::TagManager.instance.url_for(record)
|
|
|
|
link_to record.account.acct, ActivityPub::TagManager.instance.url_for(record)
|
|
|
@ -99,7 +101,7 @@ module Admin::ActionLogsHelper
|
|
|
|
case type
|
|
|
|
case type
|
|
|
|
when 'CustomEmoji'
|
|
|
|
when 'CustomEmoji'
|
|
|
|
attributes['shortcode']
|
|
|
|
attributes['shortcode']
|
|
|
|
when 'DomainBlock', 'EmailDomainBlock'
|
|
|
|
when 'DomainBlock', 'DomainAllow', 'EmailDomainBlock'
|
|
|
|
link_to attributes['domain'], "https://#{attributes['domain']}"
|
|
|
|
link_to attributes['domain'], "https://#{attributes['domain']}"
|
|
|
|
when 'Status'
|
|
|
|
when 'Status'
|
|
|
|
tmp_status = Status.new(attributes.except('reblogs_count', 'favourites_count'))
|
|
|
|
tmp_status = Status.new(attributes.except('reblogs_count', 'favourites_count'))
|
|
|
|