diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index f205d9872d..bb3a47813b 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -156,11 +156,11 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
{{ i18n.ts.noNotes }}
- +
@@ -204,8 +204,8 @@ import { misskeyApi } from '@/scripts/misskey-api.js'; import { isFollowingVisibleForMe, isFollowersVisibleForMe } from '@/scripts/isFfVisibleForMe.js'; import { useRouter } from '@/router/supplier.js'; import { getStaticImageUrl } from '@/scripts/media-proxy.js'; -import { infoImageUrl } from "@/instance.js"; -import MkDateSeparatedList from "@/components/MkDateSeparatedList.vue"; +import { infoImageUrl } from '@/instance.js'; +import MkDateSeparatedList from '@/components/MkDateSeparatedList.vue'; const MkNote = defineAsyncComponent(() => (defaultStore.state.noteDesign === 'misskey') ? import('@/components/MkNote.vue') : @@ -255,6 +255,9 @@ const moderationNote = ref(props.user.moderationNote); const editModerationNote = ref(false); const noteview = ref(null); +// Sort pinned notes by date to match the other columns and ensure that MkDateSeparatedList does not break. +const pinnedNotes = computed(() => Array.from(user.value.pinnedNotes).sort((a, b) => b.id.localeCompare(a.id))); + const listenbrainzdata = ref(false); if (props.user.listenbrainz) { (async function() {