projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ActivityPub: restrict_since/restrict_max: ignore empty param
[akkoma]
/
lib
/
pleroma
/
notification.ex
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index c7d01f63b83517c36b15779ec9a9772524d5b6d4..2c8f60f1941178fd9dd489644f3dfb5e82008d45 100644
(file)
--- a/
lib/pleroma/notification.ex
+++ b/
lib/pleroma/notification.ex
@@
-9,8
+9,8
@@
defmodule Pleroma.Notification do
schema "notifications" do
field(:seen, :boolean, default: false)
schema "notifications" do
field(:seen, :boolean, default: false)
- belongs_to(:user,
Pleroma.User
)
- belongs_to(:activity,
Pleroma.Activity
)
+ belongs_to(:user,
User, type: Pleroma.FlakeId
)
+ belongs_to(:activity,
Activity, type: Pleroma.FlakeId
)
timestamps()
end
timestamps()
end
@@
-96,7
+96,7
@@
defmodule Pleroma.Notification do
end
end
end
end
- def create_notifications(%Activity{
id: _,
data: %{"to" => _, "type" => type}} = activity)
+ def create_notifications(%Activity{data: %{"to" => _, "type" => type}} = activity)
when type in ["Create", "Like", "Announce", "Follow"] do
users = get_notified_from_activity(activity)
when type in ["Create", "Like", "Announce", "Follow"] do
users = get_notified_from_activity(activity)