Servers: Add description field.

API: Allow removal of description on channels and servers.
This commit is contained in:
Paul
2021-06-06 10:55:31 +01:00
parent 380369e1c4
commit 0af4fa4be9
5 changed files with 19 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ pub async fn req(user: User, target: Ref, data: Json<Data>) -> Result<()> {
unset.insert("icon", 1);
remove_icon = true;
}
RemoveChannelField::Description => {
unset.insert("description", 1);
}
}
}