mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-19 12:00:32 +02:00
fix created_at when publishing replies
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user