Add alt tags to image attachments
This commit is contained in:
parent
ef6ac8c042
commit
b5a249b756
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ markup::define! {
|
|||
Attachment<'a>(attachment: &'a pleroma::activity::Attachment) {
|
||||
@match attachment.media_type.as_str() {
|
||||
"image/gif" |"image/jpeg" | "image/png" => {
|
||||
img[src=&attachment.url, loading="lazy"];
|
||||
img[src=&attachment.url, alt=&attachment.name, loading="lazy"];
|
||||
}
|
||||
_ => {
|
||||
a[href=&attachment.url] { @attachment.media_type " attachment" }
|
||||
|
|
Loading…
Reference in a new issue