forked from jmug/stoatchat
Migrate to Autumn 1.0.0
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user