diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-09-11 20:41:05 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-09-11 20:41:05 +0200 |
commit | bcce3e5dd2c9ba262d73d398f3e8a14eee21f009 (patch) | |
tree | 7183a804525a72a0c297075b60fe9d8e08779905 /lib/pleroma/notification.ex | |
parent | 61adf676d56db274cb4688a137787e8806e77be9 (diff) | |
download | pleroma-bcce3e5dd2c9ba262d73d398f3e8a14eee21f009.tar.gz |
Add favorites to notifications.
Diffstat (limited to 'lib/pleroma/notification.ex')
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index f8835fce6..031f71091 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -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) |