mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-28 15:54:40 +02:00
refactor
This commit is contained in:
@@ -126,7 +126,7 @@ function fetchNote() {
|
||||
noteId: props.noteId,
|
||||
}).then(res => {
|
||||
note.value = res;
|
||||
const appearNote = getAppearNote(res);
|
||||
const appearNote = getAppearNote(res) ?? res;
|
||||
// 古いノートは被クリップ数をカウントしていないので、2023-10-01以前のものは強制的にnotes/clipsを叩く
|
||||
if ((appearNote.clippedCount ?? 0) > 0 || new Date(appearNote.createdAt).getTime() < new Date('2023-10-01').getTime()) {
|
||||
misskeyApi('notes/clips', {
|
||||
|
||||
Reference in New Issue
Block a user