mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-19 05:00:47 +01:00
c1514ce91d
Fix #13290
10 lines
331 B
TypeScript
10 lines
331 B
TypeScript
/*
|
|
* 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;
|
|
}
|