diff --git a/src/main.rs b/src/main.rs index 317c598..952e278 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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" }