Skip to content
Snippets Groups Projects
Commit f163cb65 authored by insert's avatar insert
Browse files

AAAAAAAAAAAAA

We should be setting message_id not message.
parent f7bcd3ad
Branches
Tags
No related merge requests found
Pipeline #949 passed with stage
in 9 minutes and 53 seconds
...@@ -2475,7 +2475,7 @@ dependencies = [ ...@@ -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",
......
[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"
......
...@@ -68,7 +68,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal ...@@ -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 ...@@ -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,
......
...@@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue; ...@@ -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": {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment