1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 03:45:31 +02:00

Merge branch 'develop' into mahjong

This commit is contained in:
syuilo
2024-07-28 15:18:08 +09:00
252 changed files with 6666 additions and 4778 deletions

View File

@@ -4,6 +4,10 @@
*/
export function isUserRelated(note: any, userIds: Set<string>, ignoreAuthor = false): boolean {
if (!note) {
return false;
}
if (userIds.has(note.userId) && !ignoreAuthor) {
return true;
}

View File

@@ -0,0 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export type JsonValue = JsonArray | JsonObject | string | number | boolean | null;
export type JsonObject = {[K in string]?: JsonValue};
export type JsonArray = JsonValue[];