catch model up to multi-author lines
now the only thing missing is the quote adding UI support - multiauthor lines can already be added via API
This commit is contained in:
@@ -153,7 +153,12 @@ pub async fn form(
|
||||
for nid in form.authors {
|
||||
authors.push(Name::get_by_id(&mut *tx, nid).await.unwrap());
|
||||
}
|
||||
let lines = form.lines.into_iter().zip(authors).collect();
|
||||
let lines = form
|
||||
.lines
|
||||
.into_iter()
|
||||
.zip(authors)
|
||||
.map(|(l, a)| (l, vec![a]))
|
||||
.collect();
|
||||
|
||||
let timestamp = match NaiveDateTime::parse_from_str(&form.time, "%Y-%m-%dT%H:%M") {
|
||||
Ok(ts) => ts,
|
||||
|
||||
Reference in New Issue
Block a user