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

CMU-313 / nodebb-fall-2025-null-terminators / 18421193342

11 Oct 2025 12:01AM UTC coverage: 78.183% (-0.4%) from 78.548%
18421193342

push

github

web-flow
Add end-to-end Anonymous Posting (#33)

* Add anonymous posting support

Posts now support an 'anonymous' flag that is saved in the database.
UI and server-side rendering mask usernames, avatars, and profile links
on topic pages, category listings, and quick reply so non-owners and
non-mods only see 'Anonymous'.

* Fixed test failure on schema and database upgrade

add anonymous to PostObject/PostDataObject so topic/search responses validate, always return { topics: [...] } to satisfy required schema fields, post data: normalize anonymous to boolean during read to match schema expectations, Upgrades: fix module import paths in src/upgrades/4.4.0/add_anonymous_to_posts.js (use ../../), unblocking upgrade test

* fix(lint): remove await inside loops in upgrade script

Refactor src/upgrades/4.4.0/add_anonymous_to_posts.js to a recursive, batched processor

Use Promise.all per chunk and tail recursion for paging (start += batch)

Preserves behavior (sets anonymous=false when missing) while satisfying no-await-in-loop lint rule

* cleared up the console logs from testings

* fixed lint failure and got rid of redundant debug prints

* fixed ireggular bug where post listing shows user's avatar

mask anonymous posts in category/topic views and update API/schema

* added thorough testings for anonymous feature

* revert test/controllers.js  to clear not needed const

* added more tests for reply aand categories, also cleared remaining console.log

* mcode review changes: refactored test cases and cleared some comments

* revert to unrefactored testtest since failing test on git (passed locally)

* fixed linter error due to merging conflicts

---------

Co-authored-by: preeyaX <70096719+preeyaX@users.noreply.github.com>

11398 of 16488 branches covered (69.13%)

Branch coverage included in aggregate %.

150 of 280 new or added lines in 11 files covered. (53.57%)

25014 of 30085 relevant lines covered (83.14%)

1485.86 hits per line

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

92.45
/src/posts/edit.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