🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2022-09-17 14:38:16.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2022-09-17 14:38:16.0 +01:00:00
commit
5cc946b5ea8d575fd5839806b9ed11adfc6b5fd4 [patch]
tree
c660303c4dfbc63e0ce175d89e84c7e29be4553e
parent
004a1c07ed7f8030d59ff6d5cca6f2df34230ff9
download
5cc946b5ea8d575fd5839806b9ed11adfc6b5fd4.tar.gz

Hide emails from API responses until we have a way for the user to decide visibility



Diff

 chartered-web/src/endpoints/web_api/users/info.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chartered-web/src/endpoints/web_api/users/info.rs b/chartered-web/src/endpoints/web_api/users/info.rs
index 36bfbaf..e0c5ac7 100644
--- a/chartered-web/src/endpoints/web_api/users/info.rs
+++ a/chartered-web/src/endpoints/web_api/users/info.rs
@@ -23,7 +23,7 @@
    username: String,
    name: Option<String>,
    nick: Option<String>,
    email: Option<String>,
    // email: Option<String>,
    external_profile_url: Option<String>,
    picture_url: Option<String>,
}
@@ -35,7 +35,7 @@
            username: user.username,
            name: user.name,
            nick: user.nick,
            email: user.email,
            // email: user.email,
            external_profile_url: user.external_profile_url,
            picture_url: user.picture_url,
        }