]> Untitled Git - lemmy.git/commitdiff
Add post title to user comments inbox view, comment_view, user_mention_view
authorErnest <ernestwisniewski2@gmail.com>
Mon, 13 Jul 2020 06:18:11 +0000 (08:18 +0200)
committerErnest <ernestwisniewski2@gmail.com>
Mon, 13 Jul 2020 06:18:11 +0000 (08:18 +0200)
server/lemmy_db/src/comment_view.rs
server/lemmy_db/src/user_mention_view.rs
ui/src/components/inbox.tsx

index afebac30ed644986d2110b3e47d6ebe47907f30b..4af13c2d9012abed1f12d878fd56052eb20a0a2d 100644 (file)
@@ -301,6 +301,7 @@ table! {
     id -> Int4,
     creator_id -> Int4,
     post_id -> Int4,
+    post_name -> Varchar,
     parent_id -> Nullable<Int4>,
     content -> Text,
     removed -> Bool,
@@ -341,6 +342,7 @@ pub struct ReplyView {
   pub id: i32,
   pub creator_id: i32,
   pub post_id: i32,
+  pub post_name: String,
   pub parent_id: Option<i32>,
   pub content: String,
   pub removed: bool,
index 8bfbf453dea8603c2d4d9f8b2023706e2c750c01..359f166d67acee569563e70b8036c8cb0a95bffd 100644 (file)
@@ -11,6 +11,7 @@ table! {
     creator_actor_id -> Text,
     creator_local -> Bool,
     post_id -> Int4,
+    post_name -> Varchar,
     parent_id -> Nullable<Int4>,
     content -> Text,
     removed -> Bool,
@@ -47,6 +48,7 @@ table! {
     creator_actor_id -> Text,
     creator_local -> Bool,
     post_id -> Int4,
+    post_name -> Varchar,
     parent_id -> Nullable<Int4>,
     content -> Text,
     removed -> Bool,
@@ -86,6 +88,7 @@ pub struct UserMentionView {
   pub creator_actor_id: String,
   pub creator_local: bool,
   pub post_id: i32,
+  pub post_name: String,
   pub parent_id: Option<i32>,
   pub content: String,
   pub removed: bool,
index 2bf1fb471d73d722d8e9baeaa7a528b47918b5e9..8e148921fe1b1f41070fcfeb3c3f33ae5f32de4b 100644 (file)
@@ -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}
           />