Compare commits

..

5 Commits

Author SHA1 Message Date
Kisaragi
ea9c3239e5 fix nullability 2025-03-06 20:59:36 +09:00
Kisaragi
b8fde212ad Update is-reply.ts 2025-03-06 19:56:27 +09:00
Kisaragi
01cb14f78d refactor: avoid any 2025-03-06 19:41:30 +09:00
github-actions[bot]
46067f6e17 [skip ci] Update CHANGELOG.md (prepend template) 2025-03-06 10:31:36 +00:00
github-actions[bot]
2b71bdf114 Release: 2025.3.0 2025-03-06 10:31:30 +00:00
4 changed files with 17 additions and 4 deletions

View File

@@ -1,3 +1,15 @@
## Unreleased
### General
-
### Client
-
### Server
-
## 2025.3.0
### General

View File

@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2025.3.0-beta.2",
"version": "2025.3.0",
"codename": "nasubi",
"repository": {
"type": "git",

View File

@@ -4,7 +4,8 @@
*/
import { MiUser } from '@/models/User.js';
import { MiNote } from '@/models/Note.js';
export function isReply(note: any, viewerId?: MiUser['id'] | undefined | null): boolean {
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
export function isReply(note: MiNote, viewerId?: MiUser['id'] | undefined | null): boolean {
return note.replyId !== undefined && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
}

View File

@@ -1,7 +1,7 @@
{
"type": "module",
"name": "misskey-js",
"version": "2025.3.0-beta.2",
"version": "2025.3.0",
"description": "Misskey SDK for JavaScript",
"license": "MIT",
"main": "./built/index.js",