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

ForumMagnum / ForumMagnum / 25461329847

06 May 2026 09:10PM UTC coverage: 48.381% (+2.3%) from 46.117%
25461329847

push

github

claude
Address code review on rejected-content fixes

- Extend postIsPublic to include !rejected. Drop the inline rejected
  layering in removeRedraftNotifications. The other two postIsPublic
  call sites (sendNewPostNotifications, taggedPostNewNotifications)
  also benefit: rejected posts no longer trigger publish or tag-
  subscriber notifications.

- Fix getCommentsWithReacts truncation: previously the rejected filter
  ran on the outer query, so the inner LIMIT could allocate slots to
  rejected comments that were then dropped, returning fewer than `limit`
  rows. Move the filter into the inner subquery via a JOIN to Comments
  so LIMIT applies to non-rejected reactions.

- Standardize the ES indexer queries to "rejected" IS NOT TRUE,
  matching the convention used elsewhere in the diff.

- Use Promise.all in removeCommentNotificationsOnHidden instead of
  fire-and-forget forEach, so the comment update mutation doesn't
  return before notification cleanup completes.

7920 of 10711 branches covered (73.94%)

Branch coverage included in aggregate %.

6 of 15 new or added lines in 5 files covered. (40.0%)

43 existing lines in 6 files now uncovered.

177780 of 373119 relevant lines covered (47.65%)

36.55 hits per line

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

51.54
/packages/lesswrong/server/callbacks/postCallbackFunctions.tsx


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