fix(web): actually media store alt text in name...
All checks were successful
/ build (push) Successful in 11m42s
All checks were successful
/ build (push) Successful in 11m42s
???????? whatever
This commit is contained in:
parent
89852c0870
commit
3210a3a2d5
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
use apb::{Document, Endpoints, Node, Object, PublicKey, Shortcuts};
|
||||
use apb::{Endpoints, Node, Object, PublicKey, Shortcuts};
|
||||
use sea_orm::{sea_query::Expr, ActiveModelTrait, ActiveValue::{Unchanged, NotSet, Set}, ColumnTrait, ConnectionTrait, DbErr, EntityTrait, IntoActiveModel, QueryFilter};
|
||||
|
||||
use super::{Cloaker, Fetcher};
|
||||
|
|
|
@ -263,7 +263,7 @@ pub fn PostBox(advanced: WriteSignal<bool>) -> impl IntoView {
|
|||
<tr>
|
||||
<td><input type="button" title="remove attachment" on:click=move |_| set_attachments.set(attachments.get().into_iter().filter(|a| a.id != x.id).collect()) value="x" /></td>
|
||||
<td><input type="text" class="w-100" node_ref=x.media_type_ref title="media type" placeholder="media type" /></td>
|
||||
<td><input type="text" class="w-100" node_ref=x.summary_ref title="title" placeholder="summary" /></td>
|
||||
<td><input type="text" class="w-100" node_ref=x.summary_ref title="name (media description)" placeholder="name" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ pub fn PostBox(advanced: WriteSignal<bool>) -> impl IntoView {
|
|||
apb::new()
|
||||
.set_url(apb::Node::link(url))
|
||||
.set_media_type(Some(ty))
|
||||
.set_summary(summary)
|
||||
.set_name(summary)
|
||||
.set_document_type(Some(document_type))
|
||||
})
|
||||
.collect()
|
||||
|
|
Loading…
Add table
Reference in a new issue