add: upload alt text
This commit is contained in:
parent
3b5b0ce1a1
commit
e0e38b2b32
13 changed files with 224 additions and 59 deletions
|
@ -152,10 +152,11 @@ pub async fn create_request(
|
|||
}
|
||||
|
||||
// ...
|
||||
match data.create_post(props.clone()).await {
|
||||
let uploads = props.uploads.clone();
|
||||
match data.create_post(props).await {
|
||||
Ok(id) => {
|
||||
// write to uploads
|
||||
for (i, upload_id) in props.uploads.iter().enumerate() {
|
||||
for (i, upload_id) in uploads.iter().enumerate() {
|
||||
let image = match images.get(i) {
|
||||
Some(img) => img,
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue