Revert "Also accept user id as feed topic."
This reverts commit 97d11dec0e
.
This commit is contained in:
parent
97d11dec0e
commit
e88062494e
@ -98,7 +98,7 @@ defp lease_time(_) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp valid_topic(%{"hub.topic" => topic}, user) do
|
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)}
|
{:ok, OStatus.feed_path(user)}
|
||||||
else
|
else
|
||||||
{:error, "Wrong topic requested, expected #{OStatus.feed_path(user)}, got #{topic}"}
|
{:error, "Wrong topic requested, expected #{OStatus.feed_path(user)}, got #{topic}"}
|
||||||
|
Loading…
Reference in New Issue
Block a user