From b037ff922ce84b98f0a1b1fcd21273af0450a03a Mon Sep 17 00:00:00 2001
From: Ernest <ernestwisniewski2@gmail.com>
Date: Sun, 12 Jul 2020 17:26:10 +0200
Subject: Add post title to comments view #948

---
 ui/src/components/comment-node.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'ui/src/components/comment-node.tsx')

diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx
index 82af0bbe..cca235ab 100644
--- a/ui/src/components/comment-node.tsx
+++ b/ui/src/components/comment-node.tsx
@@ -222,6 +222,15 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
                 <MomentTime data={node.comment} />
               </span>
             </div>
+            {this.props.showCommunity && !this.state.collapsed && (
+              <>
+                <div class="md-div text-muted small">
+                  <Link class="mr-2" to={`/post/${node.comment.post_id}`}>
+                    {node.comment.post_name}
+                  </Link>
+                </div>
+              </>
+            )}
             {/* end of user row */}
             {this.state.showEdit && (
               <CommentForm
-- 
cgit v1.2.3

