mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-21 20:54:27 +00:00
Fix mentionify
This commit is contained in:
parent
36d356c97a
commit
0175f21273
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue