mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweak the admin stream
This commit is contained in:
parent
0a53cba5f5
commit
3497c09035
1 changed files with 1 additions and 2 deletions
3
app.py
3
app.py
|
@ -1356,8 +1356,7 @@ def api_undo():
|
|||
@login_required
|
||||
def admin_stream():
|
||||
q = {
|
||||
"box": Box.INBOX.value,
|
||||
"type": {"$in": [ActivityType.CREATE.value, ActivityType.ANNOUNCE.value]},
|
||||
"meta.stream": True,
|
||||
"meta.deleted": False,
|
||||
}
|
||||
inbox_data, older_than, newer_than = paginated_query(DB.activities, q)
|
||||
|
|
Loading…
Reference in a new issue