forked from forks/microblog.pub
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,
|
"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,
|
||||||
|
|
Loading…
Reference in a new issue