Schedule posts to Bluesky with Cloudflare workers. skyscheduler.work
cf tool bsky-tool cloudflare bluesky schedule bsky service social-media cloudflare-workers
2
fork

Configure Feed

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

smacking my head downtown

brain damage fast, walking past, and I'm homeward bound

do do do do do, duh duh duh

+9 -4
+2 -2
src/limits.ts
··· 33 33 34 34 // the maximum amount of repost posts an account can have at any one time. 35 35 // because some people went incredibly overboard. 36 - export const MAX_REPOST_POSTS: number = 50; 36 + export const MAX_REPOST_POSTS: number = 40; 37 37 38 38 // a limit for the maximum number of repost rules a single post can have 39 - export const MAX_REPOST_RULES_PER_POST: number = 7; 39 + export const MAX_REPOST_RULES_PER_POST: number = 5; 40 40 41 41 /** INTERNAL LIMITS, DO NOT CHANGE **/ 42 42 // Maximums used internally, do not change these directly.
+7 -2
src/utils/db/violations.ts
··· 78 78 } 79 79 let violationsArray = []; 80 80 violationsArray.push(violationType); 81 - const valuesUpdate: LooseObj = createObjForValuesChange(flatten(violationsArray), true); 81 + violationsArray = flatten(violationsArray); 82 + 83 + const valuesUpdate: LooseObj = createObjForValuesChange(violationsArray, true); 84 + console.log(`making violations array ${violationsArray}, had updates of ${valuesUpdate}`); 85 + 86 + // handle auto-bans 82 87 if (violationType === AccountStatus.TOSViolation) { 83 88 const bskyUsername = await getUsernameForUserId(c, userId); 84 89 if (bskyUsername !== null) { ··· 120 125 } 121 126 122 127 // Create the update query 123 - const valuesUpdate:LooseObj = createObjForValuesChange(violationType, false); 128 + const valuesUpdate: LooseObj = createObjForValuesChange(violationType, false); 124 129 await db.update(violations).set({...valuesUpdate}).where(eq(violations.userId, userId)); 125 130 // Delete the record if the user has no other violations 126 131 await db.delete(violations).where(and(eq(violations.userId, userId),