diff --git a/src/components/NewNote/EditBox/EditBox.tsx b/src/components/NewNote/EditBox/EditBox.tsx index ef87041..65321c7 100644 --- a/src/components/NewNote/EditBox/EditBox.tsx +++ b/src/components/NewNote/EditBox/EditBox.tsx @@ -38,6 +38,7 @@ import { useMediaContext } from "../../../contexts/MediaContext"; import { hookForDev } from "../../../lib/devTools"; import ButtonPrimary from "../../Buttons/ButtonPrimary"; import ButtonSecondary from "../../Buttons/ButtonSecondary"; +import { useProfileContext } from "../../../contexts/ProfileContext"; type AutoSizedTextArea = HTMLTextAreaElement & { _baseScrollHeight: number }; @@ -58,6 +59,7 @@ const EditBox: Component<{ const search = useSearchContext(); const account = useAccountContext(); const toast = useToastContext(); + const profile = useProfileContext(); let textArea: HTMLTextAreaElement | undefined; let textPreview: HTMLDivElement | undefined; @@ -1212,7 +1214,7 @@ const EditBox: Component<{ title={userName(user)} description={nip05Verification(user)} icon={} - statNumber={search?.scores[user.pubkey]} + statNumber={profile?.profileHistory.stats[user.pubkey]?.followers_count || search?.scores[user.pubkey]} statLabel={intl.formatMessage(tSearch.followers)} onClick={() => selectUser(user)} highlighted={highlightedUser() === index()} diff --git a/src/components/Note/MentionedUserLink/MentionedUserLink.tsx b/src/components/Note/MentionedUserLink/MentionedUserLink.tsx index 6e2f0df..d66966d 100644 --- a/src/components/Note/MentionedUserLink/MentionedUserLink.tsx +++ b/src/components/Note/MentionedUserLink/MentionedUserLink.tsx @@ -1,5 +1,5 @@ import { A } from "@solidjs/router"; -import { Component, createSignal, JSXElement, onMount, Show } from "solid-js"; +import { Component, JSXElement } from "solid-js"; import { hookForDev } from "../../../lib/devTools"; import { nip05Verification, userName } from "../../../stores/profile"; import { PrimalUser } from "../../../types/primal"; @@ -35,18 +35,18 @@ const MentionedUserLink: Component<{ return ( @{userName(props.user)} -
- -
-
- {userName(props.user)} - -
-
- {nip05Verification(props.user)} -
+
+ +
+
+ {userName(props.user)} + +
+
+ {nip05Verification(props.user)}
+
); } diff --git a/src/pages/Messages.tsx b/src/pages/Messages.tsx index 3230458..f09a7ea 100644 --- a/src/pages/Messages.tsx +++ b/src/pages/Messages.tsx @@ -1014,7 +1014,7 @@ const Messages: Component = () => { title={userName(user)} description={user.nip05} icon={} - statNumber={search?.scores[user.pubkey]} + statNumber={profile?.profileHistory.stats[user.pubkey]?.followers_count || search?.scores[user.pubkey]} statLabel={intl.formatMessage(tSearch.followers)} onClick={() => selectUser(user)} highlighted={highlightedUser() === index()}