From 80f9422ef25df8c9fb101471d726a1d495a7c4c8 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 1c6252d27a..05d8d83c0d 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 03c281c3d1..6309e1a22b 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: