projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a8944
)
Also accept user id as feed topic.
author
Roger Braun
<roger@rogerbraun.net>
Mon, 1 May 2017 16:07:50 +0000
(18:07 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Mon, 1 May 2017 16:07:50 +0000
(18:07 +0200)
lib/pleroma/web/websub/websub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/websub/websub.ex
b/lib/pleroma/web/websub/websub.ex
index b279a50609cad64f3e33d371c6845c9737ce5978..fc253b93084bf8381a55f766cfdf5ebefd85be61 100644
(file)
--- a/
lib/pleroma/web/websub/websub.ex
+++ b/
lib/pleroma/web/websub/websub.ex
@@
-98,7
+98,7
@@
defmodule Pleroma.Web.Websub do
end
defp valid_topic(%{"hub.topic" => topic}, user) do
- if topic == OStatus.feed_path(user) do
+ if topic == OStatus.feed_path(user)
|| topic == Pleroma.Web.Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :feed_redirect, user.nickname)
do
{:ok, OStatus.feed_path(user)}
else
{:error, "Wrong topic requested, expected #{OStatus.feed_path(user)}, got #{topic}"}