abuse reports in the browser: notice, visitor tips, operator form and queue
A listing page says when the node hides the listing and who flagged it. A visitor can tip off the operator (proof-of-work, nothing is hidden by it); the signed-in operator can sign or withdraw a report from the page and works through the tips at #/mine/reports. e2e covers the real binaries. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -579,6 +579,14 @@ the reports: `hidden`, `trusted` counts per category, `others`, `signals`,
|
||||
(admin token): `GET /api/v1/signals`, `DELETE /api/v1/signals/{author}/{id}`,
|
||||
`POST /api/v1/reports` (`{listing, category, note}`).
|
||||
|
||||
**In the browser** (`web/src/reports.ts`). Every listing page asks the node what
|
||||
it makes of the reports and says so if the node hides the listing, and who
|
||||
flagged it (counts per reason; reports from reporters the node does not trust
|
||||
are mentioned and not counted). A "Report this listing" form mines the proof-of-work
|
||||
and sends a tip. When the operator is signed in, a second form signs a report
|
||||
(or withdraws it). `#/mine/reports` is the operator's queue of tips, grouped by
|
||||
listing: report as the reason a visitor gave, or dismiss.
|
||||
|
||||
**Not built yet:** vouching (who becomes trusted is the operator's choice for
|
||||
now), signed blocklists you subscribe to by curator key, an owner's signed
|
||||
reply to a report, and reputation for reporters whose reports are overruled.
|
||||
|
||||
Reference in New Issue
Block a user