fix: no users in recent
This commit is contained in:
parent
d3ce6868a3
commit
de4dadae6a
|
@ -80,7 +80,10 @@ const userState = async (req) => {
|
||||||
friendship: await userFriendships(req),
|
friendship: await userFriendships(req),
|
||||||
id: user.id,
|
id: user.id,
|
||||||
redditUsername: user.redditUsername,
|
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)),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user