Revert "Also accept user id as feed topic."
authorRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 16:34:15 +0000 (18:34 +0200)
committerRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 16:34:15 +0000 (18:34 +0200)
This reverts commit 97d11dec0ee78d24fea398f23d123baf0111362a.

lib/pleroma/web/websub/websub.ex

index fc253b93084bf8381a55f766cfdf5ebefd85be61..b279a50609cad64f3e33d371c6845c9737ce5978 100644 (file)
@@ -98,7 +98,7 @@ defmodule Pleroma.Web.Websub do
   end
 
   defp valid_topic(%{"hub.topic" => topic}, user) do
-    if topic == OStatus.feed_path(user) || topic == Pleroma.Web.Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :feed_redirect, user.nickname) do
+    if topic == OStatus.feed_path(user) do
       {:ok, OStatus.feed_path(user)}
     else
       {:error, "Wrong topic requested, expected #{OStatus.feed_path(user)}, got #{topic}"}