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:
@@ -5,6 +5,7 @@ import { decodeGeohash } from "./geohash.ts";
|
||||
import { lang, t, type Key } from "./i18n.ts";
|
||||
import { contactPanel, showConversation, showInbox } from "./chat.ts";
|
||||
import { showOwner } from "./owner.ts";
|
||||
import { reportPanel, showReports } from "./reports.ts";
|
||||
import { getToken, setToken } from "./ownerApi.ts";
|
||||
import { showPublish } from "./publish.ts";
|
||||
import { showRegions } from "./regions.ts";
|
||||
@@ -299,6 +300,7 @@ function listingBody(l: Listing): HTMLElement[] {
|
||||
? h("section", { class: "panel" }, h("h2", null, t("detail.features")), h("ul", { class: "chips" }, ...l.features.map((f) => h("li", null, f))))
|
||||
: h("span"),
|
||||
contactPanel(l),
|
||||
reportPanel(l),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -377,6 +379,7 @@ function route(): void {
|
||||
else if (c) void showConversation(c[1]!, c[2]!, c[3]!);
|
||||
else if (path === "/messages") showInbox();
|
||||
else if (path === "/mine/regions") showRegions();
|
||||
else if (path === "/mine/reports") void showReports();
|
||||
else if (path === "/mine/new") void showPublish();
|
||||
else if (edit) void showPublish(edit[1]);
|
||||
else if (own) void showOwner(own[1], own[2]);
|
||||
|
||||
Reference in New Issue
Block a user