Fix admin delete in the UI

This commit is contained in:
Thomas Sileo 2022-09-07 19:45:34 +02:00
parent 1bfea16eed
commit eba868e8e5
2 changed files with 2 additions and 2 deletions

View file

@ -740,7 +740,7 @@ async def admin_object(
db_session: AsyncSession = Depends(get_db_session),
) -> templates.TemplateResponse:
requested_object = await boxes.get_anybox_object_by_ap_id(db_session, ap_id)
if not requested_object:
if not requested_object or requested_object.is_deleted:
raise HTTPException(status_code=404)
replies_tree = await boxes.get_replies_tree(