diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-24 16:23:34 +1100 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-03-18 19:28:47 -0400 |
commit | 9d5c5a8292a59cc9ed2695f76d0863a553f44224 (patch) | |
tree | e5573fb546361f20315a1bb71699d1f56a364480 | |
parent | Add Youtube connection (diff) | |
download | server-9d5c5a8292a59cc9ed2695f76d0863a553f44224.tar.xz |
Check visibility for connected accounts in /users/:id/profile
-rw-r--r-- | src/api/routes/users/#id/profile.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index dbf95a52..4efa379e 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -142,7 +142,9 @@ router.get( guild_id, }; res.json({ - connected_accounts: user.connected_accounts, + connected_accounts: user.connected_accounts.filter( + (x) => x.visibility != 0, + ), premium_guild_since: premium_guild_since, // TODO premium_since: user.premium_since, // TODO mutual_guilds: mutual_guilds, // TODO {id: "", nick: null} when ?with_mutual_guilds=true |