Migrate to Autumn 1.0.0

This commit is contained in:
Paul
2021-04-24 16:00:13 +01:00
parent 9e2250783c
commit f7bcd3ad93
7 changed files with 45 additions and 7 deletions

View File

@@ -67,7 +67,8 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
.find_one(
doc! {
"_id": attachment_id,
"message_id": {
"tag": "attachments",
"message": {
"$exists": false
}
},
@@ -91,7 +92,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
},
doc! {
"$set": {
"message_id": &id
"message": &id
}
},
None,

View File

@@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue;
#[get("/")]
pub async fn root() -> JsonValue {
json!({
"revolt": "0.4.0-alpha.6",
"revolt": "0.4.1-alpha.0",
"features": {
"registration": !*DISABLE_REGISTRATION,
"captcha": {