Add account restrictions, appeals, and admin moderation tools

This commit is contained in:
2026-10-13 12:32:37 +05:00
parent 018be5049e
commit cfe5820802
28 changed files with 1936 additions and 125 deletions

View File

@@ -36,11 +36,13 @@ async function announcementSource(
.maybeSingle();
if (row.error) required(row);
if (!row.data) return null;
const owner = await db
.from("profiles")
.select("display_name")
.eq("id", row.data.owner_id)
.maybeSingle();
const owner = row.data.owner_id
? await db
.from("profiles")
.select("display_name")
.eq("id", row.data.owner_id)
.maybeSingle()
: { data: null, error: null };
if (owner.error) required(owner);
return {
id: row.data.id,