Add debugging help.

This commit is contained in:
Roger Braun 2017-05-11 09:13:14 +02:00
commit 312772df7c
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,7 @@ defmodule Pleroma.Web.Websub do
end
def publish(topic, user, activity) do
# TODO: Only send to still valid subscriptions.
query = from sub in WebsubServerSubscription,
where: sub.topic == ^topic and sub.state == "active"
subscriptions = Repo.all(query)