Skip to content

v0.12.0

Compare
Choose a tag to compare
@FoxxMD FoxxMD released this 23 Aug 14:07
· 151 commits to master since this release

What's New?

Big, new features for Operators and Moderators alike!

Guest Access

Guest Access allows moderators of a subreddit to specify any reddit user that may access their Subreddit's dashboard and configuration as if they were a moderator. This enables moderators to share temporary access to non-moderators and allows these guests to view and edit their subreddit's configuration. Editing is done via the bot and the guest who edited is noted in the wiki page edit reason.

  • Only moderators (not operators) are allowed to add/modify guests
    • Access has a built-in expiration date that can be specified on add

Additionally, operators can specify users who should be given initial guest access (24 hours) on a bot invite. This could, for example, enable a more frictionless experience for new bots/moderators by allowing operators who have also built a config to "complete" the onboarding process for moderators.

Due to changes in database structure required to make Guests work correctly and securely existing bot invitations will be lost on migration (breaking change). If you have existing invitations you must re-create them after migration.

Arbitrary Comment/Submission

Previously CM could only create comments in response to the processing Activity, or its parent Submission.

Now CM can now create comments and submissions in arbitrary locations using targets. Check the Comment Action and Submission Action for how to use targets.

Simplified Initial CM Setup Process

When CM is started with no configuration visiting the web interface will display a new First Time Setup page where you can input the required info (reddit client and operator) for a minimum configuration and write the config with one button click.

With this change it is now possible to run CM without ever modifying the configuration file yourself.

Full Changelog

There were many other improvements and small features added in this release. Check out the full changelog below:

Features

  • (action) Implement creating submissions #93
  • (comment) Implement arbitrary comment targets #93
  • (config) Allow wikiConfig override at subreddit-level
  • (database) Implement automated backup for better-sqlite3 connection
  • (docs) Simplify getting started operator instructions
  • (image) Improve image normalization to make duplicate detection more powerful
  • (image) Implement image flip detection in recent rule
  • (remove) Implement removal reason id and note
  • (ui) Implement saving config as guest mod
  • (ui) Add guided tour for main dashboard
  • (ui) Add initial guests to bot invite and rename Guest Mod to Guest
  • (No Category) Add removal reason related endpoints to snoowrap client
  • (No Category) Add initial setup wizard

Bug Fixes

  • (auth) Fix default instance middleware accessibility check
  • (auth) Fix subreddit normalization
  • (auth) Fix subreddit normalization on client instance
  • (config) Fix setting api friendly name
  • (database) Handle invite migration when db is sqljs
  • (database) Fix how new columns are added to existing table on invite migration
  • (database) Remove table data check due to incompatibility with postgres
  • (guest mod) Parse/clean name from user input before adding
  • (image) Url variable name usage
  • (manager) Fix missing valid config check before starting queue
  • (ui) Fix constant reassignment
  • (No Category) Remove debug statements for image processing
  • (No Category) Cleanup guests and no-config scenario
  • (No Category) Fix missing column type specifying for db session entity

Documentation

  • (No Category) Remove removal reason footnote
  • (No Category) Fix incorrect url for minimum config

Miscellaneous Tasks

  • (No Category) Re-add clean username for guest due to merge
  • (No Category) Bump version constant

Refactor

  • (guest) Migrate invites to be owned by the server
    • BREAKING: Migrate invites to be owned by the server
  • (image) Normalize image hash usage a bit more to reduce complexity
  • (No Category) Simplify ACL for server/client users and introduce guest context