fix: anon last
This commit is contained in:
parent
c7e7aed869
commit
b7331148b6
|
@ -12,6 +12,7 @@ export default (latus) => class ActivityServer extends Activity(latus) {
|
||||||
const rooms = promisify(adapter.allRooms.bind(adapter));
|
const rooms = promisify(adapter.allRooms.bind(adapter));
|
||||||
const chats = Array.from(new Set(['/r/reddichat']
|
const chats = Array.from(new Set(['/r/reddichat']
|
||||||
.concat(await rooms())
|
.concat(await rooms())
|
||||||
|
.filter((channel) => '/r/anonymous' !== channel)
|
||||||
.concat(['/r/anonymous'])
|
.concat(['/r/anonymous'])
|
||||||
.filter((room) => room.match(/^\/r\//))).values());
|
.filter((room) => room.match(/^\/r\//))).values());
|
||||||
const activity = Object.fromEntries(await Promise.all(chats.map(async (chat) => [
|
const activity = Object.fromEntries(await Promise.all(chats.map(async (chat) => [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user