Skip to content

Commit

Permalink
fix(a11y): use Image as alt when there isn't a description
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Dec 30, 2022
1 parent 4da2fd0 commit 943a0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/status/StatusAttachment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ useIntersectionObserver(video, (entries) => {
:srcset="srcset"
:width="attachment.meta?.original?.width"
:height="attachment.meta?.original?.height"
:alt="attachment.description!"
:alt="attachment.description ?? 'Image'"
:style="{
aspectRatio,
objectPosition,
Expand Down

0 comments on commit 943a0b6

Please sign in to comment.