Merge ea9c3239e5
into 26506677c2
This commit is contained in:
commit
312ec9d083
|
@ -4,7 +4,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { MiUser } from '@/models/User.js';
|
import { MiUser } from '@/models/User.js';
|
||||||
|
import { MiNote } from '@/models/Note.js';
|
||||||
|
|
||||||
export function isReply(note: any, viewerId?: MiUser['id'] | undefined | null): boolean {
|
export function isReply(note: MiNote, viewerId?: MiUser['id'] | undefined | null): boolean {
|
||||||
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
return note.replyId !== undefined && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue