mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(popular threads box): in each post content, one return would appear as two returns (empty lines)
This commit is contained in:
@@ -18,9 +18,11 @@ interface PopularThreadProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThreadProps) => {
|
const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThreadProps) => {
|
||||||
const { cid, content, subplebbitAddress, title } = post || {};
|
const { cid, subplebbitAddress, title } = post || {};
|
||||||
const commentMediaInfo = getCommentMediaInfo(post);
|
const commentMediaInfo = getCommentMediaInfo(post);
|
||||||
|
|
||||||
|
let content = post?.content?.replace(/\n\n/g, '\n');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.popularThread} key={cid}>
|
<div className={styles.popularThread} key={cid}>
|
||||||
<div className={styles.title}>{boardTitle || boardShortAddress}</div>
|
<div className={styles.title}>{boardTitle || boardShortAddress}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user