From 50284a5949c7b1b559b9c7cdf47371a0564e2e22 Mon Sep 17 00:00:00 2001 From: Jared Schoeny Date: Fri, 16 Jan 2026 14:36:41 -1000 Subject: [PATCH] Add more info to admin new hacks discord notif --- src/app/submit/actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/submit/actions.ts b/src/app/submit/actions.ts index 9cb10a1..7a18d80 100644 --- a/src/app/submit/actions.ts +++ b/src/app/submit/actions.ts @@ -229,7 +229,7 @@ export async function confirmPatchUpload(args: { slug: string; objectKey: string const { data: hack, error: hErr } = await supabase .from("hacks") - .select("slug, created_by, title, current_patch, original_author, permission_from, is_archive, approved") + .select("slug, created_by, title, current_patch, original_author, permission_from, is_archive, approved, verification_contact_info") .eq("slug", args.slug) .maybeSingle(); if (hErr) return { ok: false, error: hErr.message } as const; @@ -307,7 +307,9 @@ export async function confirmPatchUpload(args: { slug: string; objectKey: string const embed: APIEmbed = args.firstUpload ? { title: `:tada: ${hack.title}`, - description: `A new hack by **${displayName}** is pending approval by an admin.` + (uploadedByDifferentUser ? ` (Uploaded by ${user.id})` : ''), + description: `A new hack by **${displayName}** is pending approval by an admin.` + + (uploadedByDifferentUser ? ` (Uploaded by ${user.id})` : '') + + (hack.verification_contact_info ? `\n\n**Verification contact info:**\n${hack.verification_contact_info}` : ''), color: 0x40f56a, url: `${process.env.NEXT_PUBLIC_SITE_URL}/hack/${args.slug}`, footer: {