mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added mobile shortParentCid
This commit is contained in:
@@ -767,6 +767,7 @@ const Board = () => {
|
||||
</div>
|
||||
{renderedComments?.map((reply) => {
|
||||
const replyMediaInfo = getCommentMediaInfo(reply);
|
||||
const shortParentCid = findShortParentCid(reply.parentCid, selectedFeed);
|
||||
return (
|
||||
<div key={`mob-rc-${reply.cid}`} className="reply-container">
|
||||
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
||||
@@ -851,6 +852,9 @@ const Board = () => {
|
||||
</blockquote>
|
||||
</Fragment>
|
||||
: <blockquote key={`mob-pm-${reply.cid}`} className="post-message">
|
||||
<Link to="" key={`mob-r-pm-${reply.cid}`} className="quotelink" onClick={() => {}}>
|
||||
{`c/${shortParentCid}`}{<br />}
|
||||
</Link>
|
||||
<Post content={reply.content} key={`post-mobile-${reply.cid}`} handlequoteclick={handleQuoteClick} comment={reply} />
|
||||
</blockquote>)
|
||||
: null}
|
||||
|
||||
@@ -721,6 +721,7 @@ const Thread = () => {
|
||||
{comment.replyCount === undefined ? <PostLoader /> : null}
|
||||
{comment.replyCount > 0 &&
|
||||
renderedComments.map((reply) => {
|
||||
const shortParentCid = findShortParentCid(reply.parentCid, comment);
|
||||
return (
|
||||
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
|
||||
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
||||
@@ -760,6 +761,10 @@ const Thread = () => {
|
||||
</span>
|
||||
</div>
|
||||
<blockquote key={`mob-pm-${reply.cid}`} className="post-message-mobile">
|
||||
<Link to={() => {}} key={`mob-ql-${reply.cid}`} className="quotelink-mobile"
|
||||
onClick={(event) => handleQuoteClick(reply, event)}>
|
||||
{`c/${shortParentCid}`}{<br />}
|
||||
</Link>
|
||||
<Post content={reply.content} comment={reply} handlequoteclick={handleQuoteClick} key={`post-mobile-${reply.cid}`} />
|
||||
</blockquote>
|
||||
{reply.replyCount > 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user