diff options
Diffstat (limited to 'ui/src')
-rw-r--r-- | ui/src/components/comment-node.tsx | 9 | ||||
-rw-r--r-- | ui/src/components/inbox.tsx | 3 | ||||
-rw-r--r-- | ui/src/components/user.tsx | 2 | ||||
-rw-r--r-- | ui/src/interfaces.ts | 1 |
4 files changed, 15 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} /> diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index 0bb09e2c..1f281302 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -216,6 +216,7 @@ export interface Comment { local: boolean; creator_id: number; post_id: number; + post_name: string; parent_id?: number; content: string; removed: boolean; |