From 0175f212736c88db7be81f0256a4ac000b3b1a99 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 31 Aug 2022 19:44:40 +0200 Subject: [PATCH] Fix mentionify --- app/source.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/source.py b/app/source.py index 9a55c16..0b699c8 100644 --- a/app/source.py +++ b/app/source.py @@ -50,7 +50,10 @@ async def _mentionify( _, username, domain = mention.split("@") actor = ( await db_session.execute( - select(models.Actor).where(models.Actor.handle == mention) + select(models.Actor).where( + models.Actor.handle == mention, + models.Actor.is_deleted.is_(False), + ) ) ).scalar_one_or_none() if not actor: