projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't stream in benchmark env
[akkoma]
/
lib
/
pleroma
/
notification.ex
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index 931cabc3f40522caf173bf5b06c52d76b11916eb..d94ae5971c5a7e8159ed3361d8bdcd402f43ea14 100644
(file)
--- a/
lib/pleroma/notification.ex
+++ b/
lib/pleroma/notification.ex
@@
-22,8
+22,8
@@
defmodule Pleroma.Notification do
schema "notifications" do
field(:seen, :boolean, default: false)
schema "notifications" do
field(:seen, :boolean, default: false)
- belongs_to(:user, User, type:
Pleroma.FlakeId
)
- belongs_to(:activity, Activity, type:
Pleroma.FlakeId
)
+ belongs_to(:user, User, type:
FlakeId.Ecto.CompatType
)
+ belongs_to(:activity, Activity, type:
FlakeId.Ecto.CompatType
)
timestamps()
end
timestamps()
end
@@
-230,6
+230,7
@@
defmodule Pleroma.Notification do
[]
|> Utils.maybe_notify_to_recipients(activity)
|> Utils.maybe_notify_mentioned_recipients(activity)
[]
|> Utils.maybe_notify_to_recipients(activity)
|> Utils.maybe_notify_mentioned_recipients(activity)
+ |> Utils.maybe_notify_subscribers(activity)
|> Enum.uniq()
User.get_users_from_set(recipients, local_only)
|> Enum.uniq()
User.get_users_from_set(recipients, local_only)