+ Looks like a fediverse handle. Use the full format: @alice@mastodon.social +
+ )} {isHandle ? ( remoteActor ? (diff --git a/thoughts-frontend/app/search/page.tsx b/thoughts-frontend/app/search/page.tsx index 3530c9b..91305fc 100644 --- a/thoughts-frontend/app/search/page.tsx +++ b/thoughts-frontend/app/search/page.tsx @@ -40,11 +40,15 @@ export default async function SearchPage({ searchParams }: SearchPageProps) {
Find users and thoughts across the platform.
++ To find someone on Mastodon, type their full handle: @alice@mastodon.social +
); } const isHandle = HANDLE_RE.test(query); + const isPartialHandle = !isHandle && query.includes("@"); const [results, remoteActor, me] = await Promise.all([ isHandle ? null : search(query, token).catch(() => null), @@ -61,6 +65,11 @@ export default async function SearchPage({ searchParams }: SearchPageProps) {+ Looks like a fediverse handle. Use the full format: @alice@mastodon.social +
+ )} {isHandle ? ( remoteActor ? (