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>
|
</div>
|
||||||
{renderedComments?.map((reply) => {
|
{renderedComments?.map((reply) => {
|
||||||
const replyMediaInfo = getCommentMediaInfo(reply);
|
const replyMediaInfo = getCommentMediaInfo(reply);
|
||||||
|
const shortParentCid = findShortParentCid(reply.parentCid, selectedFeed);
|
||||||
return (
|
return (
|
||||||
<div key={`mob-rc-${reply.cid}`} className="reply-container">
|
<div key={`mob-rc-${reply.cid}`} className="reply-container">
|
||||||
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
||||||
@@ -851,6 +852,9 @@ const Board = () => {
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
: <blockquote key={`mob-pm-${reply.cid}`} className="post-message">
|
: <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} />
|
<Post content={reply.content} key={`post-mobile-${reply.cid}`} handlequoteclick={handleQuoteClick} comment={reply} />
|
||||||
</blockquote>)
|
</blockquote>)
|
||||||
: null}
|
: null}
|
||||||
|
|||||||
@@ -721,6 +721,7 @@ const Thread = () => {
|
|||||||
{comment.replyCount === undefined ? <PostLoader /> : null}
|
{comment.replyCount === undefined ? <PostLoader /> : null}
|
||||||
{comment.replyCount > 0 &&
|
{comment.replyCount > 0 &&
|
||||||
renderedComments.map((reply) => {
|
renderedComments.map((reply) => {
|
||||||
|
const shortParentCid = findShortParentCid(reply.parentCid, comment);
|
||||||
return (
|
return (
|
||||||
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
|
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
|
||||||
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
||||||
@@ -760,6 +761,10 @@ const Thread = () => {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<blockquote key={`mob-pm-${reply.cid}`} className="post-message-mobile">
|
<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}`} />
|
<Post content={reply.content} comment={reply} handlequoteclick={handleQuoteClick} key={`post-mobile-${reply.cid}`} />
|
||||||
</blockquote>
|
</blockquote>
|
||||||
{reply.replyCount > 0 ? (
|
{reply.replyCount > 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user