2023-12-03 21:38:21 -08:00
|
|
|
/*
|
2024-02-13 07:50:11 -08:00
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2023-12-03 21:38:21 -08:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { MiUser } from '@/models/User.js';
|
|
|
|
|
|
|
|
export function isReply(note: any, viewerId?: MiUser['id'] | undefined | null): boolean {
|
|
|
|
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
|
|
|
}
|