projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo.
[akkoma]
/
lib
/
pleroma
/
user.ex
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index f88c1240a5e0b3d8758d5ec6d70b775edee00095..bc7f2601fb725b71e124b782caa46107a20ae20d 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-304,7
+304,7
@@
defmodule Pleroma.User do
update_and_set_cache(cs)
end
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
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
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)
query = from u in User,
where: u.ap_id in ^to,
or_where: fragment("? \\\?| ?", u.following, ^to)