forked from mirrors/bookwyrm
Fixes logic error
This commit is contained in:
parent
f1926ce76d
commit
f7cb525981
1 changed files with 2 additions and 3 deletions
|
@ -228,9 +228,8 @@ def handle_create(activity):
|
||||||
related_status=status,
|
related_status=status,
|
||||||
)
|
)
|
||||||
if status.mention_users.exists():
|
if status.mention_users.exists():
|
||||||
for mentioned_user in status.mention_users.all() and \
|
for mentioned_user in status.mention_users.all():
|
||||||
mentioned_user not in notified:
|
if not mentioned_user.local or mentioned_user in notified:
|
||||||
if not mentioned_user.local:
|
|
||||||
continue
|
continue
|
||||||
status_builder.create_notification(
|
status_builder.create_notification(
|
||||||
mentioned_user,
|
mentioned_user,
|
||||||
|
|
Loading…
Reference in a new issue