mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
AAAAAAAAAAAAA
We should be setting message_id not message.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2475,7 +2475,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "revolt"
|
||||
version = "0.4.1-alpha.0"
|
||||
version = "0.4.1-alpha.1"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"async-tungstenite",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "revolt"
|
||||
version = "0.4.1-alpha.0"
|
||||
version = "0.4.1-alpha.1"
|
||||
authors = ["Paul Makles <paulmakles@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
|
||||
doc! {
|
||||
"_id": attachment_id,
|
||||
"tag": "attachments",
|
||||
"message": {
|
||||
"message_id": {
|
||||
"$exists": false
|
||||
}
|
||||
},
|
||||
@@ -92,7 +92,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
|
||||
},
|
||||
doc! {
|
||||
"$set": {
|
||||
"message": &id
|
||||
"message_id": &id
|
||||
}
|
||||
},
|
||||
None,
|
||||
|
||||
@@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue;
|
||||
#[get("/")]
|
||||
pub async fn root() -> JsonValue {
|
||||
json!({
|
||||
"revolt": "0.4.1-alpha.0",
|
||||
"revolt": "0.4.1-alpha.1",
|
||||
"features": {
|
||||
"registration": !*DISABLE_REGISTRATION,
|
||||
"captcha": {
|
||||
|
||||
Reference in New Issue
Block a user