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

umputun / remark42 / 44848169515
87%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2026 01:09AM 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

21 Nov 2026 01:06AM UTC coverage: 86.987% (+0.2%) from 86.815%
44848169515

push

github

web-flow
Refuse edits of deleted comments and edits from blocked users (#2363)

* Refuse to edit the text of a deleted comment

A soft-deleted comment keeps its author, so the author could send new
text for it through PUT /api/v1/comment/{id} inside the edit window, and
outside it when the author was an admin with admin editing enabled, or
when the window was unlimited and the comment had no replies.
EditComment saved that text while the comment stayed marked as deleted:
the widget still showed it as deleted, but GET /api/v1/id/{id}, the
plain find format and the post RSS feed returned the new text.

EditComment now rejects a text edit of a deleted comment, admin edits
included, and the handler answers it with 400 and ErrCommentRejected.
The check follows the edit window and replies checks. A repeated delete
request is accepted as before.

* Refuse a comment edit from a blocked user

A token issued before a block is accepted until it is refreshed, so
creating a comment and voting check the block on every request. Editing
a comment did not, and a temporarily blocked user, whose comments are
kept, could change their text until the token was refreshed.

updateCommentCtrl now answers a text edit from a blocked user with 403
and the user blocked error code, as createCommentCtrl and voteCtrl do. A
delete request is not affected, so a blocked user can still remove their
own comment.

7 of 7 new or added lines in 2 files covered. (100.0%)

102 existing lines in 4 files now uncovered.

6785 of 7800 relevant lines covered (86.99%)

50.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
46
79.58
1.48% backend/app/rest/api/rest_private.go
27
82.81
2.44% backend/app/rest/api/migrator.go
20
79.79
0.21% backend/app/rest/api/admin.go
9
68.85
1.61% backend/app/rest/httperrors.go
Jobs
ID Job ID Ran Files Coverage
1 44848169515.1 21 Nov 2026 01:09AM UTC 57
86.99
GitHub Action Run
Source Files on build 44848169515
  • Tree
  • List 57
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5fae0213 on github
  • Prev Build on master (#44833132595)
  • Next Build on master (#44848158036)
  • 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