diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-11-14 11:02:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 11:02:58 +0000 |
commit | 6e1b40dc26229e2ec1a97f9c1f27618067c370a7 (patch) | |
tree | df6441348856b5a731b91ca09602a9e127bb8801 /synapse/handlers/profile.py | |
parent | Merge pull request #6220 from matrix-org/neilj/set_room_version_default_to_5 (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into anoa/homeserver_... (diff) | |
download | synapse-6e1b40dc26229e2ec1a97f9c1f27618067c370a7.tar.xz |
Replace instance variations of homeserver with correct case/spacing (#6357)
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index 22e0a04da4..1e5a4613c9 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -152,7 +152,7 @@ class BaseProfileHandler(BaseHandler): by_admin (bool): Whether this change was made by an administrator. """ if not self.hs.is_mine(target_user): - raise SynapseError(400, "User is not hosted on this Home Server") + raise SynapseError(400, "User is not hosted on this homeserver") if not by_admin and target_user != requester.user: raise AuthError(400, "Cannot set another user's displayname") @@ -207,7 +207,7 @@ class BaseProfileHandler(BaseHandler): """target_user is the user whose avatar_url is to be changed; auth_user is the user attempting to make this change.""" if not self.hs.is_mine(target_user): - raise SynapseError(400, "User is not hosted on this Home Server") + raise SynapseError(400, "User is not hosted on this homeserver") if not by_admin and target_user != requester.user: raise AuthError(400, "Cannot set another user's avatar_url") @@ -231,7 +231,7 @@ class BaseProfileHandler(BaseHandler): def on_profile_query(self, args): user = UserID.from_string(args["user_id"]) if not self.hs.is_mine(user): - raise SynapseError(400, "User is not hosted on this Home Server") + raise SynapseError(400, "User is not hosted on this homeserver") just_field = args.get("field", None) |