diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-12-12 00:57:39 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-12-12 00:57:39 +0000 |
commit | 82886e4c8f0a639dba38ba91b625bee12b8c2357 (patch) | |
tree | b52a3d676e86bcdf3de81826d31f756d7521b946 /synapse/handlers/profile.py | |
parent | fix sense of 'hide' (diff) | |
download | synapse-82886e4c8f0a639dba38ba91b625bee12b8c2357.tar.xz |
hide_profile: false should mean not to hide the profile :/ github/matthew/red_list matthew/red_list
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 58e9181f01..0a952dab97 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -274,9 +274,9 @@ class BaseProfileHandler(BaseHandler): """ Sets the 'active' flag on a user profile. If set to false, the user account is considered deactivated or hidden. - If 'hide' is true, then we just try hide the user rather than deactivate it. - This means withholding it from replication (and mark it as inactive) rather than - clearing the profile from the HS DB. + If 'hide' is true, then we interpret active=False as a request to try to hide the + user rather than deactivating it. This means withholding the profile from replication + (and mark it as inactive) rather than clearing the profile from the HS DB. Note that unlike set_displayname and set_avatar_url, this does *not* perform authorization checks! This is because the only place it's used currently is in account deactivation where we've already done these checks anyway. |