mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix admin thread
This commit is contained in:
parent
333e3b314d
commit
5d74f60ab9
1 changed files with 2 additions and 6 deletions
8
app.py
8
app.py
|
@ -1339,13 +1339,9 @@ def admin_lookup():
|
|||
@login_required
|
||||
def admin_thread():
|
||||
data = DB.activities.find_one(
|
||||
{
|
||||
"$or": [
|
||||
{"remote_id": request.args.get("oid")},
|
||||
{"activity.object.id": request.args.get("oid")},
|
||||
]
|
||||
}
|
||||
{"type": ActivityType.CREATE.value, "activity.object.id": request.args.get("oid")}
|
||||
)
|
||||
|
||||
if not data:
|
||||
abort(404)
|
||||
if data["meta"].get("deleted", False):
|
||||
|
|
Loading…
Reference in a new issue