feat: feature labels

This commit is contained in:
2024-05-29 15:23:14 +01:00
parent 243b334948
commit 19e995ac16
8 changed files with 100 additions and 32 deletions

View File

@ -130,6 +130,7 @@ impl Nip96UploadResult {
if let (Some(w), Some(h)) = (upload.width, upload.height) {
tags.push(vec!["dim".to_string(), format!("{}x{}", w, h)])
}
#[cfg(feature = "labels")]
for l in &upload.labels {
let val = if l.label.contains(',') {
let split_val: Vec<&str> = l.label.split(',').collect();