Tweak the admin stream
This commit is contained in:
3
app.py
3
app.py
@@ -1356,8 +1356,7 @@ def api_undo():
|
|||||||
@login_required
|
@login_required
|
||||||
def admin_stream():
|
def admin_stream():
|
||||||
q = {
|
q = {
|
||||||
"box": Box.INBOX.value,
|
"meta.stream": True,
|
||||||
"type": {"$in": [ActivityType.CREATE.value, ActivityType.ANNOUNCE.value]},
|
|
||||||
"meta.deleted": False,
|
"meta.deleted": False,
|
||||||
}
|
}
|
||||||
inbox_data, older_than, newer_than = paginated_query(DB.activities, q)
|
inbox_data, older_than, newer_than = paginated_query(DB.activities, q)
|
||||||
|
Reference in New Issue
Block a user