mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 11:30:39 +00:00
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,
|
||||
)
|
||||
if status.mention_users.exists():
|
||||
for mentioned_user in status.mention_users.all() and \
|
||||
mentioned_user not in notified:
|
||||
if not mentioned_user.local:
|
||||
for mentioned_user in status.mention_users.all():
|
||||
if not mentioned_user.local or mentioned_user in notified:
|
||||
continue
|
||||
status_builder.create_notification(
|
||||
mentioned_user,
|
||||
|
|
Loading…
Reference in a new issue