Redirect to user feed instead of directly serving it.
This commit is contained in:
parent
1854842b09
commit
92a8944dfe
3 changed files with 8 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ defmodule Pleroma.Web.Websub do
|
|||
|
||||
defp valid_topic(%{"hub.topic" => topic}, user) do
|
||||
if topic == OStatus.feed_path(user) do
|
||||
{:ok, topic}
|
||||
{:ok, OStatus.feed_path(user)}
|
||||
else
|
||||
{:error, "Wrong topic requested, expected #{OStatus.feed_path(user)}, got #{topic}"}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue