Tweak the like query

This commit is contained in:
Thomas Sileo 2018-07-30 18:30:47 +02:00
parent 844a65e9a5
commit ff7211ae72

5
app.py
View file

@ -1397,7 +1397,10 @@ def admin_notifications():
"type": ActivityType.UNDO.value, "type": ActivityType.UNDO.value,
"activity.object.type": ActivityType.FOLLOW.value, "activity.object.type": ActivityType.FOLLOW.value,
} }
likes_query = {"type": ActivityType.LIKE.value} likes_query = {
"type": ActivityType.LIKE.value,
"activity.object": {"$regex": f"^{BASE_URL}"},
}
followed_query = {"type": ActivityType.ACCEPT.value} followed_query = {"type": ActivityType.ACCEPT.value}
q = { q = {
"box": Box.INBOX.value, "box": Box.INBOX.value,