From be250ae368a01bf47082dda24896bec27f6edb3e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:04:22 +0200 Subject: [PATCH 1/7] New Crowdin Translations (automated) (#39566) Co-authored-by: GitHub Actions --- app/javascript/mastodon/locales/eo.json | 1 + app/javascript/mastodon/locales/et.json | 3 +++ config/locales/devise.zh-CN.yml | 4 ++-- config/locales/et.yml | 3 +++ config/locales/gl.yml | 2 +- config/locales/zh-CN.yml | 2 +- 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/locales/eo.json b/app/javascript/mastodon/locales/eo.json index 4bac092362..0756589e51 100644 --- a/app/javascript/mastodon/locales/eo.json +++ b/app/javascript/mastodon/locales/eo.json @@ -33,6 +33,7 @@ "account.familiar_followers_two": "Sekvita de {name1} kaj {name2}", "account.featured": "Elstarigitaj", "account.featured.accounts": "Profiloj", + "account.featured.collections": "Kolektoj", "account.follow": "Sekvi", "account.follow_back": "Sekvu reen", "account.follow_back_short": "Sekvu reen", diff --git a/app/javascript/mastodon/locales/et.json b/app/javascript/mastodon/locales/et.json index 97b10e48e5..7cb111f5f9 100644 --- a/app/javascript/mastodon/locales/et.json +++ b/app/javascript/mastodon/locales/et.json @@ -1138,6 +1138,9 @@ "report.categories.spam": "Rämpspost", "report.categories.violation": "Sisu, mis rikub ühte või enamat serveri reeglit", "report.category.subtitle": "Vali parim vaste", + "report.category.title_account": "Selgita, mis on selle profiiliga valesti", + "report.category.title_collection": "Selgita, mis on selle kogumikuga valesti", + "report.category.title_status": "Selgita, mis on selle postitusega valesti", "report.close": "Valmis", "report.comment.title": "Kas arvad, et on veel midagi, mida me peaks teadma?", "report.forward": "Edasta ka {target} domeeni", diff --git a/config/locales/devise.zh-CN.yml b/config/locales/devise.zh-CN.yml index 284dbd9fb0..83e2a7d684 100644 --- a/config/locales/devise.zh-CN.yml +++ b/config/locales/devise.zh-CN.yml @@ -9,10 +9,10 @@ zh-CN: already_authenticated: 你已登录。 closed_registrations: 你的注册因为网络政策已被阻止。若你认为这是错误,请联系 %{email}。 inactive: 你还没有激活账号。 - invalid: "%{authentication_keys} 无效或密码错误。" + invalid: "%{authentication_keys}无效或密码错误。" last_attempt: 你只有最后一次尝试机会,若未通过,账号将被锁定。 locked: 你的账号已被锁定。 - not_found_in_database: "%{authentication_keys}或密码错误。" + not_found_in_database: "%{authentication_keys}无效或密码错误。" omniauth_user_creation_failure: 为此身份创建账号时出错。 pending: 你的账号仍在审核中。 timeout: 你的会话已过期。请重新登录再继续操作。 diff --git a/config/locales/et.yml b/config/locales/et.yml index cdd55f881b..7828cafc1c 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -514,6 +514,7 @@ et: hint: Mitte keegi pole seda kontot veel tellinud. no_subscribers_yet: Tellijaid veel pole enable_feature: Lülita funktsionaalsus sisse + view_account: Vaata kasutajakontot status: Olek subscribers: Tellijad title: Meililistid @@ -723,6 +724,8 @@ et: new: title: Uue IP-reegli lisamine no_ip_block_selected: Ühtegi IP-reeglit ei muudetud, kuna midagi polnud valitud + reset: Lähtesta + search: Otsi title: IP-reeglid relationships: title: "%{acct}-i suhted" diff --git a/config/locales/gl.yml b/config/locales/gl.yml index 3f1e75cc60..5ab71c36a8 100644 --- a/config/locales/gl.yml +++ b/config/locales/gl.yml @@ -1886,7 +1886,7 @@ gl: mention: action: Responder body: "%{name} mencionoute en:" - subject: Foches mencionada por %{name} + subject: "%{name} mencionoute" title: Nova mención moderation_warning: subject: Recibiches unha advertencia da moderación diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index 0788934b36..41ee60a7ba 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -542,7 +542,7 @@ zh-CN: index: disabled: cannot_be_enabled: 你的技术提供商尚未为你的服务器启用此功能。 - description: 此功能允许指定账号在个人资料页添加微件小工具,使没有 Mastodon 账号的访客也能通过电子邮件接受此账号的嘟文。 + description: 此功能允许指定账号在个人资料页添加小组件,使没有 Mastodon 账号的访客也能通过电子邮件接受此账号的嘟文。 get_started: 开始使用 lead: 允许访客通过电子邮件接收此服务器上指定账号的内容。 title: 邮件电子报 From d8b26688376b9f533597dd5f77169257f6873e42 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Tue, 23 Jun 2026 11:39:31 +0200 Subject: [PATCH 2/7] Change featured tag recommendations (#39567) --- app/models/tag.rb | 5 +++-- spec/requests/api/v1/featured_tags/suggestions_spec.rb | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/models/tag.rb b/app/models/tag.rb index a5fbf2f683..bc0ccdfb58 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -46,6 +46,7 @@ class Tag < ApplicationRecord HASHTAG_INVALID_CHARS_RE = /[^[:alnum:]\u0E47-\u0E4E#{HASHTAG_SEPARATORS}]/ RECENT_STATUS_LIMIT = 1000 + RECENT_STATUS_MAX_AGE = 1.year validates :name, presence: true, format: { with: HASHTAG_NAME_RE } validates :display_name, format: { with: HASHTAG_NAME_RE } @@ -58,11 +59,11 @@ class Tag < ApplicationRecord scope :listable, -> { where(listable: [true, nil]) } scope :trendable, -> { Setting.trendable_by_default ? where(trendable: [true, nil]) : where(trendable: true) } scope :not_trendable, -> { where(trendable: false) } - scope :suggestions_for_account, ->(account) { recently_used(account).not_featured_by(account) } + scope :suggestions_for_account, ->(account) { recently_used(account).having('count(statuses.id) > 1').not_featured_by(account) } scope :not_featured_by, ->(account) { where.not(id: account.featured_tags.select(:tag_id)) } scope :recently_used, lambda { |account| joins(:statuses) - .where(statuses: { id: account.statuses.select(:id).limit(RECENT_STATUS_LIMIT) }) + .where(statuses: { id: account.statuses.select(:id).where(id: (Mastodon::Snowflake.id_at(RECENT_STATUS_MAX_AGE.ago)..)).limit(RECENT_STATUS_LIMIT) }) .group(:id).order(Arel.star.count.desc) } scope :matches_name, ->(term) { where(arel_table[:name].lower.matches(arel_table.lower("#{sanitize_sql_like(normalize_value_for(:name, term))}%"), nil, true)) } # Search with case-sensitive to use B-tree index diff --git a/spec/requests/api/v1/featured_tags/suggestions_spec.rb b/spec/requests/api/v1/featured_tags/suggestions_spec.rb index 5fbbec5097..8f2b64cb4a 100644 --- a/spec/requests/api/v1/featured_tags/suggestions_spec.rb +++ b/spec/requests/api/v1/featured_tags/suggestions_spec.rb @@ -12,6 +12,7 @@ RSpec.describe 'Featured Tags Suggestions API' do describe 'GET /api/v1/featured_tags/suggestions' do let!(:unused_featured_tag) { Fabricate(:tag, name: 'unused_featured_tag') } let!(:used_tag) { Fabricate(:tag, name: 'used_tag') } + let!(:used_tag_once) { Fabricate(:tag, name: 'used_tag_once') } let!(:used_featured_tag) { Fabricate(:tag, name: 'used_featured_tag') } before do @@ -20,8 +21,13 @@ RSpec.describe 'Featured Tags Suggestions API' do # Make relevant tags used by account status = Fabricate(:status, account: account) status.tags << used_tag + status.tags << used_tag_once status.tags << used_featured_tag + status2 = Fabricate(:status, account: account) + status2.tags << used_tag + status2.tags << used_featured_tag + # Feature the relevant tags Fabricate :featured_tag, account: account, name: unused_featured_tag.name Fabricate :featured_tag, account: account, name: used_featured_tag.name From 27a253beaca4cef30784665e786fa7da4dc00415 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 23 Jun 2026 11:39:52 +0200 Subject: [PATCH 3/7] Fix simplified layout applying to other pages in web UI (#39570) --- app/javascript/mastodon/features/ui/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/index.jsx b/app/javascript/mastodon/features/ui/index.jsx index 06692d54ee..0930fc64d7 100644 --- a/app/javascript/mastodon/features/ui/index.jsx +++ b/app/javascript/mastodon/features/ui/index.jsx @@ -185,7 +185,7 @@ class SwitchingColumnsArea extends PureComponent { return ( - + From 761c61b42590a2fd91442fc15a0a7583e48bbea4 Mon Sep 17 00:00:00 2001 From: David Roetzel Date: Tue, 23 Jun 2026 11:49:40 +0200 Subject: [PATCH 4/7] LDAP: Fix attempted modification of frozen hash (#39571) --- .../concerns/user/ldap_authenticable.rb | 2 +- .../concerns/user/ldap_authenticable_spec.rb | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 spec/models/concerns/user/ldap_authenticable_spec.rb diff --git a/app/models/concerns/user/ldap_authenticable.rb b/app/models/concerns/user/ldap_authenticable.rb index fc1ee78d09..4d8379de1d 100644 --- a/app/models/concerns/user/ldap_authenticable.rb +++ b/app/models/concerns/user/ldap_authenticable.rb @@ -58,7 +58,7 @@ module User::LdapAuthenticable if [:simple_tls, :start_tls].include?(Devise.ldap_method) opts[:encryption] = { method: Devise.ldap_method, - tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.tap { |options| options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE if Devise.ldap_tls_no_verify }, + tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.dup.tap { |options| options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE if Devise.ldap_tls_no_verify }, } end diff --git a/spec/models/concerns/user/ldap_authenticable_spec.rb b/spec/models/concerns/user/ldap_authenticable_spec.rb new file mode 100644 index 0000000000..18cdf77e58 --- /dev/null +++ b/spec/models/concerns/user/ldap_authenticable_spec.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe User::LdapAuthenticable do + describe '::ldap_options' do + subject { User.ldap_options } + + it 'returns a hash' do + expect(subject).to be_a Hash + end + + context 'when `Devise.ldap_method` is `simple_tls`' do + before do + Devise.ldap_method = :simple_tls + end + + after do + Devise.ldap_method = nil + end + + it 'includes `encryption` key' do + expect(subject).to have_key :encryption + end + + context 'when `Devise.ldap_tls_no_verify` is set to `true`' do + before do + Devise.ldap_tls_no_verify = true + end + + after do + Devise.ldap_tls_no_verify = false + end + + it 'sets `verify_mode` correctly' do + expect(subject[:encryption][:tls_options][:verify_mode]).to eq OpenSSL::SSL::VERIFY_NONE + end + end + end + end +end From 0c8fef8e84c69c4dc2f91dcec11cee5f731ef2b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 23 Jun 2026 16:36:58 +0200 Subject: [PATCH 5/7] Accept `avatar_description` and `header_description` in `/api/v1/accounts/update_credentials` (#39547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- app/controllers/api/v1/accounts/credentials_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/v1/accounts/credentials_controller.rb b/app/controllers/api/v1/accounts/credentials_controller.rb index 2c46afff60..8b2c8da2b3 100644 --- a/app/controllers/api/v1/accounts/credentials_controller.rb +++ b/app/controllers/api/v1/accounts/credentials_controller.rb @@ -27,7 +27,9 @@ class Api::V1::Accounts::CredentialsController < Api::BaseController :display_name, :note, :avatar, + :avatar_description, :header, + :header_description, :locked, :bot, :discoverable, From 34bbb474822391445c8681ef898991e0c6e32e38 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 23 Jun 2026 16:53:36 +0200 Subject: [PATCH 6/7] Bump Mastodon API version (#39574) --- lib/mastodon/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 0a3f72553b..5567973729 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -45,7 +45,7 @@ module Mastodon def api_versions { - mastodon: 10, + mastodon: 11, } end From bf03a4aa74d1d2c661718b0593a7b570cb4d07b7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 23 Jun 2026 11:39:52 +0200 Subject: [PATCH 7/7] [Glitch] Fix simplified layout applying to other pages in web UI Port 27a253beaca4cef30784665e786fa7da4dc00415 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/features/ui/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/ui/index.jsx b/app/javascript/flavours/glitch/features/ui/index.jsx index 36ee0f5fae..aa84f03806 100644 --- a/app/javascript/flavours/glitch/features/ui/index.jsx +++ b/app/javascript/flavours/glitch/features/ui/index.jsx @@ -193,7 +193,7 @@ class SwitchingColumnsArea extends PureComponent { return ( - +