mirror of https://github.com/zulip/zulip.git
Don't consider deactivated users for @-mentions.
(imported from commit 5e85f8c897e2ea9a3c0c37c3199666b490d6e07a)
This commit is contained in:
parent
5439687b70
commit
eecf96b520
|
@ -16,6 +16,7 @@ def find_user_for_mention(mention, realm):
|
|||
try:
|
||||
user = zephyr.models.UserProfile.objects.filter(
|
||||
Q(full_name__iexact=mention) | Q(short_name__iexact=mention),
|
||||
is_active=True,
|
||||
realm=realm
|
||||
)[0]
|
||||
except IndexError:
|
||||
|
|
Loading…
Reference in New Issue