1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Check visibility for connected accounts in /users/:id/profile

This commit is contained in:
Madeline 2023-01-24 16:23:34 +11:00 committed by Puyodead1
parent eab530a63d
commit 9d5c5a8292
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -142,7 +142,9 @@ router.get(
guild_id, guild_id,
}; };
res.json({ 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_guild_since: premium_guild_since, // TODO
premium_since: user.premium_since, // TODO premium_since: user.premium_since, // TODO
mutual_guilds: mutual_guilds, // TODO {id: "", nick: null} when ?with_mutual_guilds=true mutual_guilds: mutual_guilds, // TODO {id: "", nick: null} when ?with_mutual_guilds=true