]> cat aescling's git repositories - mastodon.git/commitdiff
Fix incoming federation in whitelist mode (#12185)
authorThibG <thib@sitedethib.com>
Thu, 24 Oct 2019 20:45:35 +0000 (22:45 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Oct 2019 20:45:35 +0000 (22:45 +0200)
… posting to the AP inbox required a logged-in local user…

app/controllers/activitypub/inboxes_controller.rb

index bcfc1e6d4234ed4646b3e25dab3f5e1b38303769..291eec19a8ce4c72642d0fb51ceb0e1709dfd274 100644 (file)
@@ -7,6 +7,7 @@ class ActivityPub::InboxesController < ActivityPub::BaseController
 
   before_action :skip_unknown_actor_delete
   before_action :require_signature!
+  skip_before_action :authenticate_user!
 
   def create
     upgrade_account