diff --git a/app/db/seed.ts b/app/db/seed.ts index 0ed240847..17c17f180 100644 --- a/app/db/seed.ts +++ b/app/db/seed.ts @@ -879,10 +879,10 @@ function detailedTeam() { sql .prepare( /* sql */ ` - insert into "UnvalidatedUserSubmittedImage" ("validatedAt", "url") + insert into "UnvalidatedUserSubmittedImage" ("validatedAt", "url", "submitterUserId") values - (1672587342, 'AiGSM5T-cxm6BFGT7N_lA-1673297699133.webp'), - (1672587342, 'jTbWd95klxU2MzGFIdi1c-1673297932788.webp') + (1672587342, 'AiGSM5T-cxm6BFGT7N_lA-1673297699133.webp', 1), + (1672587342, 'jTbWd95klxU2MzGFIdi1c-1673297932788.webp', 1) ` ) .run(); diff --git a/app/routes/u.$identifier/index.tsx b/app/routes/u.$identifier/index.tsx index 07f1df30a..d05e83b0c 100644 --- a/app/routes/u.$identifier/index.tsx +++ b/app/routes/u.$identifier/index.tsx @@ -14,7 +14,7 @@ import { type SendouRouteHandle } from "~/utils/remix"; import { rawSensToString } from "~/utils/strings"; import type { Unpacked } from "~/utils/types"; import { assertUnreachable } from "~/utils/types"; -import { teamPage } from "~/utils/urls"; +import { teamPage, userSubmittedImage } from "~/utils/urls"; import { badgeExplanationText } from "../badges/$id"; import type { UserPageLoaderData } from "../u.$identifier"; @@ -73,7 +73,7 @@ function TeamInfo() { {team.avatarUrl ? (