your personal website on atproto - mirror blento.app

fix friends card

Florian 9057244d 043df1e8

+3 -3
+2 -2
src/lib/cards/social/FriendsCard/FriendsCard.svelte
··· 66 } 67 68 function getLink(profile: FriendsProfile): string { 69 - if (profile.hasBlento && profile.handle && profile.handle !== 'handle.invalid') { 70 - return `/${profile.handle}`; 71 } 72 if (profile.handle && profile.handle !== 'handle.invalid') { 73 return `https://bsky.app/profile/${profile.handle}`;
··· 66 } 67 68 function getLink(profile: FriendsProfile): string { 69 + if (profile.hasBlento && profile.url) { 70 + return profile.url; 71 } 72 if (profile.handle && profile.handle !== 'handle.invalid') { 73 return `https://bsky.app/profile/${profile.handle}`;
+1 -1
src/lib/website/Context.svelte
··· 20 setAdditionalUserData(data.additionalData); 21 22 setCanEdit( 23 - () => dev || (user.isLoggedIn && user.profile?.did === data.did && isEditing === true) 24 ); 25 26 // svelte-ignore state_referenced_locally
··· 20 setAdditionalUserData(data.additionalData); 21 22 setCanEdit( 23 + () => (dev && isEditing === true) || (user.isLoggedIn && user.profile?.did === data.did && isEditing === true) 24 ); 25 26 // svelte-ignore state_referenced_locally