From 308eb8868b18307034fa83dbbbb9ddc0e2caa4c8 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 2 Sep 2025 22:05:56 +0900 Subject: [PATCH] add proper route to redirect on pub login in comments --- .../[rkey]/Interactions/Comments/index.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx index 5f0ffd1b..fcc631ce 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx @@ -29,6 +29,13 @@ export function Comments(props: { document_uri: string; comments: Comment[] }) { return [...localComments, ...props.comments]; }, [props.comments, localComments]); let pathname = usePathname(); + let redirectRoute = useMemo(() => { + let url = new URL(pathname, window.location.origin); + url.searchParams.set("refreshAuth", ""); + url.searchParams.set("interactionDrawer", "comments"); + url.hash = "commentsDrawer"; + return url.toString(); + }, []); return (
@@ -46,11 +53,7 @@ export function Comments(props: { document_uri: string; comments: Comment[] }) { ) : (
Connect a Bluesky account to comment - +
)}
-- 2.51.2