Add post title to user comments inbox view, comment_view, user_mention_view
This commit is contained in:
parent
82dcaa4545
commit
e06d9a620c
3 changed files with 8 additions and 0 deletions
|
@ -301,6 +301,7 @@ table! {
|
||||||
id -> Int4,
|
id -> Int4,
|
||||||
creator_id -> Int4,
|
creator_id -> Int4,
|
||||||
post_id -> Int4,
|
post_id -> Int4,
|
||||||
|
post_name -> Varchar,
|
||||||
parent_id -> Nullable<Int4>,
|
parent_id -> Nullable<Int4>,
|
||||||
content -> Text,
|
content -> Text,
|
||||||
removed -> Bool,
|
removed -> Bool,
|
||||||
|
@ -341,6 +342,7 @@ pub struct ReplyView {
|
||||||
pub id: i32,
|
pub id: i32,
|
||||||
pub creator_id: i32,
|
pub creator_id: i32,
|
||||||
pub post_id: i32,
|
pub post_id: i32,
|
||||||
|
pub post_name: String,
|
||||||
pub parent_id: Option<i32>,
|
pub parent_id: Option<i32>,
|
||||||
pub content: String,
|
pub content: String,
|
||||||
pub removed: bool,
|
pub removed: bool,
|
||||||
|
|
|
@ -11,6 +11,7 @@ table! {
|
||||||
creator_actor_id -> Text,
|
creator_actor_id -> Text,
|
||||||
creator_local -> Bool,
|
creator_local -> Bool,
|
||||||
post_id -> Int4,
|
post_id -> Int4,
|
||||||
|
post_name -> Varchar,
|
||||||
parent_id -> Nullable<Int4>,
|
parent_id -> Nullable<Int4>,
|
||||||
content -> Text,
|
content -> Text,
|
||||||
removed -> Bool,
|
removed -> Bool,
|
||||||
|
@ -47,6 +48,7 @@ table! {
|
||||||
creator_actor_id -> Text,
|
creator_actor_id -> Text,
|
||||||
creator_local -> Bool,
|
creator_local -> Bool,
|
||||||
post_id -> Int4,
|
post_id -> Int4,
|
||||||
|
post_name -> Varchar,
|
||||||
parent_id -> Nullable<Int4>,
|
parent_id -> Nullable<Int4>,
|
||||||
content -> Text,
|
content -> Text,
|
||||||
removed -> Bool,
|
removed -> Bool,
|
||||||
|
@ -86,6 +88,7 @@ pub struct UserMentionView {
|
||||||
pub creator_actor_id: String,
|
pub creator_actor_id: String,
|
||||||
pub creator_local: bool,
|
pub creator_local: bool,
|
||||||
pub post_id: i32,
|
pub post_id: i32,
|
||||||
|
pub post_name: String,
|
||||||
pub parent_id: Option<i32>,
|
pub parent_id: Option<i32>,
|
||||||
pub content: String,
|
pub content: String,
|
||||||
pub removed: bool,
|
pub removed: bool,
|
||||||
|
|
3
ui/src/components/inbox.tsx
vendored
3
ui/src/components/inbox.tsx
vendored
|
@ -267,6 +267,7 @@ export class Inbox extends Component<any, InboxState> {
|
||||||
nodes={[{ comment: i }]}
|
nodes={[{ comment: i }]}
|
||||||
noIndent
|
noIndent
|
||||||
markable
|
markable
|
||||||
|
showCommunity
|
||||||
showContext
|
showContext
|
||||||
enableDownvotes={this.state.enableDownvotes}
|
enableDownvotes={this.state.enableDownvotes}
|
||||||
/>
|
/>
|
||||||
|
@ -285,6 +286,7 @@ export class Inbox extends Component<any, InboxState> {
|
||||||
nodes={commentsToFlatNodes(this.state.replies)}
|
nodes={commentsToFlatNodes(this.state.replies)}
|
||||||
noIndent
|
noIndent
|
||||||
markable
|
markable
|
||||||
|
showCommunity
|
||||||
showContext
|
showContext
|
||||||
enableDownvotes={this.state.enableDownvotes}
|
enableDownvotes={this.state.enableDownvotes}
|
||||||
/>
|
/>
|
||||||
|
@ -300,6 +302,7 @@ export class Inbox extends Component<any, InboxState> {
|
||||||
nodes={[{ comment: mention }]}
|
nodes={[{ comment: mention }]}
|
||||||
noIndent
|
noIndent
|
||||||
markable
|
markable
|
||||||
|
showCommunity
|
||||||
showContext
|
showContext
|
||||||
enableDownvotes={this.state.enableDownvotes}
|
enableDownvotes={this.state.enableDownvotes}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue