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

umputun / tg-spam / 19400605288

16 Nov 2025 04:54AM UTC coverage: 81.869% (+0.006%) from 81.863%
19400605288

push

github

web-flow
fix: make CheckShortMessagesWithOpenAI ignore veto mode (#338)

when CheckShortMessagesWithOpenAI is enabled, short messages are now
always checked by OpenAI regardless of veto mode setting. this is
correct behavior since short messages skip most spam checks (similarity,
classifier), leaving no prior decision for veto mode to override.

changes:
- modified detector.go to separate short message logic from veto mode
- added shouldCheck flag combining both conditions
- added comprehensive tests for all edge cases
- updated README.md to clarify veto mode interaction

Related to #335

10 of 10 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

6177 of 7545 relevant lines covered (81.87%)

273.12 hits per line

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

84.56
/app/webapi/webapi.go


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