mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
Check visibility for connected accounts in /users/:id/profile
This commit is contained in:
parent
eab530a63d
commit
9d5c5a8292
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user