From ff7211ae72d1a57fa665ab101a247c8c73a711c0 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 30 Jul 2018 18:30:47 +0200 Subject: [PATCH] Tweak the like query --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index c2f32c3..c0fcd57 100644 --- a/app.py +++ b/app.py @@ -1397,7 +1397,10 @@ def admin_notifications(): "type": ActivityType.UNDO.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} q = { "box": Box.INBOX.value,