diff --git a/src/app/components/PeopleItem.svelte b/src/app/components/PeopleItem.svelte index dae741d..70b5b26 100644 --- a/src/app/components/PeopleItem.svelte +++ b/src/app/components/PeopleItem.svelte @@ -14,6 +14,7 @@ formatTimestampRelative, } from "@welshman/app" import Link from "@lib/components/Link.svelte" + import Icon from "@lib/components/Icon.svelte" import Button from "@lib/components/Button.svelte" import Profile from "@app/components/Profile.svelte" import ProfileInfo from "@app/components/ProfileInfo.svelte" @@ -52,12 +53,15 @@ {@const nevent = nip19.neventEncode({id: event.id, relays})} {@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}
- -
+
{roots.length} recent {roots.length === 1 ? "note" : "notes"} diff --git a/src/lib/components/Link.svelte b/src/lib/components/Link.svelte index 587f803..7919163 100644 --- a/src/lib/components/Link.svelte +++ b/src/lib/components/Link.svelte @@ -4,14 +4,20 @@ export let href export let external = false - const go = () => goto(href) + const go = (e: Event) => { + if (!external) { + e.preventDefault() + + goto(href) + } + }