Use real array instead of text array to save tags
This commit is contained in:
parent
cf1687e8ba
commit
455d6e88ed
1 changed files with 6 additions and 1 deletions
|
@ -27,9 +27,14 @@ pub fn build_header(url: &String, tags: &Vec<String>) -> FHD {
|
|||
},
|
||||
FHD::Key {
|
||||
name: String::from("TAGS"),
|
||||
value: Box::new(FHD::Text(tags.connect(",")))
|
||||
value: Box::new(build_tag_array(tags))
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
fn build_tag_array(tags: &Vec<String>) -> FHD {
|
||||
let texttags = tags.into_iter().map(|t| FHD::Text(t.clone())).collect();
|
||||
FHD::Array { values: Box::new(texttags) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue