diff options
author | lain <lain@soykaf.club> | 2020-07-08 14:29:29 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-07-08 14:29:29 +0200 |
commit | 29fa75d00d1f550461b2ab1e59554e134208d419 (patch) | |
tree | b0f72ab707ac6d1bf3fd528d8b7dc83efb1c3154 /lib | |
parent | 7d0e2b3fdd001b45741d97ee9c7833a69d6fb5ef (diff) | |
download | pleroma-29fa75d00d1f550461b2ab1e59554e134208d419.tar.gz |
Notification: For follows, notify the followed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index fcb2144ae..32bcfcaba 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -497,6 +497,10 @@ defmodule Pleroma.Notification do end end + def get_potential_receiver_ap_ids(%{data: %{"type" => "Follow", "object" => object_id}}) do + [object_id] + end + def get_potential_receiver_ap_ids(activity) do [] |> Utils.maybe_notify_to_recipients(activity) |