AAAAAAAAAAAAA

We should be setting message_id not message.
This commit is contained in:
Paul
2021-04-24 18:01:08 +01:00
parent f7bcd3ad93
commit f163cb65de
4 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@@ -2475,7 +2475,7 @@ dependencies = [
[[package]] [[package]]
name = "revolt" name = "revolt"
version = "0.4.1-alpha.0" version = "0.4.1-alpha.1"
dependencies = [ dependencies = [
"async-std", "async-std",
"async-tungstenite", "async-tungstenite",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "revolt" name = "revolt"
version = "0.4.1-alpha.0" version = "0.4.1-alpha.1"
authors = ["Paul Makles <paulmakles@gmail.com>"] authors = ["Paul Makles <paulmakles@gmail.com>"]
edition = "2018" edition = "2018"

View File

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

View File

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