diff --git a/src/components/Post.jsx b/src/components/Post.jsx index 48782db1..836f2948 100644 --- a/src/components/Post.jsx +++ b/src/components/Post.jsx @@ -25,7 +25,7 @@ const blockquoteToGreentext = () => (tree) => { }); }; -const createQuotelink = (handleQuoteClick, comment, children) => { +const createQuotelink = (handlequoteclick, comment, children) => { const text = children.map((child) => (typeof child === 'string' ? child : child.props.children)).join(''); const regex = /(\s|^)(c\/[A-Za-z0-9]{12}|c\/[A-Za-z0-9]{45})(?=\s|$)/g; const parts = text.split(regex); @@ -37,7 +37,7 @@ const createQuotelink = (handleQuoteClick, comment, children) => { key={`link-${i}`} className="quotelink" to="" - onClick={handleQuoteClick} + onClick={handlequoteclick} > {part.trim()} , @@ -49,7 +49,7 @@ const createQuotelink = (handleQuoteClick, comment, children) => { }; -const Post = ({ content, handleQuoteClick, comment }) => { +const Post = ({ content, handlequoteclick, comment }) => { const sanitizedContent = DOMPurify.sanitize(content); return ( @@ -62,7 +62,7 @@ const Post = ({ content, handleQuoteClick, comment }) => { source: () => null, gif: () => null, p: ({ children }) => ( -

{createQuotelink(handleQuoteClick, comment, children)}

+

{createQuotelink(handlequoteclick, comment, children)}

), }} /> diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 5d4ebaa2..6336e655 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -620,8 +620,8 @@ const Board = () => { {reply.content ? ( reply.content.length > 500 ? -
- +
+ (...)

Comment too long.  @@ -630,7 +630,7 @@ const Board = () => {
:
- +
) : null} @@ -825,7 +825,7 @@ const Board = () => { reply.content.length > 500 ?
- + (...)

Comment too long.  @@ -834,7 +834,7 @@ const Board = () => {
:
- +
) : null} diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx index e83f6706..be5e3ada 100644 --- a/src/components/views/Thread.jsx +++ b/src/components/views/Thread.jsx @@ -496,7 +496,7 @@ const Thread = () => {
- +
@@ -608,7 +608,7 @@ const Thread = () => { ) : null}
- +
@@ -703,7 +703,7 @@ const Thread = () => {
{comment.content ? ( <> - + ) : null}
@@ -753,7 +753,7 @@ const Thread = () => {
- +