an independent Bluesky client using Constellation, PDS Queries, and other services reddwarf.app
frontend spa bluesky reddwarf microcosm client app
92
fork

Configure Feed

Select the types of activity you want to include in your feed.

Polls auth gate toast

+7 -2
+7 -2
src/providers/PollMutationQueueProvider.tsx
··· 111 111 isMultiple: boolean, 112 112 currentServerVotes: string[], 113 113 ) => { 114 - if (!agent?.did) return; 114 + if (!agent?.did) { 115 + renderSnack({ 116 + title: "Please log in to vote", 117 + description: "You need to be authenticated to participate in polls", 118 + }); 119 + return; 120 + } 115 121 116 122 const optionKey = option as "a" | "b" | "c" | "d"; 117 123 const timestamp = Date.now(); ··· 343 349 ]; 344 350 }, [userVotesA, userVotesB, userVotesC, userVotesD]); 345 351 } 346 - type VoterRef = { did: string }; 347 352 348 353 export function usePollData( 349 354 pollUri: string,