Add account restrictions, appeals, and admin moderation tools
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user