-
+
+
+
+
+
+ {{ i18n.ts.continueThread }}
+
-
- {{ i18n.ts.continueThread }}
-
@@ -36,7 +38,7 @@ import { i18n } from '@/i18n';
const props = withDefaults(defineProps<{
note: misskey.entities.Note;
- detail?: boolean;
+ conversation?: misskey.entities.Note[];
// how many notes are in between this one and the note being viewed in detail
depth?: number;
@@ -45,16 +47,7 @@ const props = withDefaults(defineProps<{
});
let showContent = $ref(false);
-let replies: misskey.entities.Note[] = $ref([]);
-
-if (props.detail) {
- os.api('notes/children', {
- noteId: props.note.id,
- limit: 5,
- }).then(res => {
- replies = res;
- });
-}
+const replies: misskey.entities.Note[] = props.conversation?.filter(item => item.replyId === props.note.id || item.renoteId === props.note.id) ?? [];