fix: no users in recent

This commit is contained in:
cha0s 2020-07-20 23:59:57 -05:00
parent d3ce6868a3
commit de4dadae6a

View File

@ -80,7 +80,10 @@ const userState = async (req) => {
friendship: await userFriendships(req),
id: user.id,
redditUsername: user.redditUsername,
recent: toHydrate.map(joinChannel).map((channel) => channel.substr(3)),
recent: toHydrate
.map(joinChannel)
.filter((channel) => channel.charCodeAt(1) === 'r'.charCodeAt(0))
.map((channel) => channel.substr(3)),
};
};