handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs

feat: add follower rule option to threadgate applicator

ty @dame-is!

closes https://github.com/mary-ext/boat/pull/9

authored by

dame-is and committed by mary.my.id 80ba6182 a463ad3c

verified
+17
+17
src/views/bluesky/threadgate-applicator/steps/step2_rules-input.tsx
··· 178 178 </legend> 179 179 180 180 <ToggleInput 181 + label="followers" 182 + checked={hasThreadRule({ $type: 'app.bsky.feed.threadgate#followerRule' })} 183 + onChange={(next) => { 184 + if (next) { 185 + setCustomThreadRules([ 186 + ...(threadRules() ?? []), 187 + { $type: 'app.bsky.feed.threadgate#followerRule' }, 188 + ]); 189 + } else { 190 + setCustomThreadRules( 191 + threadRules()?.filter((rule) => rule.$type !== 'app.bsky.feed.threadgate#followerRule'), 192 + ); 193 + } 194 + }} 195 + /> 196 + 197 + <ToggleInput 181 198 label="followed users" 182 199 checked={hasThreadRule({ $type: 'app.bsky.feed.threadgate#followingRule' })} 183 200 onChange={(next) => {