Trust displaynames from non-contacts when syncing puppets

This commit is contained in:
Tulir Asokan
2019-12-25 15:49:35 +02:00
parent 6f6ce4bcc7
commit 50984dab14
+2
View File
@@ -258,6 +258,8 @@ class Puppet(CustomPuppetMixin):
return False
allow_source = (source.is_relaybot
or self.displayname_source == source.tgid
# User is not a contact, so there's no custom name
or not info.contact
# No displayname source, so just trust anything
or self.displayname_source is None)
if not allow_source: