Add favorites to notifications.
This commit is contained in:
parent
61adf676d5
commit
bcce3e5dd2
2 changed files with 6 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ defmodule Pleroma.Notification do
|
|||
Repo.all(query)
|
||||
end
|
||||
|
||||
def create_notifications(%Activity{id: id, data: %{"to" => to, "type" => type}} = activity) when type in ["Create"] do
|
||||
def create_notifications(%Activity{id: id, data: %{"to" => to, "type" => type}} = activity) when type in ["Create", "Like"] do
|
||||
users = User.get_notified_from_activity(activity)
|
||||
|
||||
notifications = Enum.map(users, fn (user) -> create_notification(activity, user) end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue