summaryrefslogtreecommitdiffstats
path: root/src/resp_types.rs
diff options
context:
space:
mode:
authorColin Reeder <vpzomtrrfrt@gmail.com>2020-10-23 20:40:53 -0600
committerColin Reeder <vpzomtrrfrt@gmail.com>2020-10-23 20:40:53 -0600
commit8c98e0d745412d488f9ae7d060c7248b55edf29c (patch)
treec9cb69f452f4ae1cf75e2216807b224c9288dd4e /src/resp_types.rs
parent2d73518bc8b89b1e5f2cd638a9a3e2fd13785f92 (diff)
Show delete link for local content for site admins
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r--src/resp_types.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs
index d10dfc7..63bfcc2 100644
--- a/src/resp_types.rs
+++ b/src/resp_types.rs
@@ -82,6 +82,7 @@ pub struct RespPostCommentInfo<'a> {
#[serde(borrow)]
pub author: Option<RespMinimalAuthorInfo<'a>>,
pub created: Cow<'a, str>,
+ pub local: bool,
pub your_vote: Option<Empty>,
#[serde(borrow)]
pub replies: Option<Vec<RespPostCommentInfo<'a>>>,
@@ -119,6 +120,7 @@ pub struct RespPostInfo<'a> {
pub content_html: Option<Cow<'a, str>>,
pub approved: bool,
pub score: i64,
+ pub local: bool,
#[serde(borrow)]
pub replies: Vec<RespPostCommentInfo<'a>>,
pub your_vote: Option<Empty>,
@@ -156,6 +158,7 @@ impl<'a> AsRef<RespMinimalAuthorInfo<'a>> for RespUserInfo<'a> {
#[derive(Deserialize, Debug)]
pub struct RespLoginInfoUser {
pub id: i64,
+ pub is_site_admin: bool,
pub has_unread_notifications: bool,
}