minor improvements
This commit is contained in:
parent
1aaa976da2
commit
eb6c30301b
1 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ export class NoteHelpers {
|
||||||
expiresAt:
|
expiresAt:
|
||||||
request.poll.expires_in && request.poll.expires_in > 0
|
request.poll.expires_in && request.poll.expires_in > 0
|
||||||
? new Date(
|
? new Date(
|
||||||
new Date().getTime() + request.poll.expires_in * 1000,
|
Date.now() + request.poll.expires_in * 1000,
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
}
|
}
|
||||||
|
@ -642,7 +642,7 @@ export class NoteHelpers {
|
||||||
const note = await getNote(noteId, ctx.user);
|
const note = await getNote(noteId, ctx.user);
|
||||||
const conversationId = note.threadId ?? note.id;
|
const conversationId = note.threadId ?? note.id;
|
||||||
const userIds = unique(
|
const userIds = unique(
|
||||||
[note.userId].concat(note.visibleUserIds).filter((p) => p != ctx.user.id),
|
[note.userId].concat(note.visibleUserIds).filter((p) => p !== ctx.user.id),
|
||||||
);
|
);
|
||||||
const users = userIds.map((id) =>
|
const users = userIds.map((id) =>
|
||||||
UserHelpers.getUserCached(id, ctx).catch((_) => null),
|
UserHelpers.getUserCached(id, ctx).catch((_) => null),
|
||||||
|
|
Loading…
Reference in a new issue