summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-node.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-07-13 09:57:37 -0400
committerDessalines <tyhou13@gmx.com>2020-07-13 09:57:37 -0400
commit1b7a4ac09019c84c23e7b5056fecf56367a940f7 (patch)
treee46bd44b8e79bc3907ffb365d8d78492e826809e /ui/src/components/comment-node.tsx
parent8f745b80d3c7bf2ee901d7a3333d7303cdbe6b42 (diff)
parent9ad0a8825ae8cda6b6fcb3d5bb163c234c26b823 (diff)
Merge branch 'add_post_title_to_comments_view' of https://github.com/makigi-io/makigi into makigi-io-add_post_title_to_comments_view
Diffstat (limited to 'ui/src/components/comment-node.tsx')
-rw-r--r--ui/src/components/comment-node.tsx9
1 files changed, 9 insertions, 0 deletions
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