2023-12-04 06:38:21 +01:00
|
|
|
/*
|
2024-02-13 16:50:11 +01:00
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2023-12-04 06:38:21 +01: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;
|
|
|
|
}
|