···33333434// the maximum amount of repost posts an account can have at any one time.
3535// because some people went incredibly overboard.
3636-export const MAX_REPOST_POSTS: number = 50;
3636+export const MAX_REPOST_POSTS: number = 40;
37373838// a limit for the maximum number of repost rules a single post can have
3939-export const MAX_REPOST_RULES_PER_POST: number = 7;
3939+export const MAX_REPOST_RULES_PER_POST: number = 5;
40404141/** INTERNAL LIMITS, DO NOT CHANGE **/
4242// Maximums used internally, do not change these directly.
+7-2
src/utils/db/violations.ts
···7878 }
7979 let violationsArray = [];
8080 violationsArray.push(violationType);
8181- const valuesUpdate: LooseObj = createObjForValuesChange(flatten(violationsArray), true);
8181+ violationsArray = flatten(violationsArray);
8282+8383+ const valuesUpdate: LooseObj = createObjForValuesChange(violationsArray, true);
8484+ console.log(`making violations array ${violationsArray}, had updates of ${valuesUpdate}`);
8585+8686+ // handle auto-bans
8287 if (violationType === AccountStatus.TOSViolation) {
8388 const bskyUsername = await getUsernameForUserId(c, userId);
8489 if (bskyUsername !== null) {
···120125 }
121126122127 // Create the update query
123123- const valuesUpdate:LooseObj = createObjForValuesChange(violationType, false);
128128+ const valuesUpdate: LooseObj = createObjForValuesChange(violationType, false);
124129 await db.update(violations).set({...valuesUpdate}).where(eq(violations.userId, userId));
125130 // Delete the record if the user has no other violations
126131 await db.delete(violations).where(and(eq(violations.userId, userId),