Show likes in the notifications

This commit is contained in:
Thomas Sileo
2018-07-30 18:12:27 +02:00
parent 9431cb09d7
commit cbd9d4e6da
4 changed files with 38 additions and 10 deletions

2
app.py
View File

@@ -1397,6 +1397,7 @@ def admin_notifications():
"type": ActivityType.UNDO.value,
"activity.object.type": ActivityType.FOLLOW.value,
}
likes_query = {"type": ActivityType.LIKE.value}
followed_query = {"type": ActivityType.ACCEPT.value}
q = {
"box": Box.INBOX.value,
@@ -1407,6 +1408,7 @@ def admin_notifications():
new_followers_query,
followed_query,
unfollow_query,
likes_query,
],
}
inbox_data, older_than, newer_than = paginated_query(DB.activities, q)