Skip to content

Prevents flooding by limiting a user to X number of posts in Y number of hours.

License

Notifications You must be signed in to change notification settings

PitchforkAssistant/devvit-flood-assistant

Repository files navigation

FloodingAssistant

FloodAssistant (or FloodingAssistant) is a Devvit app that allows you to restrict users to a certain number of posts within a certain time frame. View the full documentation on the wiki.

Change Log

This section summarizes the changes made for each published version of the app, unpublished versions are not listed, but you can always view the full changes to the code on GitHub.

1.3.0

  • Fixed an issue where the app was unable to retrieve tracked posts in some subreddits with very high post volume or a very long quota period.
  • Upgraded to Devvit 0.11

1.2.0

  • Added "Check User's Quota" button to the subreddit context menu. This button will open a form that allows moderators to check a specific user's quota state. You will be able to see which posts are counted towards their quota and which are excluded and why.
  • Added option to lock posts after removal.
  • Posts that exceed the quota will now be removed on subreddits that have the spam filter set to "all".
  • Added validation to removal reason ID field to ensure it exists on the subreddit.

1.1.4

  • Simplifies the check that was used for avoiding double-actioning posts that were removed by someone else (automod, bot, etc) before we could action them. This was causing Devvit metadata to be lost in some mysterious cases, resulting in the removal failing.

1.1.3

  • Upgraded to a newer version of Devvit to resolve an issue where the app would break if the subreddit used the new "channels" and "chat_config" moderator permissions.

1.1.2

  • Fixed an issue where custom date placeholder options were not being properly validated before saving. This could cause the app to crash if an invalid date format was entered. I highly recommend hitting save on the app's settings page again to ensure those settings are valid.

1.1.1

  • Minor performance improvements, especially for subreddits with a large number of posts. More specifically, getPostsByAuthor now uses the recently added zScan method.

1.1.0

  • The app now uses Devvit's new Redis client for tracking posts instead of the old KV store. Due to serious issues with the KV store, older versions of the apps may no longer work and must update to this version or beyond. For the same reason, it was not possible to migrate existing data to the new system. Updating to this version, all existing quotas will be reset.
  • Major rewrite of the FloodAssistant's code. This should improve the app's reliability and maintainability.
  • "Ignore Auto-Removed Posts" no longer needs to be enabled for posts removed by FloodAssistant to not count towards the quota, they will always be ignored.
  • New placeholders: {{quota_oldest_id}}, {{quota_oldest_url}}, {{quota_newest_id}}, and {{quota_newest_url}}.

0.3.6

  • The locale field is now a dropdown with all supported locales instead of a text box (previously very long dropdowns had issues). If you previously entered a custom locale, you may need to reselect it.

About

Prevents flooding by limiting a user to X number of posts in Y number of hours.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published