Releases: bakerboy448/RedditModLog
Releases · bakerboy448/RedditModLog
v1.4.3 - Docker Improvements
Fixed
- Add sqlite3 to Docker image for database inspection and troubleshooting
- Proper log routing: INFO/DEBUG to stdout, WARNING/ERROR/CRITICAL to stderr
- Follows Unix convention for log stream separation
Changes
sqlite3package added to runtime dependencies- Custom logging handlers route by severity level
- Maintains all existing logging functionality
Docker Images
ghcr.io/bakerboy448/redditmodlog:latestghcr.io/bakerboy448/redditmodlog:v1.4.3
Database Recovery Status
Both containers are running with recovered historical data:
- OpenSignups: 757 total entries (114KB wiki, 21.7% of limit)
- Usenet: 402 total entries (219KB wiki, 41.8% of limit)
v1.4.1 - Docker Hotfix
Docker Hotfix Release
Fixes
- Fixed s6 run script to pass
--config /config/config.jsonto application - Fixed s6 service symlink (was causing "Exec format error")
- Init script now validates config file OR environment variables (not requiring both)
- Added troubleshooting tools (procps, htop, vim-tiny)
- Improved healthcheck to verify Python process is running
Documentation
- Updated README with correct Docker deployment examples
- Added Docker Compose example configurations
- Documented /config mount structure
Docker Images
ghcr.io/bakerboy448/redditmodlog:v1.4.1ghcr.io/bakerboy448/redditmodlog:latest
Deployment
services:
redditmodlog:
image: ghcr.io/bakerboy448/redditmodlog:latest
environment:
- PUID=1000
- PGID=1000
volumes:
- ./config:/configRecommended: Use this version for all new Docker deployments.
v1.4.0 - Docker Support
Docker Support Release
Features
- Multi-architecture Docker images (linux/amd64, linux/arm64)
- s6-overlay v3 init system for proper process management
- PUID/PGID support for file permissions
- Automatic config file updates on version upgrades
- Single /config mount for all persistent data
- Supports both config file and environment variable configuration
Docker Images
ghcr.io/bakerboy448/redditmodlog:v1.4.0ghcr.io/bakerboy448/redditmodlog:latest
Known Issues
- s6 service configuration had symlink bug (fixed in v1.4.1)
- Config file path not properly configured (fixed in v1.4.1)
See v1.4.1 for the stable Docker release.
v1.3.0: Automatic Wiki Size Limit Handling
What's New
This release fixes the critical issue where the OpenSignups wiki couldn't update due to Reddit's 524KB size limit.
✨ Features
- Automatic content trimming: Bot now automatically removes older days when approaching Reddit's wiki size limit
- Smart trimming at 90% threshold: Ensures wiki never exceeds limits while keeping maximum content
- Enhanced error reporting: Better error messages without requiring debug mode
- Size tracking: Shows wiki size percentage in all update logs
🐛 Bug Fixes
- Fixed 403 errors when wiki pages exceed Reddit's size limit
- Fixed OpenSignups wiki update failures
- Improved error context for troubleshooting
📊 How It Works
When wiki content approaches 90% of Reddit's 524KB limit:
- Bot automatically identifies oldest days
- Trims content day-by-day until under threshold
- Adds note showing how many days were trimmed
- Continues normal operation
Example Output
Wiki approaching size limit - trimming 28 oldest day(s) of entries
Wiki content size after trimming: 463,643 bytes (88.4% of limit)
Successfully updated wiki page: /r/OpenSignups/wiki/modlog
No manual intervention required - the bot handles size limits automatically!
v1.2.0 - Environment Variables & Security
Environment variable support and enhanced security
New Features
- Complete Environment Variable Support: All configuration options can be set via environment variables
- Configuration Hierarchy: CLI args → Environment vars → Config file (in priority order)
- Docker/Container Ready: Full support for containerized deployments
- Action Validation: Strict validation against 44+ known Reddit modlog actions
- Security Enforcement: Mandatory anonymize_moderators=true to protect privacy
Environment Variables
REDDIT_CLIENT_ID,REDDIT_CLIENT_SECRET,REDDIT_USERNAME,REDDIT_PASSWORDSOURCE_SUBREDDIT,WIKI_PAGE,RETENTION_DAYS,BATCH_SIZE,UPDATE_INTERVALWIKI_ACTIONS,IGNORED_MODERATORS,ANONYMIZE_MODERATORS
Security
- BREAKING:
anonymize_moderators=falseis now permanently disabled - Application refuses to start if moderator anonymization is disabled
- Prevents accidental exposure of moderator identities in public wikis
Validation
- Comprehensive action validation with
VALID_MODLOG_ACTIONSconstant - Fail-fast validation rejects invalid actions with clear error messages
- Enhanced configuration safety and reliability
v1.1.0 - Enhanced Removal Tracking
Enhanced removal tracking and approval monitoring
New Features
- Approval Action Tracking: Monitor when human moderators approve AutoMod/Reddit removals
- Combined Display: Merge removelink + addremovalreason into single wiki entries
- AutoMod Filter Distinction: Display AutoMod actions as
filter-removelink/filter-removecomment - Approval Context: Show original removal reason in approval actions
- Smart Filtering: Only display approvals that reverse Reddit/AutoMod actions
Improvements
- Enhanced wiki presentation while maintaining full database integrity
- Better transparency for moderation workflows
- Cleaner action combination logic using content IDs
- Improved removal reason display with original context
Technical
- Added REMOVAL_ACTIONS, APPROVAL_ACTIONS, REASON_ACTIONS constants
- Consolidated action type handling into configurable variables
- Enhanced database queries for approval filtering
v1.0.0 - Initial Release
Initial release of Reddit Moderation Log Publisher
Features
- Automated moderation log scraping and wiki publishing
- SQLite database for action deduplication and retention
- Configurable batch processing and continuous daemon mode
- Per-subreddit logging with rotating handlers
- Reddit OAuth2 authentication support
Configuration
- JSON-based configuration with CLI overrides
- Customizable retention periods and update intervals
- Moderator anonymization for privacy protection
This release provides core functionality for automated Reddit modlog publishing to wiki pages.