File tree Expand file tree Collapse file tree
api/graph/v3/auth/base-nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default async function RootLayout({ children, params }: Props) {
5858 < head >
5959 < Script
6060 src = "https://cloud.umami.is/script.js"
61- data-website-id = "1ab53139-e458-4796-a0f5-ed330149637b "
61+ data-website-id = "7cf60f23-a610-4b31-839f-418e1ea9516f "
6262 strategy = "afterInteractive"
6363 />
6464 </ head >
Original file line number Diff line number Diff line change @@ -116,9 +116,15 @@ async function authBaseNodesHandler(
116116 ON st.node_id = g.id
117117 AND st.source_id = '${ userId . replace ( / ' / g, "''" ) } '::uuid`
118118 : ( twitterId
119- ? `INNER JOIN postgres_db.public.get_following_hashes_for_follower(${ twitterIdSql } ::bigint) fh
120- ON ${ coordHashSql } = fh.coord_hash`
121- : `INNER JOIN (SELECT '__none__' AS coord_hash) fh ON ${ coordHashSql } = fh.coord_hash` )
119+ ? `INNER JOIN (
120+ SELECT DISTINCT COALESCE(tbu.twitter_id, tmu.twitter_id) AS twitter_id
121+ FROM postgres_db.public.sources_followers sf
122+ LEFT JOIN postgres_db.public.twitter_bluesky_users tbu ON tbu.id = sf.source_id
123+ LEFT JOIN postgres_db.public.twitter_mastodon_users tmu ON tmu.id = sf.source_id
124+ WHERE sf.node_id = ${ twitterIdSql }
125+ AND (tbu.twitter_id IS NOT NULL OR tmu.twitter_id IS NOT NULL)
126+ ) s ON g.id = s.twitter_id`
127+ : `INNER JOIN (SELECT NULL::bigint AS twitter_id) s ON FALSE` )
122128 }
123129 WHERE g.community != 8
124130 AND ${ twitterId ? `g.id != ${ twitterIdSql } ` : 'TRUE' }
You can’t perform that action at this time.
0 commit comments