refactor: use post number instead of shortCid in reply modal and quote previews

This commit is contained in:
plebeius
2025-12-28 11:53:02 +01:00
parent 2b8d6f4fce
commit bf2c7ae61b
42 changed files with 61 additions and 52 deletions
+2 -1
View File
@@ -113,7 +113,7 @@ const GlobalLayout = () => {
}
}, [theme]);
const { activeCid, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
const { activeCid, parentNumber, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
const location = useLocation();
const isInSettingsView = location.pathname.endsWith('/settings');
@@ -125,6 +125,7 @@ const GlobalLayout = () => {
<ReplyModal
closeModal={closeModal}
parentCid={activeCid}
parentNumber={parentNumber}
postCid={threadCid}
scrollY={scrollY}
showReplyModal={showReplyModal}