diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index c2cbdb01..b3c92e5a 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -371,451 +371,454 @@ const Board = () => {
- } - > - {feed.map(thread => { - const { replies: { pages: { topAll: { comments } } } } = thread; - const { renderedComments, omittedCount } = renderComments(comments); - const commentMediaInfo = getCommentMediaInfo(thread); - const fallbackImgUrl = "/assets/filedeleted-res.gif"; - return ( - -
-
-
-
-
- {commentMediaInfo?.url ? ( -
- - {commentMediaInfo?.type === "webpage" ? ( - - thumbnail e.target.src = fallbackImgUrl} /> - - ) : null} - {commentMediaInfo?.type === "image" ? ( - - {commentMediaInfo.type} e.target.src = fallbackImgUrl} /> - - ) : null} - {commentMediaInfo?.type === "video" ? ( - - { - const img = document.querySelector(`img[key="img-${thread.cid}"]`); - if (img) { - img.src = thumbnail; - } - }} - /> - - ) : null} - {commentMediaInfo?.type === "audio" ? ( - - - ) : null} -
- ) : null} - - {thread.title ? ( - thread.title.length > 75 ? - - - {thread.title.slice(0, 75) + " (...)"} - - - : - {thread.title} - ) - : null}  - {thread.author.displayName - ? thread.author.displayName.length > 20 - ? - - {thread.author.displayName.slice(0, 20) + " (...)"} - - - : - {thread.author.displayName} - : - Anonymous} -   - (u/ - {thread.author.address.length > 15 ? - - - {thread.author.address.slice(0, 15) + "..."} - - - : - {thread.author.address} - }) -   - {getDate(thread.timestamp)} -   - - c/ - -   -   - [ - handleClickThread(thread.cid)} className="reply-link" >Reply - ] - -   - - - - {thread.content ? ( - thread.content.length > 2000 ? - -
- {thread.content.slice(0, 2000)} - (...) -

- Post too long.  - handleClickThread(thread.cid)} className="ttl-link">Click here -  to view.
-
-
- :
- {thread.content} -
) - : null} -
-
-
- - {omittedCount > 0 ? ( - - - {omittedCount} post{omittedCount > 1 ? "s" : ""} omitted. Click  - handleClickThread(thread.cid)} className="ttl-link">here -  to view. - - ) : null} - - {renderedComments.map(reply => { - return ( -
-
{'>>'}
-
-
- - {reply.author.displayName - ? reply.author.displayName.length > 12 - ? - - {reply.author.displayName.slice(0, 12) + " (...)"} - - - : - {reply.author.displayName} - : - Anonymous} -   - - (u/ - {reply.author.address.length > 12 ? - - - {reply.author.address.slice(0, 12) + "..."} - - - : - {reply.author.address} - } - ) - - -   - {getDate(reply.timestamp)} -   - - c/ - -   - -