From cefcad113031ce580121d33c489d33f59e459fc4 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 24 Jul 2019 16:39:58 -0500 Subject: transparancy - log use of admin related method calls & activitypub auto-rejections to a logger account --- app/lib/activitypub/activity.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/lib/activitypub') diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index fee8fcd25..057a106c3 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -184,6 +184,7 @@ class ActivityPub::Activity def reject_payload! Rails.logger.info("Rejected #{@json['type']} activity #{@json['id']} from #{@account.uri}#{@options[:relayed_through_account] && "via #{@options[:relayed_through_account].uri}"}") + LogWorker.perform_async("Auto-rejected an incoming '#{@json['type']}#{@object && " #{@object['type']}".rstrip}' from #{@json['id']} by #{@account.uri}#{@options[:relayed_through_account] && " via #{@options[:relayed_through_account].uri}"}.") nil end end -- cgit