• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CMU-313 / nodebb-spring-26-tigers / 22476320065

27 Feb 2026 07:00AM UTC coverage: 78.839% (-0.02%) from 78.863%
22476320065

push

github

web-flow
tests/feat: anonymous toggle functionality

Context
This PR introduces support for marking topics and posts as “anonymous.”

Description
When the "Post anonymously" toggle is checked when drafting a post, it gets marked as anonymous and the username of the poster is hidden

Changes

Added plugin to scrub user data from posts and inject the toggle into the composer
Changed topic and post schemas to show the anonymous fields of topic and post objects
getFields methods for posts and topics now exposes anonymous field
Tests for verifying the toggle injection rendering and user scrubbing functions of the plugin
Testing

Unit tests (npm test)
npm install, ./nodebb activate nodebb-plugin-anon-toggle, then build and run to see the toggle and make test posts

11718 of 16717 branches covered (70.1%)

Branch coverage included in aggregate %.

63 of 72 new or added lines in 4 files covered. (87.5%)

25 existing lines in 5 files now uncovered.

25588 of 30602 relevant lines covered (83.62%)

1484.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.66
/plugins/nodebb-plugin-anon-toggle/library.js


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc