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

umputun / remark42 / 44830887201
87%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2026 10:44PM UTC
Jobs 1
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 10:40PM UTC coverage: 86.777% (+0.03%) from 86.744%
44830887201

push

github

umputun
Reject a block ttl that does not parse instead of blocking permanently

The admin block handler ignored a ttl that time.ParseDuration could not
read and blocked the user permanently. A permanent block also deletes
the user's comments on that site, so a mistyped value, or the 7d shown
in the API documentation and in the handler's own comment, could delete
them when only a temporary block was intended. A negative
ttl left a permanent block in the store while keeping the comments.

The handler now answers 400 before changing anything when ttl does not
parse or is negative. No ttl and ttl=0 still mean a permanent block, and
the literal "undefined", which the widget up to v1.16.4 (released
10 July 2026) sent for its "Permanently" choice, is read as no ttl so
those bundles keep working.
The values the current widget sends (43200m, 10080m, 1440m) are unchanged.

The API documentation now shows a ttl the server accepts and says what
format ttl takes and what its absence means.

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

6740 of 7767 relevant lines covered (86.78%)

49.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44830887201.1 20 Nov 2026 10:44PM UTC 57
86.78
GitHub Action Run
Source Files on build 44830887201
  • Tree
  • List 57
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a6b4a1df on github
  • Prev Build on master (#44829709069)
  • Next Build on master (#44832845247)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc