diff options
author | Sadposter <hannah+pleroma@coffee-and-dreams.uk> | 2019-04-05 14:59:34 +0100 |
---|---|---|
committer | Hannah Ward <Hannah.ward9001@gmail.com> | 2019-04-05 15:30:26 +0100 |
commit | 316fe20d864711c2854401eaa2cb08f627d5e536 (patch) | |
tree | 685bb6aba202738f3d037a0ad16e5bfe95ea680e /lib/pleroma/web/common_api/utils.ex | |
parent | 23c4f4949436003f6ccd7fd283492a6598f88482 (diff) | |
download | pleroma-316fe20d864711c2854401eaa2cb08f627d5e536.tar.gz |
Make subscriptions the same direction as blocks
That being, user - subscribes to -> users, rather than
user - has subscribers -> users
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index effc49a01..087778dfe 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -336,10 +336,11 @@ defmodule Pleroma.Web.CommonAPI.Utils do def maybe_notify_mentioned_recipients(recipients, _), do: recipients def maybe_notify_subscribers( - recipients, - %Activity{data: %{"actor" => actor, "type" => type}} - ) when type == "Create" do - with %User{} = user <- User.get_by_ap_id(actor) do + recipients, + %Activity{data: %{"actor" => actor, "type" => type}} + ) + when type == "Create" do + with %User{} = user <- User.get_by_ap_id(actor) do subscriber_ids = user |> User.subscribed_users() |