From fdea47bfcb95f0737b5c3028b11f87f2a65843de Mon Sep 17 00:00:00 2001 From: diondiondion Date: Mon, 15 Jun 2026 16:20:53 +0200 Subject: [PATCH] [Accessibility] Return alt text for default server thumbnail (#39439) --- app/serializers/rest/instance_serializer.rb | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb index 1c6252d27a5..05d8d83c0d7 100644 --- a/app/serializers/rest/instance_serializer.rb +++ b/app/serializers/rest/instance_serializer.rb @@ -31,6 +31,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer else { url: frontend_asset_url('images/preview.png'), + description: I18n.t('about.default_thumbnail_description', locale: object.languages[0]), } end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 03c281c3d13..6309e1a22bd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4,6 +4,7 @@ en: about_mastodon_html: 'The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!' contact_missing: Not set contact_unavailable: N/A + default_thumbnail_description: Two smiling cartoon mastodons (who look like elephants) toss a paper plane between them. They're surrounded by a bright blue sky and floating planets with trees and more mastodons on them. hosted_on: Mastodon hosted on %{domain} title: About accounts: