Skip to content

Commit 19cdc62

Browse files
authored
Remove fallback to long description on sidebar and meta description (#12119)
Fix #12114
1 parent 4a98e77 commit 19cdc62

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

app/views/about/show.html.haml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@
5252
.hero-widget__img
5353
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
5454

55-
- if @instance_presenter.site_short_description.present?
56-
.hero-widget__text
57-
%p
58-
= @instance_presenter.site_short_description.html_safe.presence
59-
= link_to about_more_path do
60-
= t('about.learn_more')
61-
= fa_icon 'angle-double-right'
55+
.hero-widget__text
56+
%p
57+
= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')
58+
= link_to about_more_path do
59+
= t('about.learn_more')
60+
= fa_icon 'angle-double-right'
6261

6362
.hero-widget__footer
6463
.hero-widget__footer__column

app/views/application/_sidebar.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
44

55
.hero-widget__text
6-
%p= @instance_presenter.site_short_description.html_safe.presence || @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
6+
%p= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')
77

88
- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
99
- trends = TrendingTags.get(3)

app/views/shared/_og.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- thumbnail = @instance_presenter.thumbnail
2-
- description ||= strip_tags(@instance_presenter.site_short_description.presence || @instance_presenter.site_description.presence || t('about.about_mastodon_html'))
2+
- description ||= strip_tags(@instance_presenter.site_short_description.presence || t('about.about_mastodon_html'))
33

44
%meta{ name: 'description', content: description }/
55

config/locales/en.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
en:
33
about:
44
about_hashtag_html: These are public toots tagged with <strong>#%{hashtag}</strong>. You can interact with them if you have an account anywhere in the fediverse.
5-
about_mastodon_html: Mastodon is a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.
5+
about_mastodon_html: 'The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!'
66
about_this: About
77
active_count_after: active
88
active_footnote: Monthly Active Users (MAU)
@@ -18,7 +18,6 @@ en:
1818
discover_users: Discover users
1919
documentation: Documentation
2020
federation_hint_html: With an account on %{instance} you'll be able to follow people on any Mastodon server and beyond.
21-
generic_description: "%{domain} is one server in the network"
2221
get_apps: Try a mobile app
2322
hosted_on: Mastodon hosted on %{domain}
2423
instance_actor_flash: |

0 commit comments

Comments
 (0)