forked from jmug/stoatchat
feat: allow servers to set discoverable value
This commit is contained in:
@@ -33,6 +33,8 @@ pub struct DataEditServer {
|
|||||||
|
|
||||||
// Whether this server is age-restricted
|
// Whether this server is age-restricted
|
||||||
// nsfw: Option<bool>,
|
// nsfw: Option<bool>,
|
||||||
|
/// Whether this server is public and should show up on [Revolt Discover](https://rvlt.gg)
|
||||||
|
discoverable: Option<bool>,
|
||||||
/// Whether analytics should be collected for this server
|
/// Whether analytics should be collected for this server
|
||||||
///
|
///
|
||||||
/// Must be enabled in order to show up on [Revolt Discover](https://rvlt.gg).
|
/// Must be enabled in order to show up on [Revolt Discover](https://rvlt.gg).
|
||||||
@@ -102,6 +104,7 @@ pub async fn req(
|
|||||||
categories,
|
categories,
|
||||||
system_messages,
|
system_messages,
|
||||||
// nsfw,
|
// nsfw,
|
||||||
|
discoverable,
|
||||||
analytics,
|
analytics,
|
||||||
remove,
|
remove,
|
||||||
} = data;
|
} = data;
|
||||||
@@ -112,6 +115,7 @@ pub async fn req(
|
|||||||
categories,
|
categories,
|
||||||
system_messages,
|
system_messages,
|
||||||
// nsfw,
|
// nsfw,
|
||||||
|
discoverable,
|
||||||
analytics,
|
analytics,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user