]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/community.rs
add new flag to api (#3363)
[lemmy.git] / crates / api_common / src / community.rs
index cb92d4c2e2afd11db552e4f1b05fb0f66529a703..ff6ed1271a54963793e622e52776e95d9272a2b9 100644 (file)
@@ -76,6 +76,7 @@ pub struct CommunityResponse {
 pub struct ListCommunities {
   pub type_: Option<ListingType>,
   pub sort: Option<SortType>,
+  pub show_nsfw: Option<bool>,
   pub page: Option<i64>,
   pub limit: Option<i64>,
   pub auth: Option<Sensitive<String>>,