projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0e2b3
)
Notification: For follows, notify the followed.
author
lain
<lain@soykaf.club>
Wed, 8 Jul 2020 12:29:29 +0000
(14:29 +0200)
committer
lain
<lain@soykaf.club>
Wed, 8 Jul 2020 12:29:29 +0000
(14:29 +0200)
lib/pleroma/notification.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index fcb2144ae24ac5e922556086c21de79ef2c6fc5d..32bcfcaba34d9c830211c3f8180481feff193b5d 100644
(file)
--- 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)