From a57cc1e4e70bd3fb96f6b94735d4749c0f074257 Mon Sep 17 00:00:00 2001 From: plebeius Date: Wed, 24 Dec 2025 18:09:00 +0100 Subject: [PATCH] fix: update Plebbit.getShortCid calls to use object parameter format --- src/components/reply-modal/reply-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index eca63e6d..4ca4c2b6 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -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 }} >
- {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 } })}