summaryrefslogtreecommitdiffstats
path: root/ui/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components')
-rw-r--r--ui/src/components/comment-node.tsx9
-rw-r--r--ui/src/components/inbox.tsx3
-rw-r--r--ui/src/components/user.tsx2
3 files changed, 14 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
diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx
index 2bf1fb47..8e148921 100644
--- a/ui/src/components/inbox.tsx
+++ b/ui/src/components/inbox.tsx
@@ -267,6 +267,7 @@ export class Inbox extends Component<any, InboxState> {
nodes={[{ comment: i }]}
noIndent
markable
+ showCommunity
showContext
enableDownvotes={this.state.enableDownvotes}
/>
@@ -285,6 +286,7 @@ export class Inbox extends Component<any, InboxState> {
nodes={commentsToFlatNodes(this.state.replies)}
noIndent
markable
+ showCommunity
showContext
enableDownvotes={this.state.enableDownvotes}
/>
@@ -300,6 +302,7 @@ export class Inbox extends Component<any, InboxState> {
nodes={[{ comment: mention }]}
noIndent
markable
+ showCommunity
showContext
enableDownvotes={this.state.enableDownvotes}
/>
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index 0e107363..854dd6ef 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -383,6 +383,7 @@ export class User extends Component<any, UserState> {
nodes={[{ comment: i.data as Comment }]}
admins={this.state.admins}
noIndent
+ showCommunity
showContext
enableDownvotes={this.state.site.enable_downvotes}
/>
@@ -400,6 +401,7 @@ export class User extends Component<any, UserState> {
nodes={commentsToFlatNodes(this.state.comments)}
admins={this.state.admins}
noIndent
+ showCommunity
showContext
enableDownvotes={this.state.site.enable_downvotes}
/>