fix created_at when publishing replies

This commit is contained in:
hzrd149
2024-04-22 10:09:09 -05:00
parent fa6bc0ee3a
commit e22b9aac17

View File

@@ -85,7 +85,7 @@ export default function ReplyForm({ item, onCancel, onSubmitted, replyKind = kin
}, [getValues().content, emojis]);
const submit = handleSubmit(async (values) => {
const pub = await publish("Reply", draft);
const pub = await publish("Reply", { ...draft, created_at: dayjs().unix() });
if (pub && onSubmitted) onSubmitted(pub.event);
});