mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-21 14:09:17 +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]);
|
}, [getValues().content, emojis]);
|
||||||
|
|
||||||
const submit = handleSubmit(async (values) => {
|
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);
|
if (pub && onSubmitted) onSubmitted(pub.event);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user