diff --git a/pkg/view/src/components/PostPublish.tsx b/pkg/view/src/components/PostPublish.tsx index b1d5808..18d3ca1 100644 --- a/pkg/view/src/components/PostPublish.tsx +++ b/pkg/view/src/components/PostPublish.tsx @@ -2,6 +2,7 @@ import { createSignal, Show } from "solid-js"; import { getAtk, useUserinfo } from "../stores/userinfo.tsx"; import styles from "./PostPublish.module.css"; +import { closeModel, openModel } from "../scripts/modals.ts"; export default function PostPublish(props: { replying?: any, @@ -33,6 +34,7 @@ export default function PostPublish(props: { alias: data.alias ?? crypto.randomUUID().replace(/-/g, ""), title: data.title, content: data.content, + published_at: data.published_at ? new Date(data.published_at as string) : new Date(), repost_to: props.reposting?.id, reply_to: props.replying?.id }) @@ -96,22 +98,37 @@ export default function PostPublish(props: { -