This commit is contained in:
MeowcaTheoRange 2024-04-24 13:11:41 -05:00
parent c553f9bfff
commit 86e593eb4c

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { MainLayout } from "@/layout/MainLayout/MainLayout";
import { cookies } from "next/headers";
import { db, JamTable, UserTable } from "@/lib/mastoauth/kysely";
@ -84,7 +86,7 @@ export default async function Home({
<MainLayout currentPage="/jams/" title={content.name} subtitle="Jams" backButton>
<h1>{content.name}</h1>
<p><a href={content.url} target="_blank">{content.url}</a></p>
<ConditionalNull condition={submittedJam != null}>
<ConditionalNull condition={submittedJam != null}>
<p><small>Submitted by <a href={`/jams/user/${contentOwner.id}`}>{`${contentOwner.username}@${contentOwner.instance}`}</a> to <a href={`/jams/jam/${submittedJam.id}?until=${content.submitted}`}>{submittedJam.name}</a> - {new Date(parseInt(content.submitted)).toDateString()}</small></p>
</ConditionalNull>
<ConditionalNull condition={submittedJam == null}>