lint
This commit is contained in:
parent
fb078f921b
commit
ce460dc31c
|
@ -161,8 +161,7 @@ class BaseProfileHandler(BaseHandler):
|
||||||
profile = yield self.store.get_profileinfo(target_user.localpart)
|
profile = yield self.store.get_profileinfo(target_user.localpart)
|
||||||
if profile.display_name:
|
if profile.display_name:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
400, "Changing displayname is disabled on this server"
|
||||||
"Changing displayname is disabled on this server"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(new_displayname) > MAX_DISPLAYNAME_LEN:
|
if len(new_displayname) > MAX_DISPLAYNAME_LEN:
|
||||||
|
@ -230,8 +229,7 @@ class BaseProfileHandler(BaseHandler):
|
||||||
profile = yield self.store.get_profileinfo(target_user.localpart)
|
profile = yield self.store.get_profileinfo(target_user.localpart)
|
||||||
if profile.avatar_url:
|
if profile.avatar_url:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
400, "Changing avatar url is disabled on this server"
|
||||||
"Changing avatar url is disabled on this server"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(new_avatar_url) > MAX_AVATAR_URL_LEN:
|
if len(new_avatar_url) > MAX_AVATAR_URL_LEN:
|
||||||
|
|
Loading…
Reference in New Issue