fix: update Plebbit.getShortCid calls to use object parameter format

This commit is contained in:
plebeius
2025-12-24 18:09:00 +01:00
parent 76845412e8
commit a57cc1e4e7
+2 -2
View File
@@ -178,7 +178,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
}
}, []);
const contentPrefix = `>>${parentCid && Plebbit.getShortCid(parentCid)}\n`;
const contentPrefix = `>>${parentCid && Plebbit.getShortCid({ cid: parentCid })}\n`;
// enable spellcheck after the prefix is set
useEffect(() => {
@@ -259,7 +259,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
}}
>
<div className={`replyModalHandle ${styles.title}`} {...(!isMobile ? bind() : {})}>
{t('reply_to_cid', { cid: `CID:${parentCid && Plebbit.getShortCid(parentCid)}`, interpolation: { escapeValue: false } })}
{t('reply_to_cid', { cid: `CID:${parentCid && Plebbit.getShortCid({ cid: parentCid })}`, interpolation: { escapeValue: false } })}
<button
className={styles.closeIcon}
onClick={(e) => {