aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/user.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-19 10:05:26 +0100
committerlain <lain@soykaf.club>2018-02-19 10:05:26 +0100
commit6b32b9e3466016f457fd257e7cc18d85fa075a93 (patch)
tree9e9eab452a2bbfc5e9e5af94a49f523522e6014b /lib/pleroma/user.ex
parent01faa7c555061aed79ec932c0065bf77818f3125 (diff)
downloadpleroma-6b32b9e3466016f457fd257e7cc18d85fa075a93.tar.gz
Notifications: Use all recipients, not just "to".
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r--lib/pleroma/user.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index f88c1240a..bc7f2601f 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -304,7 +304,7 @@ defmodule Pleroma.User do
update_and_set_cache(cs)
end
- def get_notified_from_activity(%Activity{data: %{"to" => to}}) do
+ def get_notified_from_activity(%Activity{recipients: to}) do
query = from u in User,
where: u.ap_id in ^to,
where: u.local == true
@@ -312,7 +312,7 @@ defmodule Pleroma.User do
Repo.all(query)
end
- def get_recipients_from_activity(%Activity{data: %{"to" => to}}) do
+ def get_recipients_from_activity(%Activity{recipients: to}) do
query = from u in User,
where: u.ap_id in ^to,
or_where: fragment("? \\\?| ?", u.following, ^to)