summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/is-reply.ts
blob: 980eae11c91588a5d669356bce4e029b8c5659b3 (plain)
1
2
3
4
5
6
7
8
9
10
/*
 * SPDX-FileCopyrightText: syuilo and misskey-project
 * 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;
}