mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweak the like query
This commit is contained in:
parent
844a65e9a5
commit
ff7211ae72
1 changed files with 4 additions and 1 deletions
5
app.py
5
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,
|
||||
|
|
Loading…
Reference in a new issue