Do not apply http signature pipeline to the unsubscribe route
authorEgor Kislitsyn <egor@kislitsyn.com>
Tue, 10 Dec 2019 14:46:02 +0000 (21:46 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Tue, 10 Dec 2019 15:36:03 +0000 (22:36 +0700)
lib/pleroma/web/router.ex

index e6c4f6f1495d1c14c6c1eac0218a325e02ab89d5..78cb703a99a444a43b2daec6bd9ed66e72aef60e 100644 (file)
@@ -528,7 +528,10 @@ defmodule Pleroma.Web.Router do
 
     get("/users/:nickname/feed", Feed.FeedController, :feed)
     get("/users/:nickname", Feed.FeedController, :feed_redirect)
+  end
 
+  scope "/", Pleroma.Web do
+    pipe_through(:browser)
     get("/mailer/unsubscribe/:token", Mailer.SubscriptionController, :unsubscribe)
   end