don't include `reject_payload!` auto-rejections in logger because that leaks objects sent to the server that weren't supposed to be

staging
multiple creatures 2019-07-24 21:36:13 -05:00
parent bf27f256c5
commit 234fae09ad
1 changed files with 0 additions and 1 deletions

View File

@ -184,7 +184,6 @@ 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("\xf0\x9f\x9a\xab Auto-rejected an incoming '#{@json['type']}#{@object && " #{@object['type']}".rstrip}' from #{@json['id']}#{@options[:relayed_through_account] && " via #{@options[:relayed_through_account].uri}"} because the object could not be validated.")
nil
end
end