diff --git a/app/main.py b/app/main.py index 757f824..ea5180d 100644 --- a/app/main.py +++ b/app/main.py @@ -479,6 +479,7 @@ async def outbox_by_public_id( .where( models.InboxObject.ap_type == "Like", models.InboxObject.activity_object_ap_id == maybe_object.ap_id, + models.InboxObject.is_deleted.is_(False), ) .options(joinedload(models.InboxObject.actor)) .order_by(models.InboxObject.ap_published_at.desc()) @@ -496,6 +497,7 @@ async def outbox_by_public_id( .filter( models.InboxObject.ap_type == "Announce", models.InboxObject.activity_object_ap_id == maybe_object.ap_id, + models.InboxObject.is_deleted.is_(False), ) .options(joinedload(models.InboxObject.actor)) .order_by(models.InboxObject.ap_published_at.desc()) diff --git a/app/templates/utils.html b/app/templates/utils.html index f297639..de481e7 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -270,28 +270,31 @@ {% if likes or shares %}