Merge pull request #3003 from ClearlyClaire/glitch-soc/merge-upstream

Merge upstream changes up to f7b1769e8a69e2831493f3a704d68efa5cf9beff
This commit is contained in:
Claire 2025-03-19 20:31:36 +01:00 committed by GitHub
commit 62c27ef69b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 50 additions and 50 deletions

View File

@ -36,7 +36,7 @@
"account.followers.empty": "Ancora nessuno segue questo utente.",
"account.followers_counter": "{count, plural, one {{counter} seguace} other {{counter} seguaci}}",
"account.following": "Seguiti",
"account.following_counter": "{count, plural, one {{counter} segui} other {{counter} segui}}",
"account.following_counter": "{count, plural, one {{counter} segui} other {{counter} seguiti}}",
"account.follows.empty": "Questo utente non segue ancora nessuno.",
"account.go_to_profile": "Vai al profilo",
"account.hide_reblogs": "Nascondi condivisioni da @{name}",

View File

@ -4,7 +4,7 @@ class REST::TermsOfServiceSerializer < ActiveModel::Serializer
attributes :effective_date, :effective, :content, :succeeded_by
def effective_date
object.effective_date.iso8601
(object.effective_date || object.published_at).iso8601
end
def effective

View File

@ -11,7 +11,7 @@
.dot-indicator.success
.dot-indicator__indicator
%span
- if @terms_of_service.effective?
- if @terms_of_service.effective? || @terms_of_service.effective_date.nil?
= t('admin.terms_of_service.live')
- else
= t('admin.terms_of_service.going_live_on_html', date: tag.time(l(@terms_of_service.effective_date), class: 'formatted', date: @terms_of_service.effective_date.iso8601))

View File

@ -55,6 +55,8 @@ ca:
too_soon: és massa aviat, ha de ser després de %{date}
user:
attributes:
date_of_birth:
below_limit: és inferior a l'edat mínima
email:
blocked: utilitza un proveïdor de correu-e no autoritzat
unreachable: sembla que no existeix

View File

@ -88,6 +88,7 @@ ca:
favicon: WEBP, PNG, GIF o JPG. Canvia la icona per defecte de Mastodon a la pestanya del navegador per una de personalitzada.
mascot: Anul·la la il·lustració en la interfície web avançada.
media_cache_retention_period: El vostre servidor conserva una còpia dels fitxers multimèdia de les publicacions dels usuaris remots. Si s'indica un valor positiu, s'esborraran passats els dies indicats. Si el fitxer es torna a demanar un cop esborrat, es tornarà a baixar si el contingut origen segueix disponible. Per causa de les restriccions en la freqüència amb què es poden demanar les targetes de previsualització d'altres servidors, es recomana definir aquest valor com a mínim a 14 dies, o les targetes de previsualització no s'actualizaran a demanda abans d'aquest termini.
min_age: Es demanarà als usuaris la data de naixement durant la inscripció
peers_api_enabled: Una llista de noms de domini que aquest servidor ha trobat al fedivers. No inclou cap dada sobre si estàs federat amb un servidor determinat, només si el teu en sap res. La fan servir, en un sentit general, serveis que recol·lecten estadístiques sobre la federació.
profile_directory: El directori de perfils llista tots els usuaris que tenen activat ser descoberts.
require_invite_text: Quan el registre requereixi aprovació manual, fes que sigui obligatori en lloc d'opcional d'escriure el text de la sol·licitud d'invitació "Per què vols unir-te?"
@ -143,6 +144,7 @@ ca:
min_age: No hauria de ser inferior a l'edat mínima exigida per la llei de la vostra jurisdicció.
user:
chosen_languages: Quan estigui marcat, només es mostraran els tuts de les llengües seleccionades en les línies de temps públiques
date_of_birth: Ens hem d'assegurar que teniu %{age} anys com a mínim. No desarem aquesta dada.
role: El rol controla quins permisos té l'usuari.
user_role:
color: Color que s'usarà per al rol a tota la interfície d'usuari, com a RGB en format hexadecimal
@ -268,6 +270,7 @@ ca:
favicon: Icona de preferits
mascot: Mascota personalitzada (llegat)
media_cache_retention_period: Període de retenció del cau multimèdia
min_age: Edat mínima requerida
peers_api_enabled: Publica a l'API la llista de servidors descoberts
profile_directory: Habilita el directori de perfils
registrations_mode: Qui es pot registrar
@ -346,6 +349,9 @@ ca:
jurisdiction: Jurisdicció
min_age: Edat mínima
user:
date_of_birth_1i: Dia
date_of_birth_2i: Mes
date_of_birth_3i: Any
role: Rol
time_zone: Zona horària
user_role:

View File

