fix errors in MkNoteSub.vue

This commit is contained in:
Hazelnoot 2025-04-01 11:34:19 -04:00
parent 3482570169
commit 7549f24702

View file

@ -126,7 +126,7 @@ const props = withDefaults(defineProps<{
onDeleteCallback: undefined, onDeleteCallback: undefined,
}); });
const canRenote = computed(() => ['public', 'home'].includes(props.note.visibility) || props.note.userId === $i.id); const canRenote = computed(() => ['public', 'home'].includes(props.note.visibility) || props.note.userId === $i?.id);
const el = shallowRef<HTMLElement>(); const el = shallowRef<HTMLElement>();
const muted = ref($i ? checkWordMute(props.note, $i, $i.mutedWords) : false); const muted = ref($i ? checkWordMute(props.note, $i, $i.mutedWords) : false);
@ -384,7 +384,7 @@ function menu(): void {
if (props.detail) { if (props.detail) {
misskeyApi('notes/children', { misskeyApi('notes/children', {
noteId: props.note.id, noteId: props.note.id,
limit: numberOfReplies.value, limit: store.s.numberOfReplies,
showQuotes: false, showQuotes: false,
}).then(res => { }).then(res => {
replies.value = res; replies.value = res;