1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Fix mentionify

This commit is contained in:
Thomas Sileo
2022-08-31 19:44:40 +02:00
parent 36d356c97a
commit 0175f21273

View File

@ -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: