fix: contrast checks
This commit is contained in:
parent
276f25a496
commit
9a2852f7ba
4 changed files with 11 additions and 7 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -648,9 +648,9 @@ checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "contrasted"
|
name = "contrasted"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "40d36a6fb07044a3371abc364027b9489d770a840d72a04323389cfe32a41360"
|
checksum = "a3b6cc9d477fe7331eca62e0b39b559a2cda428d9cf2292b5ad99fc9d950fca1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cookie"
|
name = "cookie"
|
||||||
|
@ -2538,9 +2538,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
version = "0.29.5"
|
version = "0.30.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1bc42f3a12fd4408ce64d8efef67048a924e543bd35c6591c0447fda9054695f"
|
checksum = "438a4e5f8e9aa246d6f3666d6978441bf1b37d5f417b50c4dd220be09f5fcc17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
"combine",
|
"combine",
|
||||||
|
|
|
@ -32,4 +32,4 @@ regex = "1.11.1"
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.140"
|
||||||
mime_guess = "2.0.5"
|
mime_guess = "2.0.5"
|
||||||
cf-turnstile = "0.2.0"
|
cf-turnstile = "0.2.0"
|
||||||
contrasted = "0.1.0"
|
contrasted = "0.1.1"
|
||||||
|
|
|
@ -18,7 +18,7 @@ tetratto-l10n = { path = "../l10n" }
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.140"
|
||||||
totp-rs = { version = "5.7.0", features = ["qr", "gen_secret"] }
|
totp-rs = { version = "5.7.0", features = ["qr", "gen_secret"] }
|
||||||
|
|
||||||
redis = { version = "0.29.5", optional = true }
|
redis = { version = "0.30.0", optional = true }
|
||||||
|
|
||||||
rusqlite = { version = "0.35.0", optional = true }
|
rusqlite = { version = "0.35.0", optional = true }
|
||||||
|
|
||||||
|
|
|
@ -794,7 +794,11 @@ impl DataManager {
|
||||||
data.id,
|
data.id,
|
||||||
rt.id
|
rt.id
|
||||||
),
|
),
|
||||||
format!("\"{}\"", data.content),
|
if data.content.is_empty() {
|
||||||
|
String::new()
|
||||||
|
} else {
|
||||||
|
format!("\"{}\"", data.content)
|
||||||
|
},
|
||||||
rt.owner
|
rt.owner
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue