minor bugfixes

This commit is contained in:
2025-08-09 16:51:37 +02:00
parent 0db5937c39
commit eb018a69f3
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -264,10 +264,10 @@ pub fn make_removed_embed(post_data: &Value, url: &str, ephemeral: bool) -> Embe
let desc = lang!(
"dc_msg_embed_re_removed",
post_data["removed"]["by"].as_str().unwrap(),
if !post_data["removed"]["reason"].is_null() { post_data["removed"]["reason"].as_str().unwrap() }
if !post_data["removed"]["by"].is_null() { post_data["removed"]["by"].as_str().unwrap() }
else { &none },
url
if !post_data["removed"]["reason"].is_null() { post_data["removed"]["reason"].as_str().unwrap() }
else { &none }
);
let json_encoded = trim_compress_and_encode_json(post_data);