summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2024-12-09 18:36:00 +0000
committerMarie <github@yuugi.dev>2024-12-09 18:36:00 +0000
commitee01d5fbdf9c8a88eae67e850aeb157eb4c2b737 (patch)
tree8c3808c31d6f3b4a23b5885d63bf32ef19cd5bd9
parentmerge: Implement new SkRateLimiterServer with Leaky Bucket rate limits (resol... (diff)
parentuser profile: only default to "pinned notes" if they exist (diff)
downloadsharkey-ee01d5fbdf9c8a88eae67e850aeb157eb4c2b737.tar.gz
sharkey-ee01d5fbdf9c8a88eae67e850aeb157eb4c2b737.tar.bz2
sharkey-ee01d5fbdf9c8a88eae67e850aeb157eb4c2b737.zip
merge: user profile: only default to "pinned notes" if they exist (!808)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/808 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
-rw-r--r--packages/frontend/src/pages/user/home.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue
index f2621f4ad0..7bb8c3fd3d 100644
--- a/packages/frontend/src/pages/user/home.vue
+++ b/packages/frontend/src/pages/user/home.vue
@@ -260,7 +260,7 @@ const memoDraft = ref(props.user.memo);
const isEditingMemo = ref(false);
const moderationNote = ref(props.user.moderationNote);
const editModerationNote = ref(false);
-const noteview = ref<string | null>('pinned');
+const noteview = ref<string | null>(props.user.pinnedNotes.length ? 'pinned' : null);
const listenbrainzdata = ref(false);
if (props.user.listenbrainz) {