@ -88,7 +88,7 @@ fi:
favicon: WEBP, PNG, GIF tai JPG. Korvaa oletusarvoisen Mastodonin sivustokuvakkeen haluamallasi kuvakkeella.
mascot: Korvaa kuvituksen edistyneessä selainkäyttöliittymässä.
media_cache_retention_period: Etäkäyttäjien tekemien julkaisujen mediatiedostot ovat välimuistissa palvelimellasi. Kun kentän arvo on positiivinen, media poistuu, kun määritetty määrä päiviä on kulunut. Jos mediaa pyydetään sen poistamisen jälkeen, se ladataan uudelleen, jos lähdesisältö on vielä saatavilla. Koska linkkien esikatselun kyselyitä kolmansien osapuolien sivustoille on rajoitettu, on suositeltavaa asettaa tämä arvo vähintään 14 päivään, tai linkkien kortteja ei päivitetä pyynnöstä ennen tätä ajankohtaa.
min_age: Käyttäjiä pyydetään rekisteröitymisen aikana vahvistamaan heidän syntymäpäivänsä
min_age: Käyttäjiä pyydetään rekisteröitymisen aikana vahvistamaan syntymäpäivänsä
peers_api_enabled: Luettelo verkkotunnuksista, jotka tämä palvelin on kohdannut fediversumissa. Se ei kerro, federoitko tietyn palvelimen kanssa, vaan että palvelimesi on ylipäätään tietoinen siitä. Tätä tietoa käytetään palveluissa, jotka keräävät tilastoja federoinnista yleisellä tasolla.
profile_directory: Profiilihakemisto luetteloi kaikki käyttäjät, jotka ovat valinneet olla löydettävissä.
require_invite_text: Kun rekisteröityminen vaatii manuaalisen hyväksynnän, tee ”Miksi haluat liittyä?” -tekstikentästä pakollinen vapaaehtoisen sijaan

View File

@ -146,6 +146,7 @@ it:
min_age: Non si dovrebbe avere un'età inferiore a quella minima richiesta, dalle leggi della tua giurisdizione.
user:
chosen_languages: Quando una o più lingue sono contrassegnate, nelle timeline pubbliche vengono mostrati solo i toot nelle lingue selezionate
date_of_birth: Dobbiamo verificare che tu abbia almeno %{age} anni per usare Mastodon. Non archivieremo questa informazione.
role: Il ruolo controlla quali permessi ha l'utente.
user_role:
color: Colore da usare per il ruolo in tutta l'UI, come RGB in formato esadecimale
@ -271,6 +272,7 @@ it:
favicon: Favicon
mascot: Personalizza mascotte (legacy)
media_cache_retention_period: Periodo di conservazione della cache multimediale
min_age: Età minima richiesta
peers_api_enabled: Pubblica l'elenco dei server scoperti nell'API
profile_directory: Abilita directory del profilo
registrations_mode: Chi può iscriversi

View File

@ -1,35 +0,0 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Admin::AccountActionsController do
render_views
let(:user) { Fabricate(:admin_user) }
before do
sign_in user, scope: :user
end
describe 'GET #new' do
let(:account) { Fabricate(:account) }
it 'returns http success' do
get :new, params: { account_id: account.id }
expect(response).to have_http_status(:success)
end
end
describe 'POST #create' do
let(:account) { Fabricate(:account) }
it 'records the account action' do
expect do
post :create, params: { account_id: account.id, admin_account_action: { type: 'silence' } }
end.to change { account.strikes.count }.by(1)
expect(response).to redirect_to(admin_account_path(account.id))
end
end
end

View File

@ -0,0 +1,29 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Admin Account Actions' do
let(:user) { Fabricate(:admin_user) }
before { sign_in user }
describe 'Creating a new account action on an account' do
let(:account) { Fabricate(:account) }
it 'creates the action and redirects to the account page' do
visit new_admin_account_action_path(account_id: account.id)
expect(page)
.to have_title(I18n.t('admin.account_actions.title', acct: account.pretty_acct))
choose(option: 'silence')
expect { submit_form }
.to change { account.strikes.count }.by(1)
expect(page)
.to have_title(account.pretty_acct)
end
def submit_form
click_on I18n.t('admin.account_actions.action')
end
end
end

View File

@ -2,10 +2,8 @@
require 'rails_helper'
RSpec.describe Admin::DashboardController do
render_views
describe 'GET #index' do
RSpec.describe 'Admin Dashboard' do
describe 'Viewing the dashboard page' do
let(:user) { Fabricate(:owner_user) }
before do
@ -14,14 +12,12 @@ RSpec.describe Admin::DashboardController do
sign_in(user)
end
it 'returns http success and body with system check messages' do
get :index
it 'returns page with system check messages' do
visit admin_dashboard_path
expect(response)
.to have_http_status(200)
.and have_attributes(
body: include(I18n.t('admin.system_checks.software_version_patch_check.message_html'))
)
expect(page)
.to have_title(I18n.t('admin.dashboard.title'))
.and have_content(I18n.t('admin.system_checks.software_version_patch_check.message_html'))
end
private