diff --git a/app/javascript/mastodon/features/notifications/components/notification.jsx b/app/javascript/mastodon/features/notifications/components/notification.jsx
index 7683176c1e7b23..c274c35e5d1686 100644
--- a/app/javascript/mastodon/features/notifications/components/notification.jsx
+++ b/app/javascript/mastodon/features/notifications/components/notification.jsx
@@ -590,10 +590,11 @@ class Notification extends ImmutablePureComponent {
return this.renderStatusReference(notification, link);
case 'status':
return this.renderStatus(notification, link);
- case 'list_status':
+ case 'list_status': {
const list = notification.get('list');
const listLink = {list.get('title')};
return this.renderListStatus(notification, listLink, link);
+ }
case 'update':
return this.renderUpdate(notification, link);
case 'poll':
diff --git a/app/javascript/mastodon/features/ui/components/column_link.jsx b/app/javascript/mastodon/features/ui/components/column_link.jsx
index e6f0b74995cd30..fe7da5fdb04898 100644
--- a/app/javascript/mastodon/features/ui/components/column_link.jsx
+++ b/app/javascript/mastodon/features/ui/components/column_link.jsx
@@ -16,7 +16,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
if (href) {
return (
-
+
{active ? activeIconElement : iconElement}
{text}
{badgeElement}
@@ -24,7 +24,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
);
} else {
return (
-
+
{active ? activeIconElement : iconElement}
{text}
{badgeElement}
diff --git a/app/javascript/mastodon/locales/ar.json b/app/javascript/mastodon/locales/ar.json
index 18830708db615f..b11382cf0312b6 100644
--- a/app/javascript/mastodon/locales/ar.json
+++ b/app/javascript/mastodon/locales/ar.json
@@ -84,6 +84,7 @@
"alert.rate_limited.title": "معدل الطلبات محدود",
"alert.unexpected.message": "لقد طرأ خطأ غير متوقّع.",
"alert.unexpected.title": "المعذرة!",
+ "alt_text_badge.title": "نص بديل",
"announcement.announcement": "إعلان",
"attachments_list.unprocessed": "(غير معالَج)",
"audio.hide": "إخفاء المقطع الصوتي",
@@ -758,7 +759,7 @@
"status.history.edited": "عدله {name} {date}",
"status.load_more": "حمّل المزيد",
"status.media.open": "اضغط للفتح",
- "status.media.show": "اضغط لإظهاره",
+ "status.media.show": "اضغط لإظهارها",
"status.media_hidden": "وسائط مخفية",
"status.mention": "أذكُر @{name}",
"status.more": "المزيد",
diff --git a/app/javascript/mastodon/locales/cy.json b/app/javascript/mastodon/locales/cy.json
index f2d0708882fae5..52dc6a49e2f2fe 100644
--- a/app/javascript/mastodon/locales/cy.json
+++ b/app/javascript/mastodon/locales/cy.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Cyfradd gyfyngedig",
"alert.unexpected.message": "Digwyddodd gwall annisgwyl.",
"alert.unexpected.title": "Wps!",
+ "alt_text_badge.title": "Testun Amgen",
"announcement.announcement": "Cyhoeddiad",
"attachments_list.unprocessed": "(heb eu prosesu)",
"audio.hide": "Cuddio sain",
@@ -221,6 +222,7 @@
"domain_block_modal.they_cant_follow": "Ni all neb o'r gweinydd hwn eich dilyn.",
"domain_block_modal.they_wont_know": "Fyddan nhw ddim yn gwybod eu bod wedi cael eu blocio.",
"domain_block_modal.title": "Blocio parth?",
+ "domain_block_modal.you_will_lose_relationships": "Byddwch yn colli'r holl ddilynwyr a phobl rydych chi'n eu dilyn o'r gweinydd hwn.",
"domain_block_modal.you_wont_see_posts": "Fyddwch chi ddim yn gweld postiadau na hysbysiadau gan ddefnyddwyr ar y gweinydd hwn.",
"domain_pill.activitypub_lets_connect": "Mae'n caniatáu ichi gysylltu a rhyngweithio â phobl nid yn unig ar Mastodon, ond ar draws gwahanol apiau cymdeithasol hefyd.",
"domain_pill.activitypub_like_language": "Mae ActivityPub fel yr iaith y mae Mastodon yn ei siarad â rhwydweithiau cymdeithasol eraill.",
@@ -849,6 +851,11 @@
"upload_error.poll": "Nid oes modd llwytho ffeiliau â phleidleisiau.",
"upload_form.audio_description": "Disgrifio ar gyfer pobl sydd â cholled clyw",
"upload_form.description": "Disgrifio i'r rheini a nam ar ei golwg",
+ "upload_form.drag_and_drop.instructions": "I godi atodiad cyfryngau, pwyswch y space neu enter. Wrth lusgo, defnyddiwch y bysellau saeth i symud yr atodiad cyfryngau i unrhyw gyfeiriad penodol. Pwyswch space neu enter eto i ollwng yr atodiad cyfryngau yn ei safle newydd, neu pwyswch escape i ddiddymu.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Cafodd llusgo ei ddiddymu. Cafodd atodiad cyfryngau {item} ei ollwng.",
+ "upload_form.drag_and_drop.on_drag_end": "Cafodd atodiad cyfryngau {item} ei ollwng.",
+ "upload_form.drag_and_drop.on_drag_over": "Symudwyd atodiad cyfryngau {item}.",
+ "upload_form.drag_and_drop.on_drag_start": "Atodiad cyfryngau godwyd {item}.",
"upload_form.edit": "Golygu",
"upload_form.thumbnail": "Newid llun bach",
"upload_form.video_description": "Disgrifio ar gyfer pobl sydd â cholled clyw neu amhariad golwg",
diff --git a/app/javascript/mastodon/locales/de.json b/app/javascript/mastodon/locales/de.json
index 6f45d4fe5329a3..0b541b2e4804f3 100644
--- a/app/javascript/mastodon/locales/de.json
+++ b/app/javascript/mastodon/locales/de.json
@@ -41,7 +41,7 @@
"account.go_to_profile": "Profil aufrufen",
"account.hide_reblogs": "Geteilte Beiträge von @{name} ausblenden",
"account.in_memoriam": "Zum Andenken.",
- "account.joined_short": "Beigetreten",
+ "account.joined_short": "Mitglied seit",
"account.languages": "Ausgewählte Sprachen ändern",
"account.link_verified_on": "Das Profil mit dieser E-Mail-Adresse wurde bereits am {date} bestätigt",
"account.locked_info": "Die Privatsphäre dieses Kontos wurde auf „geschützt“ gesetzt. Die Person bestimmt manuell, wer ihrem Profil folgen darf.",
@@ -534,7 +534,7 @@
"notification.relationships_severance_event.domain_block": "Ein Admin von {from} hat {target} blockiert – darunter {followersCount} deiner Follower und {followingCount, plural, one {# Konto, dem} other {# Konten, denen}} du folgst.",
"notification.relationships_severance_event.learn_more": "Mehr erfahren",
"notification.relationships_severance_event.user_domain_block": "Du hast {target} blockiert – {followersCount} deiner Follower und {followingCount, plural, one {# Konto, dem} other {# Konten, denen}} du folgst, wurden entfernt.",
- "notification.status": "{name} hat gerade etwas gepostet",
+ "notification.status": "{name} veröffentlichte gerade",
"notification.update": "{name} bearbeitete einen Beitrag",
"notification_requests.accept": "Genehmigen",
"notification_requests.accept_multiple": "{count, plural, one {# Anfrage genehmigen …} other {# Anfragen genehmigen …}}",
diff --git a/app/javascript/mastodon/locales/el.json b/app/javascript/mastodon/locales/el.json
index 85f893c63ddc3e..2565f5da687011 100644
--- a/app/javascript/mastodon/locales/el.json
+++ b/app/javascript/mastodon/locales/el.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Περιορισμός συχνότητας",
"alert.unexpected.message": "Προέκυψε απροσδόκητο σφάλμα.",
"alert.unexpected.title": "Ουπς!",
+ "alt_text_badge.title": "Εναλλακτικό κείμενο",
"announcement.announcement": "Ανακοίνωση",
"attachments_list.unprocessed": "(μη επεξεργασμένο)",
"audio.hide": "Απόκρυψη αρχείου ήχου",
@@ -221,6 +222,8 @@
"domain_block_modal.they_cant_follow": "Κανείς από αυτόν τον διακομιστή δεν μπορεί να σε ακολουθήσει.",
"domain_block_modal.they_wont_know": "Δεν θα ξέρουν ότι έχουν αποκλειστεί.",
"domain_block_modal.title": "Αποκλεισμός τομέα;",
+ "domain_block_modal.you_will_lose_num_followers": "Θα χάσετε {followersCount, plural, one {{followersCountDisplay} ακόλουθο} other {{followersCountDisplay} ακόλουθους}} και {followingCount, plural, one {{followingCountDisplay} άτομο που ακολουθείτε} other {{followingCountDisplay} άτομα που ακολουθείτε}}.",
+ "domain_block_modal.you_will_lose_relationships": "Θα χάσετε όλους τους ακόλουθους και τα άτομα που ακολουθείτε από αυτόν τον διακομιστή.",
"domain_block_modal.you_wont_see_posts": "Δεν θα βλέπεις αναρτήσεις ή ειδοποιήσεις από χρήστες σε αυτόν το διακομιστή.",
"domain_pill.activitypub_lets_connect": "Σού επιτρέπει να συνδεθείς και να αλληλεπιδράσεις με τους ανθρώπους όχι μόνο στο Mastodon, αλλά και σε διαφορετικές κοινωνικές εφαρμογές.",
"domain_pill.activitypub_like_language": "Το ActivityPub είναι σαν τη γλώσσα Mastodon μιλάει με άλλα κοινωνικά δίκτυα.",
@@ -849,6 +852,11 @@
"upload_error.poll": "Στις δημοσκοπήσεις δεν επιτρέπεται η μεταφόρτωση αρχείου.",
"upload_form.audio_description": "Περιγραφή για άτομα με προβλήματα ακοής",
"upload_form.description": "Περιγραφή για άτομα με προβλήματα όρασης",
+ "upload_form.drag_and_drop.instructions": "Για να επιλέξετε ένα συνημμένο αρχείο πολυμέσων, πατήστε το Space ή το Enter. Ενώ το σέρνετε, χρησιμοποιήστε τα πλήκτρα βέλους για να μετακινήσετε το συνημμένο αρχείο πολυμέσων προς οποιαδήποτε κατεύθυνση. Πατήστε ξανά το Space ή το Enter για να αποθέσετε το συνημμένο αρχείο πολυμέσων στη νέα του θέση ή πατήστε το Escape για ακύρωση.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Η μετακίνηση ακυρώθηκε. Έγινε απόθεση του συνημμένου αρχείου πολυμέσων «{item}».",
+ "upload_form.drag_and_drop.on_drag_end": "Έγινε απόθεση του συνημμένου αρχείου πολυμέσων «{item}».",
+ "upload_form.drag_and_drop.on_drag_over": "Έγινε μετακίνηση του συνημμένου αρχείου πολυμέσων «{item}».",
+ "upload_form.drag_and_drop.on_drag_start": "Έγινε επιλογή του συνημμένου αρχείου πολυμέσων «{item}».",
"upload_form.edit": "Επεξεργασία",
"upload_form.thumbnail": "Αλλαγή μικρογραφίας",
"upload_form.video_description": "Περιγραφή για άτομα με προβλήματα ακοής ή όρασης",
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index 8a960298348c05..3a35a704e2d6e0 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -634,6 +634,7 @@
"notification.label.reply": "Reply",
"notification.list_status": "{name} post is added to {listName}",
"notification.mention": "Mention",
+ "notification.mentioned_you": "{name} mentioned you",
"notification.moderation-warning.learn_more": "Learn more",
"notification.moderation_warning": "You have received a moderation warning",
"notification.moderation_warning.action_delete_statuses": "Some of your posts have been removed.",
diff --git a/app/javascript/mastodon/locales/eo.json b/app/javascript/mastodon/locales/eo.json
index 4268c385359327..35c2a5c7448e46 100644
--- a/app/javascript/mastodon/locales/eo.json
+++ b/app/javascript/mastodon/locales/eo.json
@@ -22,10 +22,10 @@
"account.cancel_follow_request": "Nuligi peton por sekvado",
"account.copy": "Kopii ligilon al profilo",
"account.direct": "Private mencii @{name}",
- "account.disable_notifications": "Ne plu sciigi min, kiam @{name} mesaĝas",
+ "account.disable_notifications": "Ĉesu sciigi min kiam @{name} afiŝas",
"account.domain_blocked": "Domajno blokita",
"account.edit_profile": "Redakti la profilon",
- "account.enable_notifications": "Sciigi min, kiam @{name} mesaĝas",
+ "account.enable_notifications": "Sciigu min kiam @{name} afiŝos",
"account.endorse": "Rekomendi ĉe via profilo",
"account.featured_tags.last_status_at": "Lasta afîŝo je {date}",
"account.featured_tags.last_status_never": "Neniu afiŝo",
@@ -49,14 +49,14 @@
"account.mention": "Mencii @{name}",
"account.moved_to": "{name} indikis, ke ria nova konto estas nun:",
"account.mute": "Silentigi @{name}",
- "account.mute_notifications_short": "Silentigu Sciigojn",
+ "account.mute_notifications_short": "Silentigu sciigojn",
"account.mute_short": "Silentigu",
"account.muted": "Silentigita",
"account.mutual": "Reciproka",
"account.no_bio": "Neniu priskribo estas provizita.",
"account.open_original_page": "Malfermi la originalan paĝon",
"account.posts": "Afiŝoj",
- "account.posts_with_replies": "Mesaĝoj kaj respondoj",
+ "account.posts_with_replies": "Afiŝoj kaj respondoj",
"account.report": "Raporti @{name}",
"account.requested": "Atendo de aprobo. Klaku por nuligi la peton por sekvado",
"account.requested_follow": "{name} petis sekvi vin",
@@ -69,7 +69,7 @@
"account.unendorse": "Ne plu rekomendi ĉe la profilo",
"account.unfollow": "Ĉesi sekvi",
"account.unmute": "Ne plu silentigi @{name}",
- "account.unmute_notifications_short": "Malsilentigu Sciigojn",
+ "account.unmute_notifications_short": "Malsilentigu sciigojn",
"account.unmute_short": "Ne plu silentigi",
"account_note.placeholder": "Alklaku por aldoni noton",
"admin.dashboard.daily_retention": "Uzantoretenprocento lau tag post registro",
@@ -81,7 +81,7 @@
"admin.impact_report.instance_followers": "Sekvantojn niaj uzantoj perdus",
"admin.impact_report.instance_follows": "Sekvantojn ties uzantoj perdus",
"admin.impact_report.title": "Influa reporto",
- "alert.rate_limited.message": "Bonvolu reprovi post {retry_time, time, medium}.",
+ "alert.rate_limited.message": "Bonvolu reprovi poste {retry_time, time, medium}.",
"alert.rate_limited.title": "Mesaĝkvante limigita",
"alert.unexpected.message": "Neatendita eraro okazis.",
"alert.unexpected.title": "Aj!",
@@ -163,7 +163,7 @@
"compose_form.poll.switch_to_single": "Ŝanĝi la balotenketon por permesi unu solan elekton",
"compose_form.poll.type": "Stilo",
"compose_form.publish": "Afiŝo",
- "compose_form.publish_form": "Afiŝi",
+ "compose_form.publish_form": "Nova afiŝo",
"compose_form.reply": "Respondi",
"compose_form.save_changes": "Ĝisdatigi",
"compose_form.spoiler.marked": "Forigi la averton de enhavo",
@@ -173,7 +173,7 @@
"confirmations.block.confirm": "Bloki",
"confirmations.delete.confirm": "Forigi",
"confirmations.delete.message": "Ĉu vi certas, ke vi volas forigi ĉi tiun afiŝon?",
- "confirmations.delete.title": "Ĉu forigi Afiŝon?",
+ "confirmations.delete.title": "Ĉu forigi afiŝon?",
"confirmations.delete_list.confirm": "Forigi",
"confirmations.delete_list.message": "Ĉu vi certas, ke vi volas porĉiame forigi ĉi tiun liston?",
"confirmations.delete_list.title": "Ĉu forigi liston?",
@@ -213,9 +213,9 @@
"dismissable_banner.community_timeline": "Jen la plej novaj publikaj afiŝoj de uzantoj, kies kontojn gastigas {domain}.",
"dismissable_banner.dismiss": "Eksigi",
"dismissable_banner.explore_links": "Tiuj novaĵoj estas aktuale priparolataj de uzantoj en tiu ĉi kaj aliaj serviloj, sur la malcentrigita reto.",
- "dismissable_banner.explore_statuses": "Ĉi tioj estas afiŝoj de socia reto kiu populariĝas hodiau.",
+ "dismissable_banner.explore_statuses": "Ĉi tiuj estas afiŝoj de la tuta socia reto, kiuj populariĝas hodiaŭ. Pli novaj afiŝoj kun pli da diskonigoj kaj plej ŝatataj estas rangigitaj pli alte.",
"dismissable_banner.explore_tags": "Ĉi tiuj kradvostoj populariĝas en ĉi tiu kaj aliaj serviloj en la malcentraliza reto nun.",
- "dismissable_banner.public_timeline": "Ĉi tioj estas plej lastaj publikaj afiŝoj de personoj ĉe socia reto kiu personoj ĉe {domain} sekvas.",
+ "dismissable_banner.public_timeline": "Ĉi tiuj estas la plej lastatempaj publikaj afiŝoj de homoj en la socia reto, kiujn homoj sur {domain} sekvas.",
"domain_block_modal.block": "Bloki servilon",
"domain_block_modal.block_account_instead": "Bloki @{name} anstataŭe",
"domain_block_modal.they_can_interact_with_old_posts": "Homoj de ĉi tiu servilo povas interagi kun viaj malnovaj afiŝoj.",
@@ -265,8 +265,8 @@
"empty_column.direct": "Vi ankoraŭ ne havas privatan mencion. Kiam vi sendos aŭ ricevos iun, tiu aperos ĉi tie.",
"empty_column.domain_blocks": "Ankoraŭ neniu domajno estas blokita.",
"empty_column.explore_statuses": "Nenio tendencas nun. Rekontrolu poste!",
- "empty_column.favourited_statuses": "Vi ankoraŭ ne havas stelumitan afiŝon.",
- "empty_column.favourites": "Ankoraŭ neniu stelumis tiun afiŝon.",
+ "empty_column.favourited_statuses": "Vi ankoraŭ ne havas plej ŝatatajn afiŝojn. Kiam vi ŝatatas unu, ĝi aperos ĉi tie.",
+ "empty_column.favourites": "Neniu ankoraŭ ŝatis ĉi tiun afiŝon. Kiam iu ŝatos ĝin, ili aperos ĉi tie.",
"empty_column.follow_requests": "Vi ne ankoraŭ havas iun peton de sekvado. Kiam vi ricevos unu, ĝi aperos ĉi tie.",
"empty_column.followed_tags": "Vi ankoraŭ ne sekvas iujn kradvortojn. Kiam vi faras, ili aperos ĉi tie.",
"empty_column.hashtag": "Ankoraŭ estas nenio per ĉi tiu kradvorto.",
@@ -296,7 +296,7 @@
"filter_modal.added.review_and_configure": "Por kontroli kaj pli modifi ĉi tiu filtrilkategorio, iru al la {settings_link}.",
"filter_modal.added.review_and_configure_title": "Filtrilopcioj",
"filter_modal.added.settings_link": "opciopaĝo",
- "filter_modal.added.short_explanation": "Ĉi tiu mesaĝo aldonitas al la filtrilkategorio: {title}.",
+ "filter_modal.added.short_explanation": "Ĉi tiu afiŝo aldonitas al la filtrilkategorio: {title}.",
"filter_modal.added.title": "Filtrilo aldonita!",
"filter_modal.select_filter.context_mismatch": "ne kongruas la kuntekston",
"filter_modal.select_filter.expired": "eksvalidiĝinta",
@@ -304,7 +304,7 @@
"filter_modal.select_filter.search": "Serĉi aŭ krei",
"filter_modal.select_filter.subtitle": "Uzu ekzistantan kategorion aŭ kreu novan",
"filter_modal.select_filter.title": "Filtri ĉi tiun afiŝon",
- "filter_modal.title.status": "Filtri mesaĝon",
+ "filter_modal.title.status": "Filtri afiŝon",
"filter_warning.matches_filter": "Filtrilo de kongruoj “{title}”",
"filtered_notifications_banner.pending_requests": "El {count, plural, =0 {neniu} one {unu persono} other {# homoj}} vi eble konas",
"filtered_notifications_banner.title": "Filtritaj sciigoj",
@@ -351,7 +351,7 @@
"hashtag.column_settings.tag_toggle": "Aldoni pliajn etikedojn por ĉi tiu kolumno",
"hashtag.counter_by_accounts": "{count, plural,one {{counter} partoprenanto} other {{counter} partoprenantoj}}",
"hashtag.counter_by_uses": "{count, plural,one {{counter} afiŝo} other {{counter} afiŝoj}}",
- "hashtag.counter_by_uses_today": "{count, plural,one {{counter} afiŝo} other {{counter} afiŝoj}} hodiau",
+ "hashtag.counter_by_uses_today": "{count, plural,one {{counter} afiŝo} other {{counter} afiŝoj}} hodiaŭ",
"hashtag.follow": "Sekvi la kradvorton",
"hashtag.unfollow": "Ne plu sekvi la kradvorton",
"hashtags.and_other": "…kaj {count, plural,other {# pli}}",
@@ -382,9 +382,9 @@
"ignore_notifications_modal.not_following_title": "Ĉu ignori sciigojn de homoj, kiujn vi ne sekvas?",
"ignore_notifications_modal.private_mentions_title": "Ĉu ignori sciigojn de nepetitaj privataj mencioj?",
"interaction_modal.description.favourite": "Per konto ĉe Mastodon, vi povas stelumiti ĉi tiun afiŝon por sciigi la afiŝanton ke vi aprezigas ŝin kaj konservas por la estonteco.",
- "interaction_modal.description.follow": "Kun konto ĉe Mastodon, vi povos sekvi {name} por vidi ties mesaĝojn en via hejmo.",
+ "interaction_modal.description.follow": "Kun konto ĉe Mastodon, vi povas sekvi {name} por ricevi iliajn afiŝojn en via hejma fluo.",
"interaction_modal.description.reblog": "Kun konto ĉe Mastodon, vi povas diskonigi ĉi tiun afiŝon, por ke viaj propraj sekvantoj vidu ĝin.",
- "interaction_modal.description.reply": "Kun konto ĉe Mastodon, vi povos respondi al ĉi tiu mesaĝo.",
+ "interaction_modal.description.reply": "Kun konto ĉe Mastodon, vi povos respondi al ĉi tiu afiŝo.",
"interaction_modal.login.action": "Prenu min hejmen",
"interaction_modal.login.prompt": "Domajno de via hejma servilo, ekz. mastodon.social",
"interaction_modal.no_account_yet": "Ĉu ne estas ĉe Mastodon?",
@@ -402,12 +402,12 @@
"keyboard_shortcuts.back": "reveni",
"keyboard_shortcuts.blocked": "Malfermi la liston de blokitaj uzantoj",
"keyboard_shortcuts.boost": "Diskonigi la mesaĝon",
- "keyboard_shortcuts.column": "fokusi mesaĝon en unu el la kolumnoj",
+ "keyboard_shortcuts.column": "Fokusi kolumnon",
"keyboard_shortcuts.compose": "enfokusigi la tekstujon",
"keyboard_shortcuts.description": "Priskribo",
"keyboard_shortcuts.direct": "por malfermi la kolumnon pri privataj mencioj",
"keyboard_shortcuts.down": "iri suben en la listo",
- "keyboard_shortcuts.enter": "malfermi mesaĝon",
+ "keyboard_shortcuts.enter": "Malfermi afiŝon",
"keyboard_shortcuts.favourite": "Stelumi afiŝon",
"keyboard_shortcuts.favourites": "Malfermi la liston de la stelumoj",
"keyboard_shortcuts.federated": "Malfermi la frataran templinion",
@@ -421,16 +421,16 @@
"keyboard_shortcuts.my_profile": "malfermi vian profilon",
"keyboard_shortcuts.notifications": "malfermi la kolumnon de sciigoj",
"keyboard_shortcuts.open_media": "Malfermi plurmedion",
- "keyboard_shortcuts.pinned": "malfermi la liston de alpinglitaj mesaĝoj",
+ "keyboard_shortcuts.pinned": "Malfermu alpinglitajn afiŝojn-liston",
"keyboard_shortcuts.profile": "malfermi la profilon de la aŭtoro",
- "keyboard_shortcuts.reply": "respondi",
+ "keyboard_shortcuts.reply": "Respondu al afiŝo",
"keyboard_shortcuts.requests": "Malfermi la liston de petoj por sekvado",
"keyboard_shortcuts.search": "enfokusigi la serĉilon",
"keyboard_shortcuts.spoilers": "Montri/kaŝi la kampon de averto de enhavo (\"CW\")",
"keyboard_shortcuts.start": "malfermi la kolumnon «por komenci»",
"keyboard_shortcuts.toggle_hidden": "Montri/kaŝi tekston malantaŭ la averto de enhavo (\"CW\")",
"keyboard_shortcuts.toggle_sensitivity": "Montri/kaŝi plurmedion",
- "keyboard_shortcuts.toot": "Krei novan mesaĝon",
+ "keyboard_shortcuts.toot": "Komencu novan afiŝon",
"keyboard_shortcuts.unfocus": "malenfokusigi la tekstujon aŭ la serĉilon",
"keyboard_shortcuts.up": "iri supren en la listo",
"lightbox.close": "Fermi",
@@ -476,9 +476,9 @@
"navigation_bar.blocks": "Blokitaj uzantoj",
"navigation_bar.bookmarks": "Legosignoj",
"navigation_bar.community_timeline": "Loka templinio",
- "navigation_bar.compose": "Skribi novan mesaĝon",
+ "navigation_bar.compose": "Redakti novan afiŝon",
"navigation_bar.direct": "Privataj mencioj",
- "navigation_bar.discover": "Esplori",
+ "navigation_bar.discover": "Malkovri",
"navigation_bar.domain_blocks": "Blokitaj domajnoj",
"navigation_bar.explore": "Esplori",
"navigation_bar.favourites": "Stelumoj",
@@ -487,12 +487,12 @@
"navigation_bar.followed_tags": "Sekvataj kradvortoj",
"navigation_bar.follows_and_followers": "Sekvatoj kaj sekvantoj",
"navigation_bar.lists": "Listoj",
- "navigation_bar.logout": "Adiaŭi",
+ "navigation_bar.logout": "Elsaluti",
"navigation_bar.moderation": "Modereco",
"navigation_bar.mutes": "Silentigitaj uzantoj",
"navigation_bar.opened_in_classic_interface": "Afiŝoj, kontoj, kaj aliaj specifaj paĝoj kiuj estas malfermititaj defaulta en la klasika reta interfaco.",
"navigation_bar.personal": "Persone",
- "navigation_bar.pins": "Alpinglitaj mesaĝoj",
+ "navigation_bar.pins": "Alpinglitaj afiŝoj",
"navigation_bar.preferences": "Preferoj",
"navigation_bar.public_timeline": "Fratara templinio",
"navigation_bar.search": "Serĉi",
@@ -572,7 +572,7 @@
"notifications.column_settings.reblog": "Diskonigoj:",
"notifications.column_settings.show": "Montri en kolumno",
"notifications.column_settings.sound": "Eligi sonon",
- "notifications.column_settings.status": "Novaj mesaĝoj:",
+ "notifications.column_settings.status": "Novaj afiŝoj:",
"notifications.column_settings.unread_notifications.category": "Nelegitaj sciigoj",
"notifications.column_settings.unread_notifications.highlight": "Marki nelegitajn sciigojn",
"notifications.column_settings.update": "Redaktoj:",
@@ -660,7 +660,7 @@
"poll.votes": "{votes, plural, one {# voĉdono} other {# voĉdonoj}}",
"poll_button.add_poll": "Aldoni balotenketon",
"poll_button.remove_poll": "Forigi balotenketon",
- "privacy.change": "Agordi mesaĝan privatecon",
+ "privacy.change": "Ŝanĝu afiŝan privatecon",
"privacy.direct.long": "Ĉiuj menciitaj en la afiŝo",
"privacy.direct.short": "Specifaj homoj",
"privacy.private.long": "Nur viaj sekvantoj",
@@ -775,13 +775,13 @@
"sign_in_banner.sso_redirect": "Ensalutu aŭ Registriĝi",
"status.admin_account": "Malfermi fasadon de moderigado por @{name}",
"status.admin_domain": "Malfermu moderigan interfacon por {domain}",
- "status.admin_status": "Malfermi ĉi tiun mesaĝon en la kontrola interfaco",
+ "status.admin_status": "Malfermi ĉi tiun afiŝon en la kontrola interfaco",
"status.block": "Bloki @{name}",
"status.bookmark": "Aldoni al la legosignoj",
"status.cancel_reblog_private": "Ne plu diskonigi",
"status.cannot_reblog": "Ĉi tiun afiŝon ne eblas diskonigi",
"status.continued_thread": "Daŭrigis fadenon",
- "status.copy": "Kopii la ligilon al la mesaĝo",
+ "status.copy": "Kopii la ligilon al la afiŝo",
"status.delete": "Forigi",
"status.detailed_status": "Detala konversacia vido",
"status.direct": "Private mencii @{name}",
@@ -803,9 +803,9 @@
"status.more": "Pli",
"status.mute": "Silentigi @{name}",
"status.mute_conversation": "Silentigi konversacion",
- "status.open": "Disvolvi la mesaĝon",
+ "status.open": "Pligrandigu ĉi tiun afiŝon",
"status.pin": "Alpingli al la profilo",
- "status.pinned": "Alpinglita mesaĝo",
+ "status.pinned": "Alpinglita afiŝo",
"status.read_more": "Legi pli",
"status.reblog": "Diskonigi",
"status.reblog_private": "Diskonigi kun la sama videbleco",
diff --git a/app/javascript/mastodon/locales/fr-CA.json b/app/javascript/mastodon/locales/fr-CA.json
index bdceb9bd30d036..3349be4fad1612 100644
--- a/app/javascript/mastodon/locales/fr-CA.json
+++ b/app/javascript/mastodon/locales/fr-CA.json
@@ -852,6 +852,7 @@
"upload_error.poll": "L’envoi de fichiers n’est pas autorisé avec les sondages.",
"upload_form.audio_description": "Décrire pour les personnes ayant des difficultés d’audition",
"upload_form.description": "Décrire pour les malvoyants",
+ "upload_form.drag_and_drop.instructions": "Pour choisir un média joint, appuyez sur la touche espace ou entrée. Tout en faisant glisser, utilisez les touches fléchées pour déplacer le fichier média dans une direction donnée. Appuyez à nouveau sur la touche espace ou entrée pour déposer le fichier média dans sa nouvelle position, ou appuyez sur la touche Echap pour annuler.",
"upload_form.edit": "Modifier",
"upload_form.thumbnail": "Changer la vignette",
"upload_form.video_description": "Décrire pour les personnes ayant des problèmes de vue ou d'audition",
diff --git a/app/javascript/mastodon/locales/fr.json b/app/javascript/mastodon/locales/fr.json
index 2acad020935f04..5c4e582a87da4c 100644
--- a/app/javascript/mastodon/locales/fr.json
+++ b/app/javascript/mastodon/locales/fr.json
@@ -852,6 +852,7 @@
"upload_error.poll": "L’envoi de fichiers n’est pas autorisé avec les sondages.",
"upload_form.audio_description": "Décrire pour les personnes ayant des difficultés d’audition",
"upload_form.description": "Décrire pour les malvoyant·e·s",
+ "upload_form.drag_and_drop.instructions": "Pour choisir un média joint, appuyez sur la touche espace ou entrée. Tout en faisant glisser, utilisez les touches fléchées pour déplacer le fichier média dans une direction donnée. Appuyez à nouveau sur la touche espace ou entrée pour déposer le fichier média dans sa nouvelle position, ou appuyez sur la touche Echap pour annuler.",
"upload_form.edit": "Modifier",
"upload_form.thumbnail": "Changer la vignette",
"upload_form.video_description": "Décrire pour les personnes ayant des problèmes de vue ou d'audition",
diff --git a/app/javascript/mastodon/locales/gd.json b/app/javascript/mastodon/locales/gd.json
index ecbc11f3a2b7fa..f6d3f172ca1399 100644
--- a/app/javascript/mastodon/locales/gd.json
+++ b/app/javascript/mastodon/locales/gd.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Cuingeachadh ùine",
"alert.unexpected.message": "Thachair mearachd ris nach robh dùil.",
"alert.unexpected.title": "Oich!",
+ "alt_text_badge.title": "Roghainn teacsa",
"announcement.announcement": "Brath-fios",
"attachments_list.unprocessed": "(gun phròiseasadh)",
"audio.hide": "Falaich an fhuaim",
@@ -221,6 +222,8 @@
"domain_block_modal.they_cant_follow": "Chan urrainn do neach sam bith a th’ air an fhrithealaiche seo do leantainn.",
"domain_block_modal.they_wont_know": "Cha bhi fios aca gun deach am bacadh.",
"domain_block_modal.title": "A bheil thu airson an àrainn a bhacadh?",
+ "domain_block_modal.you_will_lose_num_followers": "Caillidh tu {followersCount, plural, one {{followersCountDisplay} neach-leantainn} two {{followersCountDisplay} luchd-leantainn} few {{followersCountDisplay} luchd-leantainn} other {{followersCountDisplay} luchd-leantainn}} ’s {followingCount, plural, one {{followingCountDisplay} neach a tha thu a’ leantainn} two {{followingCountDisplay} daoine a tha thu a’ leantainn} few {{followingCountDisplay} daoine a tha thu a’ leantainn} other {{followingCountDisplay} daoine a tha thu a’ leantainn}}.",
+ "domain_block_modal.you_will_lose_relationships": "Caillidh tu a h-uile luchd-leantainn ’s neach a leanas tu air an fhrithealaiche seo.",
"domain_block_modal.you_wont_see_posts": "Chan fhaic thu postaichean no brathan o chleachdaichean a th’ air an fhrithealaiche seo.",
"domain_pill.activitypub_lets_connect": "Leigidh e leat ceangal a dhèanamh ri daoine chan ann air Mastodon a-mhàin ach air feadh aplacaidean sòisealta eile cuideachd agus conaltradh leotha.",
"domain_pill.activitypub_like_language": "Tha ActivityPub coltach ri cànan a bhruidhneas Mastodon ri lìonraidhean sòisealta eile.",
@@ -330,7 +333,7 @@
"footer.about": "Mu dhèidhinn",
"footer.directory": "Eòlaire nam pròifil",
"footer.get_app": "Faigh an aplacaid",
- "footer.invite": "Thoir cuireadh do dhaoine",
+ "footer.invite": "Thoir cuireadh",
"footer.keyboard_shortcuts": "Ath-ghoiridean a’ mheur-chlàir",
"footer.privacy_policy": "Poileasaidh prìobhaideachd",
"footer.source_code": "Seall am bun-tùs",
@@ -849,6 +852,11 @@
"upload_error.poll": "Chan fhaod thu faidhle a luchdadh suas an cois cunntais-bheachd.",
"upload_form.audio_description": "Mìnich e dhan fheadhainn le èisteachd bheag",
"upload_form.description": "Mìnich e dhan fheadhainn le cion-lèirsinne",
+ "upload_form.drag_and_drop.instructions": "Airson ceanglachan meadhain a thogail, brùth air space no enter. Fhad ’ a bhios tu ’ga shlaodadh, cleachd na h-iuchraichean-saighde airson an ceanglachan meadhain a ghluasad gu comhair sam bith. Brùth air space no enter a-rithist airson an ceanglachen meadhain a leigeil às air an ionad ùr aige no brùth air escape airson sgur dheth.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Chaidh sgur dhen t-slaodadh. Chaidh an ceanglachan meadhain {item} a leigeil às.",
+ "upload_form.drag_and_drop.on_drag_end": "Chaidh an ceanglachan meadhain {item} a leigeil às.",
+ "upload_form.drag_and_drop.on_drag_over": "Chaidh an ceanglachan meadhain {item} a ghluasad.",
+ "upload_form.drag_and_drop.on_drag_start": "Chaidh an ceanglachan meadhain {item} a thogail.",
"upload_form.edit": "Deasaich",
"upload_form.thumbnail": "Atharraich an dealbhag",
"upload_form.video_description": "Mìnich e dhan fheadhainn le èisteachd bheag no cion-lèirsinne",
diff --git a/app/javascript/mastodon/locales/gl.json b/app/javascript/mastodon/locales/gl.json
index 3bc9e1ee590dfd..2a31bfa4638d79 100644
--- a/app/javascript/mastodon/locales/gl.json
+++ b/app/javascript/mastodon/locales/gl.json
@@ -193,7 +193,7 @@
"confirmations.reply.message": "Ao responder sobrescribirás a mensaxe que estás a compor. Tes a certeza de que queres continuar?",
"confirmations.reply.title": "Editar a publicación?",
"confirmations.unfollow.confirm": "Deixar de seguir",
- "confirmations.unfollow.message": "Desexas deixar de seguir a {name}?",
+ "confirmations.unfollow.message": "Tes certeza de querer deixar de seguir a {name}?",
"confirmations.unfollow.title": "Deixar de seguir á usuaria?",
"content_warning.hide": "Agochar publicación",
"content_warning.show": "Mostrar igualmente",
diff --git a/app/javascript/mastodon/locales/he.json b/app/javascript/mastodon/locales/he.json
index 4ce0d41620d5dc..16f558e543e5a7 100644
--- a/app/javascript/mastodon/locales/he.json
+++ b/app/javascript/mastodon/locales/he.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "חלה הגבלה על קצב התעבורה",
"alert.unexpected.message": "אירעה שגיאה בלתי צפויה.",
"alert.unexpected.title": "אופס!",
+ "alt_text_badge.title": "כיתוב חלופי",
"announcement.announcement": "הכרזה",
"attachments_list.unprocessed": "(לא מעובד)",
"audio.hide": "השתק",
@@ -221,6 +222,8 @@
"domain_block_modal.they_cant_follow": "משתמש משרת זה לא יכול לעקוב אחריך.",
"domain_block_modal.they_wont_know": "הם לא ידעו כי נחסמו.",
"domain_block_modal.title": "לחסום שרת?",
+ "domain_block_modal.you_will_lose_num_followers": "{followersCount, plural,one {יאבד לך עוקב אחד}other {יאבדו לך {followersCountDisplay} עוקבים}} {followingCount, plural,one {ונעקב אחד}other {ו־{followingCountDisplay} נעקבים}}.",
+ "domain_block_modal.you_will_lose_relationships": "יאבדו לך כל העוקבים והנעקבים משרת זה.",
"domain_block_modal.you_wont_see_posts": "לא תוכלו לראות הודעות ממשתמשים על שרת זה.",
"domain_pill.activitypub_lets_connect": "מאפשר לך להתחבר ולהתרועע עם אחרים לא רק במסטודון, אלא גם ביישומים חברתיים שונים אחרים.",
"domain_pill.activitypub_like_language": "אקטיביטיפאב היא למעשה השפה בה מסטודון מדבר עם רשתות חברתיות אחרות.",
@@ -849,6 +852,11 @@
"upload_error.poll": "לא ניתן להעלות קובץ עם סקר.",
"upload_form.audio_description": "תאר/י עבור לקויי שמיעה",
"upload_form.description": "תיאור לכבדי ראיה",
+ "upload_form.drag_and_drop.instructions": "כדי לבחור קובץ מוצמד, יש ללחוץ על מקש רווח או אנטר. בעת הגרירה, השתמשו במקשי החיצים כדי להזיז את הקובץ המוצמד בכל כיוון. לחצו רווח או אנטר בשנית כדי לעזוב את הקובץ במקומו החדש, או לחצו אסקייפ לביטול.",
+ "upload_form.drag_and_drop.on_drag_cancel": "הגרירה בוטלה. קובץ המדיה {item} נעזב.",
+ "upload_form.drag_and_drop.on_drag_end": "קובץ המדיה {item} נעזב.",
+ "upload_form.drag_and_drop.on_drag_over": "קובץ המדיה {item} הוזז.",
+ "upload_form.drag_and_drop.on_drag_start": "קובץ המדיה {item} נבחר.",
"upload_form.edit": "עריכה",
"upload_form.thumbnail": "שנה/י תמונה ממוזערת",
"upload_form.video_description": "תאר/י עבור לקויי שמיעה ולקויי ראייה",
diff --git a/app/javascript/mastodon/locales/hu.json b/app/javascript/mastodon/locales/hu.json
index 34a9949afd1a1c..f9f403177c96dd 100644
--- a/app/javascript/mastodon/locales/hu.json
+++ b/app/javascript/mastodon/locales/hu.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Adatforgalom korlátozva",
"alert.unexpected.message": "Váratlan hiba történt.",
"alert.unexpected.title": "Hoppá!",
+ "alt_text_badge.title": "Helyettesítő szöveg",
"announcement.announcement": "Közlemény",
"attachments_list.unprocessed": "(feldolgozatlan)",
"audio.hide": "Hang elrejtése",
@@ -851,6 +852,11 @@
"upload_error.poll": "Szavazásnál nem lehet fájlt feltölteni.",
"upload_form.audio_description": "Leírás siket vagy hallássérült emberek számára",
"upload_form.description": "Leírás vak vagy gyengénlátó emberek számára",
+ "upload_form.drag_and_drop.instructions": "Egy médiamelléklet kiválasztásához nyomj Szóközt vagy Entert. Húzás közben használd a nyílgombokat a médiamelléklet adott irányba történő mozgatásához. A médiamelléklet új pozícióba helyezéséhez nyomd meg a Szóközt vagy az Entert, vagy a megszakításhoz nyomd meg az Esc gombot.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Az áthúzás megszakítva. A(z) {item} médiamelléklet el lett dobva.",
+ "upload_form.drag_and_drop.on_drag_end": "A(z) {item} médiamelléklet el lett dobva.",
+ "upload_form.drag_and_drop.on_drag_over": "A(z) {item} médiamelléklet át lett helyezve.",
+ "upload_form.drag_and_drop.on_drag_start": "A(z) {item} médiamelléklet fel lett véve.",
"upload_form.edit": "Szerkesztés",
"upload_form.thumbnail": "Bélyegkép megváltoztatása",
"upload_form.video_description": "Leírás siket, hallássérült, vak vagy gyengénlátó emberek számára",
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index 5426ad0b87a17d..05e0cd7bc63ad4 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -97,6 +97,7 @@
"alert.rate_limited.title": "制限に達しました",
"alert.unexpected.message": "不明なエラーが発生しました。",
"alert.unexpected.title": "エラー!",
+ "alt_text_badge.title": "代替テキスト",
"announcement.announcement": "お知らせ",
"antennas.account.add": "アンテナに追加",
"antennas.account.remove": "アンテナから外す",
diff --git a/app/javascript/mastodon/locales/kab.json b/app/javascript/mastodon/locales/kab.json
index 9e2c9f3af8079a..35e9be816e3a64 100644
--- a/app/javascript/mastodon/locales/kab.json
+++ b/app/javascript/mastodon/locales/kab.json
@@ -1,5 +1,5 @@
{
- "about.blocks": "Ulac agbur",
+ "about.blocks": "Iqeddacen yettwaɛassen",
"about.contact": "Anermis:",
"about.disclaimer": "Mastodon d aseɣẓan ilelli, d aseɣẓan n uɣbalu yeldin, d tnezzut n Mastodon gGmbH.",
"about.domain_blocks.no_reason_available": "Ulac taɣẓint",
@@ -278,6 +278,8 @@
"hashtag.counter_by_uses_today": "{count, plural, one {{counter} n tsuffeɣt} other {{counter} n tsuffaɣ}} assa",
"hashtag.follow": "Ḍfeṛ ahacṭag",
"hashtags.and_other": "…d {count, plural, one {}other {# nniḍen}}",
+ "hints.threads.replies_may_be_missing": "Tiririyin d-yusan deg iqeddacen nniḍen, yezmer ur d-ddant ara.",
+ "hints.threads.see_more": "Wali ugar n tririt deg {domain}",
"home.column_settings.show_reblogs": "Ssken-d beṭṭu",
"home.column_settings.show_replies": "Ssken-d tiririyin",
"home.hide_announcements": "Ffer ulɣuyen",
@@ -550,6 +552,7 @@
"report_notification.attached_statuses": "{count, plural, one {{count} n tsuffeɣt} other {{count} n tsuffiɣin}} ttwaqnent",
"report_notification.categories.legal": "Azerfan",
"report_notification.categories.other": "Ayen nniḍen",
+ "report_notification.categories.other_sentence": "ayen nniḍen",
"report_notification.categories.spam": "Aspam",
"report_notification.categories.spam_sentence": "aspam",
"report_notification.open": "Ldi aneqqis",
@@ -584,11 +587,13 @@
"status.bookmark": "Creḍ",
"status.cancel_reblog_private": "Sefsex beṭṭu",
"status.cannot_reblog": "Tasuffeɣt-a ur tezmir ara ad tettwabḍu tikelt-nniḍen",
+ "status.continued_thread": "Asqerdec yettkemmil",
"status.copy": "Nɣel assaɣ ɣer tasuffeɣt",
"status.delete": "Kkes",
"status.direct": "Bder-d @{name} weḥd-s",
"status.direct_indicator": "Abdar uslig",
"status.edit": "Ẓreg",
+ "status.edited": "Taẓrigt taneggarut {date}",
"status.edited_x_times": "Tettwaẓreg {count, plural, one {{count} n tikkelt} other {{count} n tikkal}}",
"status.embed": "Awi-d tangalt n weslaɣ",
"status.favourite": "Amenyaf",
@@ -614,9 +619,10 @@
"status.reblogs.empty": "Ula yiwen ur yebḍi tajewwiqt-agi ar tura. Ticki yebḍa-tt yiwen, ad d-iban da.",
"status.redraft": "Kkes tɛiwdeḍ tira",
"status.remove_bookmark": "Kkes tacreḍt",
+ "status.replied_in_thread": "Y·t·erra-d deg usqerdec",
"status.replied_to": "Y·terra-yas i {name}",
"status.reply": "Err",
- "status.replyAll": "Err i lxiḍ",
+ "status.replyAll": "Err i wesqerdec",
"status.report": "Cetki ɣef @{name}",
"status.sensitive_warning": "Agbur amḥulfu",
"status.share": "Bḍu",
diff --git a/app/javascript/mastodon/locales/ko.json b/app/javascript/mastodon/locales/ko.json
index 2054dfc0ff7ff1..e5e7dc2c17ff1e 100644
--- a/app/javascript/mastodon/locales/ko.json
+++ b/app/javascript/mastodon/locales/ko.json
@@ -317,7 +317,7 @@
"follow_suggestions.curated_suggestion": "스태프의 추천",
"follow_suggestions.dismiss": "다시 보지 않기",
"follow_suggestions.featured_longer": "{domain} 팀이 손수 고름",
- "follow_suggestions.friends_of_friends_longer": "내가 팔로우 하는 사람들 사이에서 인기",
+ "follow_suggestions.friends_of_friends_longer": "내가 팔로우한 사람들 사이에서 인기",
"follow_suggestions.hints.featured": "이 프로필은 {domain} 팀이 손수 선택했습니다.",
"follow_suggestions.hints.friends_of_friends": "이 프로필은 내가 팔로우 하는 사람들에게서 유명합니다.",
"follow_suggestions.hints.most_followed": "이 프로필은 {domain}에서 가장 많이 팔로우 된 사람들 중 하나입니다.",
diff --git a/app/javascript/mastodon/locales/nl.json b/app/javascript/mastodon/locales/nl.json
index 1c31574deaffe4..71523b37d8e73c 100644
--- a/app/javascript/mastodon/locales/nl.json
+++ b/app/javascript/mastodon/locales/nl.json
@@ -504,13 +504,13 @@
"notification.admin.report_statuses": "{name} rapporteerde {target} voor {category}",
"notification.admin.report_statuses_other": "{name} rapporteerde {target}",
"notification.admin.sign_up": "{name} heeft zich geregistreerd",
- "notification.admin.sign_up.name_and_others": "{name} en {count, plural, one {# ander} other {# anderen}} hebben zich geregistreerd",
+ "notification.admin.sign_up.name_and_others": "{name} en {count, plural, one {# ander persoon} other {# andere personen}} hebben zich geregistreerd",
"notification.favourite": "{name} markeerde jouw bericht als favoriet",
- "notification.favourite.name_and_others_with_link": "{name} en {count, plural, one {# ander} other {# anderen}} hebben jouw bericht als favoriet gemarkeerd",
+ "notification.favourite.name_and_others_with_link": "{name} en {count, plural, one {# ander persoon} other {# andere personen}} hebben jouw bericht als favoriet gemarkeerd",
"notification.follow": "{name} volgt jou nu",
- "notification.follow.name_and_others": "{name} en {count, plural, one {# ander} other {# anderen}} hebben je gevolgd",
+ "notification.follow.name_and_others": "{name} en {count, plural, one {# ander persoon} other {# andere personen}} hebben je gevolgd",
"notification.follow_request": "{name} wil jou graag volgen",
- "notification.follow_request.name_and_others": "{name} en {count, plural, one {# ander} other {# anderen}} hebben gevraagd om je te volgen",
+ "notification.follow_request.name_and_others": "{name} en {count, plural, one {# ander persoon} other {# andere personen}} hebben gevraagd om je te volgen",
"notification.label.mention": "Vermelding",
"notification.label.private_mention": "Privébericht",
"notification.label.private_reply": "Privéreactie",
@@ -528,7 +528,7 @@
"notification.own_poll": "Jouw peiling is beëindigd",
"notification.poll": "Een peiling waaraan jij hebt meegedaan is beëindigd",
"notification.reblog": "{name} boostte jouw bericht",
- "notification.reblog.name_and_others_with_link": "{name} en {count, plural, one {# ander} other {# anderen}} hebben jouw bericht geboost",
+ "notification.reblog.name_and_others_with_link": "{name} en {count, plural, one {# ander persoon} other {# andere personen}} hebben jouw bericht geboost",
"notification.relationships_severance_event": "Verloren verbindingen met {name}",
"notification.relationships_severance_event.account_suspension": "Een beheerder van {from} heeft {target} geschorst, wat betekent dat je geen updates meer van hen kunt ontvangen of met hen kunt communiceren.",
"notification.relationships_severance_event.domain_block": "Een beheerder van {from} heeft {target} geblokkeerd, inclusief {followersCount} van jouw volgers en {followingCount, plural, one {# account} other {# accounts}} die jij volgt.",
diff --git a/app/javascript/mastodon/locales/no.json b/app/javascript/mastodon/locales/no.json
index 8cd3387eaf968c..1dd5df32b8a4a5 100644
--- a/app/javascript/mastodon/locales/no.json
+++ b/app/javascript/mastodon/locales/no.json
@@ -502,6 +502,8 @@
"notification.reblog": "{name} fremhevet ditt innlegg",
"notification.status": "{name} la nettopp ut",
"notification.update": "{name} redigerte et innlegg",
+ "notification_requests.minimize_banner": "Minimer banneret for filtrerte varsler",
+ "notification_requests.view": "Vis varsler",
"notifications.clear": "Fjern varsler",
"notifications.clear_confirmation": "Er du sikker på at du vil fjerne alle dine varsler permanent?",
"notifications.column_settings.admin.report": "Nye rapporter:",
diff --git a/app/javascript/mastodon/locales/pt-BR.json b/app/javascript/mastodon/locales/pt-BR.json
index d1a3ecdaa73aff..ab5701cde0c0a7 100644
--- a/app/javascript/mastodon/locales/pt-BR.json
+++ b/app/javascript/mastodon/locales/pt-BR.json
@@ -437,6 +437,7 @@
"lightbox.next": "Próximo",
"lightbox.previous": "Anterior",
"lightbox.zoom_in": "Voltar para o tamanho real",
+ "lightbox.zoom_out": "Zoom para ajustar",
"limited_account_hint.action": "Exibir perfil mesmo assim",
"limited_account_hint.title": "Este perfil foi ocultado pelos moderadores do {domain}.",
"link_preview.author": "Por {name}",
@@ -813,7 +814,7 @@
"status.reblogs.empty": "Nada aqui. Quando alguém der boost, o usuário aparecerá aqui.",
"status.redraft": "Excluir e rascunhar",
"status.remove_bookmark": "Remover do Salvos",
- "status.replied_in_thread": "Respondido na discussão",
+ "status.replied_in_thread": "Respondido na conversa",
"status.replied_to": "Em resposta a {name}",
"status.reply": "Responder",
"status.replyAll": "Responder a conversa",
@@ -851,6 +852,11 @@
"upload_error.poll": "Mídias não podem ser anexadas em toots com enquetes.",
"upload_form.audio_description": "Descrever para deficientes auditivos",
"upload_form.description": "Descrever para deficientes visuais",
+ "upload_form.drag_and_drop.instructions": "Para pegar um anexo de mídia, pressione espaço ou enter. Enquanto arrastar, use as setas do teclado para mover o anexo de mídia em qualquer direção. Pressione espaço ou insira novamente para soltar o anexo de mídia em sua nova posição, ou pressione escape para cancelar.",
+ "upload_form.drag_and_drop.on_drag_cancel": "O arrastamento foi cancelado. O anexo da mídia {item} foi descartado.",
+ "upload_form.drag_and_drop.on_drag_end": "O anexo {item} foi removido.",
+ "upload_form.drag_and_drop.on_drag_over": "O anexo de mídia {item} foi movido.",
+ "upload_form.drag_and_drop.on_drag_start": "Foi coletado o anexo de mídia {item}.",
"upload_form.edit": "Editar",
"upload_form.thumbnail": "Alterar miniatura",
"upload_form.video_description": "Descrever para deficientes auditivos ou visuais",
diff --git a/app/javascript/mastodon/locales/sc.json b/app/javascript/mastodon/locales/sc.json
index bb7d062b95e31b..227a7483a72ae4 100644
--- a/app/javascript/mastodon/locales/sc.json
+++ b/app/javascript/mastodon/locales/sc.json
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Màssimu de rechestas barigadu",
"alert.unexpected.message": "Ddoe est istada una faddina.",
"alert.unexpected.title": "Oh!",
+ "alt_text_badge.title": "Testu alternativu",
"announcement.announcement": "Annùntziu",
"attachments_list.unprocessed": "(non protzessadu)",
"audio.hide": "Cua s'àudio",
@@ -97,6 +98,8 @@
"block_modal.title": "Boles blocare s'utente?",
"block_modal.you_wont_see_mentions": "No as a bìdere is publicatziones chi mèntovent custa persone.",
"boost_modal.combo": "Podes incarcare {combo} pro brincare custu sa borta chi benit",
+ "boost_modal.reblog": "Boles potentziare sa publicatzione?",
+ "boost_modal.undo_reblog": "Boles tzessare de potentziare sa publicatzione?",
"bundle_column_error.copy_stacktrace": "Còpia s'informe de faddina",
"bundle_column_error.error.body": "Sa pàgina pedida non faghiat a dda renderizare. Diat pòdere èssere pro neghe de una faddina in su còdighe nostru, o de unu problema de cumpatibilidade de su navigadore.",
"bundle_column_error.error.title": "Oh, no!",
@@ -104,11 +107,15 @@
"bundle_column_error.network.title": "Faddina de connessione",
"bundle_column_error.retry": "Torra·bi a proare",
"bundle_column_error.return": "Torra a sa pàgina printzipale",
+ "bundle_column_error.routing.body": "Impossìbile agatare sa pàgina rechesta. Seguru chi s'URL in sa barra de indiritzos est curretu?",
"bundle_column_error.routing.title": "404",
"bundle_modal_error.close": "Serra",
"bundle_modal_error.message": "Faddina in su carrigamentu de custu cumponente.",
"bundle_modal_error.retry": "Torra·bi a proare",
+ "closed_registrations.other_server_instructions": "Dae chi Mastodon est detzentralizadu, podes creare unu contu in un'àteru serbidore e interagire cun custu.",
+ "closed_registrations_modal.description": "Sa creatzione de contos in {domain} no est possìbile in custu momentu, però tene in cunsideru chi non tenes bisòngiu de unu contu ispetzìficu in {domain} pro impreare Mastodon.",
"closed_registrations_modal.find_another_server": "Agata un'àteru serbidore",
+ "closed_registrations_modal.title": "Su registru a Mastodon",
"column.about": "Informatziones",
"column.blocks": "Persones blocadas",
"column.bookmarks": "Sinnalibros",
@@ -142,6 +149,7 @@
"compose.published.open": "Aberi",
"compose.saved.body": "Publicatzione sarvada.",
"compose_form.direct_message_warning_learn_more": "Àteras informatziones",
+ "compose_form.encryption_warning": "Is publicatziones a Mastodon no sunt critografados a nodu terminale. Non cumpartzas informatziones delicadas in Mastodon.",
"compose_form.hashtag_warning": "Custa publicatzione no at a èssere ammustrada in peruna eticheta, dae chi no est pùblica. Isceti is publicatziones pùblicas podent èssere chircadas cun etichetas.",
"compose_form.lock_disclaimer": "Su contu tuo no est {locked}. Cale si siat persone ti podet sighire pro bìdere is messàgios tuos chi imbies a sa gente chi ti sighit.",
"compose_form.lock_disclaimer.lock": "blocadu",
@@ -171,15 +179,23 @@
"confirmations.discard_edit_media.confirm": "Iscarta",
"confirmations.discard_edit_media.message": "Tenes modìficas non sarvadas a is descritziones o a is anteprimas de is cuntenutos, ddas boles iscartare su matessi?",
"confirmations.edit.confirm": "Modìfica",
+ "confirmations.edit.message": "Modifichende immoe as a subrascrìere su messàgiu chi ses iscriende. Seguru chi boles sighire?",
+ "confirmations.edit.title": "Boles subraiscrìere sa publicatzione?",
"confirmations.logout.confirm": "Essi·nche",
"confirmations.logout.message": "Seguru chi boles essire?",
+ "confirmations.logout.title": "Boles serrare sa sessione?",
"confirmations.mute.confirm": "A sa muda",
"confirmations.redraft.confirm": "Cantzella e torra a fàghere",
"confirmations.redraft.message": "Seguru chi boles cantzellare e torrare a fàghere custa publicatzione? As a pèrdere is preferidos e is cumpartziduras, e is rispostas a su messàgiu originale ant a abarrare òrfanas.",
+ "confirmations.redraft.title": "Boles cantzellare e torrare a iscrìere sa publicatzione?",
"confirmations.reply.confirm": "Risponde",
"confirmations.reply.message": "Rispondende immoe as a subrascrìere su messàgiu chi ses iscriende. Seguru chi boles sighire?",
+ "confirmations.reply.title": "Boles subraiscrìere sa publicatzione?",
"confirmations.unfollow.confirm": "Non sigas prus",
"confirmations.unfollow.message": "Seguru chi non boles sighire prus a {name}?",
+ "confirmations.unfollow.title": "Boles tzessare de sighire s'utente?",
+ "content_warning.hide": "Cua sa publicatzione",
+ "content_warning.show": "Ammustra·dda su pròpiu",
"conversation.delete": "Cantzella arresonada",
"conversation.mark_as_read": "Signala comente lèghidu",
"conversation.open": "Ammustra arresonada",
@@ -193,7 +209,10 @@
"directory.recently_active": "Cun atividade dae pagu",
"disabled_account_banner.account_settings": "Cunfiguratziones de su contu",
"disabled_account_banner.text": "Su contu tuo {disabledAccount} no est ativu.",
+ "dismissable_banner.community_timeline": "Custas sunt is publicatziones pùblicas prus reghentes dae gente cun contu in {domain}.",
"dismissable_banner.dismiss": "Iscarta",
+ "dismissable_banner.explore_links": "Custas sunt is istòrias de noas prus cumpartzidas in sa rete oe. Is istòrias prus noas publicadas dae gente prus diversa ant a èssere priorizadas.",
+ "dismissable_banner.explore_statuses": "Custas sunt publicatziones dae sa rete detzentralizada chi sunt retzende atentzione oe. Is publicatziones prus noas cun prus cumpartziduras e preferèntzias ant a èssere priorizadas.",
"domain_block_modal.block": "Bloca su serbidore",
"domain_block_modal.block_account_instead": "Bloca imbetzes a @{name}",
"domain_block_modal.they_can_interact_with_old_posts": "Is persones de custu serbidore podent ancora interagire cun is publicatziones betzas tuas.",
@@ -207,6 +226,7 @@
"domain_pill.their_handle": "S'identificadore suo:",
"domain_pill.their_server": "Sa domo digitale sua, in ue istant totu is publicatziones suas.",
"domain_pill.username": "Nòmine de utente",
+ "domain_pill.whats_in_a_handle": "Ite est un'identificadore?",
"domain_pill.your_handle": "S'identificadore tuo:",
"domain_pill.your_server": "Sa domo digitale tua, in ue istant totu is publicatziones tuas. Custa non t'agradat? Tràmuda serbidore in cale si siat momentu e bati·ti fintzas in fatu is sighidores tuos.",
"domain_pill.your_username": "S'identificadore ùnicu tuo in custu serbidore. Si podent agatare utentes cun su matessi nòmine de utente in àteros serbidores.",
@@ -254,6 +274,7 @@
"explore.trending_links": "Noas",
"explore.trending_statuses": "Publicatziones",
"explore.trending_tags": "Etichetas",
+ "filter_modal.added.context_mismatch_title": "Su cuntestu non currispondet.",
"filter_modal.added.expired_title": "Filtru iscadidu.",
"filter_modal.added.review_and_configure_title": "Cunfiguratziones de filtru",
"filter_modal.added.settings_link": "pàgina de cunfiguratzione",
@@ -277,7 +298,13 @@
"follow_suggestions.featured_longer": "Seberadu a manu dae s'iscuadra de {domain}",
"follow_suggestions.friends_of_friends_longer": "Populare intre persones chi sighis",
"follow_suggestions.hints.featured": "Custu profilu est istadu seberadu a manu dae s'iscuadra {domain}.",
+ "follow_suggestions.personalized_suggestion": "Cussìgiu personalizadu",
+ "follow_suggestions.popular_suggestion": "Cussìgiu populare",
+ "follow_suggestions.popular_suggestion_longer": "Populare a {domain}",
+ "follow_suggestions.similar_to_recently_followed_longer": "Profilos sìmiles a is chi as sighidu de reghente",
"follow_suggestions.view_all": "Ammustra totu",
+ "follow_suggestions.who_to_follow": "Chie sighire",
+ "followed_tags": "Etichetas sighidas",
"footer.about": "Informatziones",
"footer.directory": "Diretòriu de profilos",
"footer.get_app": "Otene s'aplicatzione",
@@ -302,6 +329,11 @@
"hashtag.counter_by_uses_today": "{count, plural, one {{counter} publicatzione} other {{counter} publicatziones}} oe",
"hashtag.follow": "Sighi su hashtag",
"hashtag.unfollow": "Non sigas prus s'eticheta",
+ "hashtags.and_other": "… e {count, plural, one {un'àteru} other {àteros #}}",
+ "hints.profiles.posts_may_be_missing": "Podet èssere chi ammanchent tzertas publicatziones de custu profilu.",
+ "hints.profiles.see_more_posts": "Bide prus publicatziones a {domain}",
+ "hints.threads.replies_may_be_missing": "Podet èssere chi ammanchent rispostas dae àteros serbidores.",
+ "hints.threads.see_more": "Bide prus rispostas a {domain}",
"home.column_settings.show_reblogs": "Ammustra is cumpartziduras",
"home.column_settings.show_replies": "Ammustra rispostas",
"home.hide_announcements": "Cua annùntzios",
@@ -309,7 +341,14 @@
"home.pending_critical_update.link": "Ammustra is atualizatziones",
"home.pending_critical_update.title": "Atualizatzione de seguresa crìtica a disponimentu.",
"home.show_announcements": "Ammustra annùntzios",
+ "ignore_notifications_modal.disclaimer": "Mastodon non podet informare is utentes chi as innioradu is notìficas issoro. Inniorare notìficas no at a evitare chi s'imbient is messàgios.",
+ "ignore_notifications_modal.filter_instead": "Opuru filtra",
+ "ignore_notifications_modal.filter_to_act_users": "As a pòdere ancora atzetare, refudare o sinnalare a utentes",
+ "ignore_notifications_modal.filter_to_avoid_confusion": "Filtrare agiudat a evitare possìbiles confusiones",
"interaction_modal.description.reply": "Podes rispòndere a custa publicatzione cun unu contu de Mastodon.",
+ "interaction_modal.login.action": "Torra a sa pàgina printzipale",
+ "interaction_modal.login.prompt": "Su domìniu de su serbidore domèsticu tuo, pro esempru mastodon.social",
+ "interaction_modal.no_account_yet": "Non ses in Mastodon?",
"interaction_modal.on_this_server": "In custu serbidore",
"interaction_modal.title.follow": "Sighi a {name}",
"interaction_modal.title.reply": "Risponde a sa publicatzione de {name}",
@@ -353,11 +392,13 @@
"lightbox.next": "Imbeniente",
"lightbox.previous": "Pretzedente",
"limited_account_hint.title": "Custu profilu est istadu cuadu dae sa moderatzione de {domain}.",
+ "link_preview.shares": "{count, plural, one {{counter} publicatzione} other {{counter} publicatziones}}",
"lists.account.add": "Agiunghe a sa lista",
"lists.account.remove": "Boga dae sa lista",
"lists.delete": "Cantzella sa lista",
"lists.edit": "Modìfica sa lista",
"lists.edit.submit": "Muda su tìtulu",
+ "lists.exclusive": "Cua custas publicatziones dae sa pàgina printzipale",
"lists.new.create": "Agiunghe lista",
"lists.new.title_placeholder": "Tìtulu de sa lista noa",
"lists.replies_policy.followed": "Cale si siat persone chi sighis",
@@ -368,7 +409,20 @@
"lists.subheading": "Is listas tuas",
"load_pending": "{count, plural, one {# elementu nou} other {# elementos noos}}",
"loading_indicator.label": "Carrighende…",
+ "media_gallery.hide": "Cua",
+ "moved_to_account_banner.text": "Su contu tuo {disabledAccount} est disativadu in custu momentu ca est istadu tramudadu a {movedToAccount}.",
+ "mute_modal.hide_from_notifications": "Cua dae is notìficas",
+ "mute_modal.hide_options": "Cua is optziones",
+ "mute_modal.indefinite": "Fintzas a cando no apo a torrare a ativare is notìficas",
+ "mute_modal.show_options": "Ammustra is optziones",
+ "mute_modal.they_can_mention_and_follow": "Ti podent mentovare e sighire, però no ddos as a bìdere.",
+ "mute_modal.they_wont_know": "No ant a ischire chi ddos as postu a sa muda.",
+ "mute_modal.title": "Boles pònnere a custu contu a sa muda?",
+ "mute_modal.you_wont_see_mentions": "No as a bìdere is publicatziones chi mèntovent a custa persone.",
+ "mute_modal.you_wont_see_posts": "At a pòdere bìdere is publicatziones tuas, però tue no as a bìdere cussas suas.",
"navigation_bar.about": "Informatziones",
+ "navigation_bar.administration": "Amministratzione",
+ "navigation_bar.advanced_interface": "Aberi s'interfache web avantzada",
"navigation_bar.blocks": "Persones blocadas",
"navigation_bar.bookmarks": "Sinnalibros",
"navigation_bar.community_timeline": "Lìnia de tempus locale",
@@ -380,10 +434,13 @@
"navigation_bar.favourites": "Preferidos",
"navigation_bar.filters": "Faeddos a sa muda",
"navigation_bar.follow_requests": "Rechestas de sighidura",
+ "navigation_bar.followed_tags": "Etichetas sighidas",
"navigation_bar.follows_and_followers": "Gente chi sighis e sighiduras",
"navigation_bar.lists": "Listas",
"navigation_bar.logout": "Essi",
+ "navigation_bar.moderation": "Moderatzione",
"navigation_bar.mutes": "Persones a sa muda",
+ "navigation_bar.opened_in_classic_interface": "Publicatziones, contos e àteras pàginas ispetzìficas sunt abertas in manera predefinida in s'interfache web clàssica.",
"navigation_bar.personal": "Informatziones personales",
"navigation_bar.pins": "Publicatziones apicadas",
"navigation_bar.preferences": "Preferèntzias",
@@ -391,10 +448,24 @@
"navigation_bar.search": "Chirca",
"navigation_bar.security": "Seguresa",
"not_signed_in_indicator.not_signed_in": "Ti depes identificare pro atzèdere a custa resursa.",
+ "notification.admin.report": "{name} at sinnaladu a {target}",
+ "notification.admin.report_account": "{name} at sinnaladu {count, plural, one {una publicatzione} other {# publicatziones}} dae {target} pro {category}",
+ "notification.admin.report_account_other": "{name} at sinnaladu {count, plural, one {una publicatzione} other {# publicatziones}} dae {target}",
+ "notification.admin.report_statuses": "{name} at sinnaladu a {target} pro {category}",
+ "notification.admin.report_statuses_other": "{name} at sinnaladu a {target}",
"notification.admin.sign_up": "{name} at aderidu",
+ "notification.admin.sign_up.name_and_others": "{name} e {count, plural, one {un'àtera persone} other {àteras # persones}} si sunt registradas",
"notification.favourite": "{name} at marcadu comente a preferidu s'istadu tuo",
+ "notification.favourite.name_and_others_with_link": "{name} e {count, plural, one {un'àtera persone} other {àteras # persones}} ant marcadu sa publicatzione tua comente preferida",
"notification.follow": "{name} ti sighit",
+ "notification.follow.name_and_others": "{name} e {count, plural, one {un'àtera persone} other {àteras # persones}} ti sighint",
"notification.follow_request": "{name} at dimandadu de ti sighire",
+ "notification.follow_request.name_and_others": "{name} e {count, plural, one {un'àtera persone} other {àteras # persones}} ant pedidu de ti sighire",
+ "notification.label.mention": "Mèntovu",
+ "notification.label.private_mention": "Mèntovu privadu",
+ "notification.label.private_reply": "Risposta privada",
+ "notification.label.reply": "Risposta",
+ "notification.mention": "Mèntovu",
"notification.moderation-warning.learn_more": "Àteras informatziones",
"notification.moderation_warning": "T'ant imbiadu un'avisu de moderatzione",
"notification.moderation_warning.action_delete_statuses": "Unas cantas de is publicatziones tuas sunt istadas cantzelladas.",
@@ -407,12 +478,30 @@
"notification.own_poll": "Sondàgiu acabbadu",
"notification.poll": "Unu sondàgiu in su chi as votadu est acabbadu",
"notification.reblog": "{name} at cumpartzidu sa publicatzione tua",
+ "notification.reblog.name_and_others_with_link": "{name} e {count, plural, one {un'àtera persone} other {àteras # persones}} ant potentziadu sa publicatzione tua",
"notification.relationships_severance_event": "Connessiones pèrdidas cun {name}",
+ "notification.relationships_severance_event.account_suspension": "S'amministratzione de {from} at suspèndidu a {target}; custu bolet nàrrere chi non podes prus retzire atualizatziones dae in cue o interagire cun cussos contos.",
+ "notification.relationships_severance_event.domain_block": "S'amministratzione de {from} at blocadu a {target}, incluende {followersCount} sighiduras tuas e {followingCount, plural, one {un'àteru contu} other {àteros # contos}} chi sighis.",
"notification.relationships_severance_event.learn_more": "Àteras informatziones",
+ "notification.relationships_severance_event.user_domain_block": "As blocadu a {target}, bogadu a {followersCount} contos chi ti sighint e {followingCount, plural, one {un'àteru contu} other {àteros # contos}} chi sighis.",
"notification.status": "{name} at publicadu cosa",
"notification.update": "{name} at modificadu una publicatzione",
"notification_requests.accept": "Atzeta",
+ "notification_requests.accept_multiple": "{count, plural, one {Atzeta una rechesta…} other {Atzeta # rechestas…}}",
+ "notification_requests.confirm_accept_multiple.button": "{count, plural, one {Atzeta sa rechesta} other {Atzeta is rechestas}}",
+ "notification_requests.confirm_accept_multiple.message": "Ses atzetende {count, plural, one {una rechesta de notìfica} other {# rechestas de notìfica}}. Seguru chi boles sighire?",
+ "notification_requests.confirm_accept_multiple.title": "Boles atzetare is rechestas de notìfica?",
+ "notification_requests.confirm_dismiss_multiple.button": "{count, plural, one {Iscarta sa rechesta} other {Iscarta is rechestas}}",
+ "notification_requests.confirm_dismiss_multiple.message": "Ses acanta de iscartare {count, plural, one {una rechesta de notìfica} other {# rechestas de notìfica}}. No nche {count, plural, one {} other {}} as a pòdere prus atzèdere in manera sèmplitze. Seguru chi boles sighire?",
+ "notification_requests.confirm_dismiss_multiple.title": "Boles iscartare is rechestas de notìfica?",
"notification_requests.dismiss": "Iscarta",
+ "notification_requests.dismiss_multiple": "{count, plural, one {Iscarta una rechesta…} other {Iscarta # rechestas…}}",
+ "notification_requests.edit_selection": "Modifica",
+ "notification_requests.exit_selection": "Fatu",
+ "notification_requests.explainer_for_limited_account": "Is notìficas de custu contu sunt istadas filtradas, ca su contu est istadu limitadu dae sa moderatzione.",
+ "notification_requests.explainer_for_limited_remote_account": "Is notìficas de custu contu sunt istadas filtradas, ca su contu o su serbidore suo est istadu limitadu dae sa moderatzione.",
+ "notification_requests.maximize": "Ismànnia",
+ "notification_requests.minimize_banner": "Mìnima su bànner de notìficas filtradas",
"notification_requests.notifications_from": "Notìficas dae {name}",
"notification_requests.title": "Notìficas filtradas",
"notifications.clear": "Lìmpia notìficas",
@@ -472,6 +561,11 @@
"poll_button.add_poll": "Agiunghe unu sondàgiu",
"poll_button.remove_poll": "Cantzella su sondàgiu",
"privacy.change": "Modìfica s'istadu de riservadesa",
+ "privacy.direct.long": "Totu is utentes mentovados in sa publicatzione",
+ "privacy.direct.short": "Persones ispetzìficas",
+ "privacy.private.long": "Isceti chie ti sighit",
+ "privacy.private.short": "Sighiduras",
+ "privacy.public.long": "Cale si siat persone a intro o a foras de Mastodon",
"privacy.public.short": "Pùblicu",
"privacy_policy.last_updated": "Ùrtima atualizatzione: {date}",
"privacy_policy.title": "Polìtica de riservadesa",
@@ -497,34 +591,64 @@
"report.categories.legal": "Giurìdicu",
"report.categories.other": "Àteru",
"report.categories.spam": "Àliga",
+ "report.category.subtitle": "Sèbera sa currispondèntzia prus arta",
+ "report.category.title": "Nara·nos ite sutzedet cun custu {type}",
"report.category.title_account": "profilu",
"report.category.title_status": "publicatzione",
"report.close": "Fatu",
+ "report.comment.title": "Nch'at àteru chi depamus ischire?",
"report.forward": "Torra a imbiare a {target}",
"report.forward_hint": "Custu contu est de un'àteru serbidore. Ddi boles imbiare puru una còpia anònima de custu informe?",
"report.mute": "A sa muda",
+ "report.mute_explanation": "No as a bìdere is publicatziones suas. Ti podet ancora sighire e bìdere is publicatziones, ma no at a ischire chi dd'as postu a sa muda.",
"report.next": "Imbeniente",
"report.placeholder": "Cummentos additzionales",
"report.reasons.dislike": "Non mi praghet",
"report.reasons.dislike_description": "Est una cosa chi non boles bìdere",
"report.reasons.legal": "Illegale",
"report.reasons.other": "Un'àtera cosa",
+ "report.reasons.other_description": "Su problema non currispondet a is àteras categorias",
"report.reasons.spam": "Est àliga",
+ "report.rules.subtitle": "Seletziona totu is chi àplichent",
+ "report.statuses.subtitle": "Seletziona totu is chi àplichent",
"report.submit": "Imbia",
"report.target": "Informende de {target}",
+ "report.thanks.title": "Non boles bìdere custu?",
+ "report.thanks.title_actionable": "Gràtzias de sa sinnalatzione, dd'amus a averiguare.",
"report.unfollow": "Non sigas prus a @{name}",
+ "report.unfollow_explanation": "Ses sighende custu contu. Si non boles bìdere is publicatziones suas in sa pàgina printzipale tua, no ddu sigas prus.",
"report_notification.attached_statuses": "{count, plural, one {# post} other {# posts}} attached",
"report_notification.categories.legal": "Giurìdicu",
"report_notification.categories.legal_sentence": "cuntenutu illegale",
"report_notification.categories.other": "Àteru",
"report_notification.categories.other_sentence": "àteru",
"report_notification.categories.spam": "Àliga",
+ "report_notification.categories.spam_sentence": "àliga",
+ "report_notification.open": "Aberi una sinnalatzione",
+ "search.no_recent_searches": "Nissuna chirca reghente",
"search.placeholder": "Chirca",
+ "search.quick_action.account_search": "Profilos chi currispondent cun {x}",
+ "search.quick_action.go_to_account": "Bae a su profilu {x}",
+ "search.quick_action.go_to_hashtag": "Bae a s'eticheta {x}",
+ "search.quick_action.open_url": "Aberi s'URL in Mastodon",
+ "search.quick_action.status_search": "Publicatziones chi currispondent cun {x}",
+ "search.search_or_paste": "Chirca o incolla un'URL",
+ "search_popout.full_text_search_disabled_message": "No a disponimentu a {domain}.",
+ "search_popout.full_text_search_logged_out_message": "Isceti a disponimentu cun sa sessione aberta.",
+ "search_popout.language_code": "Còdighe de limba ISO",
+ "search_popout.options": "Optziones de chirca",
+ "search_popout.quick_actions": "Atziones lestras",
+ "search_popout.recent": "Chircas reghentes",
+ "search_popout.specific_date": "data ispetzìfica",
"search_popout.user": "utente",
"search_results.accounts": "Profilos",
"search_results.all": "Totus",
"search_results.hashtags": "Etichetas",
+ "search_results.nothing_found": "Impossìbile agatare currispondèntzias pro custos tèrmines de chirca",
+ "search_results.see_all": "Bide totu",
"search_results.statuses": "Publicatziones",
+ "search_results.title": "Chirca {q}",
+ "server_banner.about_active_users": "Gente chi at impreadu custu serbidore is ùrtimas 30 dies (Utentes cun Atividade a su Mese)",
"server_banner.active_users": "utentes ativos",
"server_banner.administered_by": "Amministradu dae:",
"server_banner.server_stats": "Istatìsticas de su serbidore:",
diff --git a/app/javascript/mastodon/locales/sk.json b/app/javascript/mastodon/locales/sk.json
index ddf341584c0d85..da3b1eaefd5b32 100644
--- a/app/javascript/mastodon/locales/sk.json
+++ b/app/javascript/mastodon/locales/sk.json
@@ -33,7 +33,7 @@
"account.follow": "Sledovať",
"account.follow_back": "Sledovať späť",
"account.followers": "Sledovatelia",
- "account.followers.empty": "Tento účet ešte nikto nesleduje.",
+ "account.followers.empty": "Ešte nikto nesleduje tohto užívateľa.",
"account.followers_counter": "{count, plural, one {{counter} sledujúci} other {{counter} sledujúci}}",
"account.following": "Sledovaný účet",
"account.following_counter": "{count, plural, one {{counter} sledovaných} other {{counter} sledovaných}}",
@@ -85,6 +85,7 @@
"alert.rate_limited.title": "Priveľa žiadostí",
"alert.unexpected.message": "Vyskytla sa nečakaná chyba.",
"alert.unexpected.title": "Ups!",
+ "alt_text_badge.title": "Alternatívny popis",
"announcement.announcement": "Oznámenie",
"attachments_list.unprocessed": "(nespracované)",
"audio.hide": "Skryť zvuk",
diff --git a/app/javascript/mastodon/locales/sq.json b/app/javascript/mastodon/locales/sq.json
index 084ac9945fae18..15101be4718b3f 100644
--- a/app/javascript/mastodon/locales/sq.json
+++ b/app/javascript/mastodon/locales/sq.json
@@ -852,6 +852,11 @@
"upload_error.poll": "Me pyetësorët s’lejohet ngarkim kartelash.",
"upload_form.audio_description": "Përshkruajeni për persona me dëgjim të kufizuar",
"upload_form.description": "Përshkruajeni për persona me probleme shikimi",
+ "upload_form.drag_and_drop.instructions": "Që të merrni një bashkëngjitje media, shtypni tastin Space ose Enter. Teksa bëhet tërheqje, përdorni tastet shigjetë për ta shpënë bashkëngjitjen media në cilëndo drejtori që doni. Shtypni sërish Space ose Enter që të lihet bashkëngjitja media në pozicionin e vet të ri, ose shtypni Esc, që të anulohet veprimi.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Tërheqja u anulua. Bashkëngjitja media {item} u la.",
+ "upload_form.drag_and_drop.on_drag_end": "Bashkëngjitja media {item} u la.",
+ "upload_form.drag_and_drop.on_drag_over": "Bashkëngjitja media {item} u lëviz.",
+ "upload_form.drag_and_drop.on_drag_start": "U mor bashkëngjitja media {item}.",
"upload_form.edit": "Përpunoni",
"upload_form.thumbnail": "Ndryshoni miniaturën",
"upload_form.video_description": "Përshkruajeni për persona me dëgjim të kufizuar ose probleme shikimi",
diff --git a/app/javascript/mastodon/locales/tr.json b/app/javascript/mastodon/locales/tr.json
index 6feae5d137d8ef..36c0b68f00c075 100644
--- a/app/javascript/mastodon/locales/tr.json
+++ b/app/javascript/mastodon/locales/tr.json
@@ -124,7 +124,7 @@
"column.direct": "Özel değinmeler",
"column.directory": "Profillere göz at",
"column.domain_blocks": "Engellenen alan adları",
- "column.favourites": "Favorilerin",
+ "column.favourites": "Gözdelerin",
"column.firehose": "Anlık Akışlar",
"column.follow_requests": "Takip istekleri",
"column.home": "Anasayfa",
@@ -812,7 +812,7 @@
"status.reblogged_by": "{name} yeniden paylaştı",
"status.reblogs": "{count, plural, one {yeniden paylaşım} other {yeniden paylaşım}}",
"status.reblogs.empty": "Henüz hiç kimse bu gönderiyi yeniden paylaşmadı. Herhangi bir kullanıcı yeniden paylaştığında burada görüntülenecek.",
- "status.redraft": "Sil,Düzenle ve Yeniden paylaş",
+ "status.redraft": "Sil,Düzenle ve yeniden-paylaş",
"status.remove_bookmark": "Yer işaretini kaldır",
"status.replied_in_thread": "Akışta yanıtlandı",
"status.replied_to": "{name} kullanıcısına yanıt verdi",
@@ -852,6 +852,11 @@
"upload_error.poll": "Anketlerde dosya yüklemesine izin verilmez.",
"upload_form.audio_description": "İşitme kaybı olan kişiler için yazı ekleyiniz",
"upload_form.description": "Görme engelliler için açıklama",
+ "upload_form.drag_and_drop.instructions": "Bir medya eklentisini taşımak için, boşluk veya enter tuşuna basın. Sürükleme sırasında medya eklentisini herhangi bir yöne hareket ettirmek için ok tuşlarını kullanın. Medya eklentisini yeni konumuna bırakmak için tekrar boşluk veya enter tuşuna basın veya işlemi iptal etmek için escape tuşuna basın.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Sürükleme iptal edildi. Medya eklentisi {item} bırakıldı.",
+ "upload_form.drag_and_drop.on_drag_end": "Medya eklentisi {item} bırakıldı.",
+ "upload_form.drag_and_drop.on_drag_over": "Medya eklentisi {item} hareket ettirildi.",
+ "upload_form.drag_and_drop.on_drag_start": "Medya eklentisi {item} tutuldu.",
"upload_form.edit": "Düzenle",
"upload_form.thumbnail": "Küçük resmi değiştir",
"upload_form.video_description": "İşitme kaybı veya görme engeli olan kişiler için açıklama ekleyiniz",
diff --git a/app/javascript/mastodon/locales/uk.json b/app/javascript/mastodon/locales/uk.json
index 1753d0bebe44df..a48b071f54f481 100644
--- a/app/javascript/mastodon/locales/uk.json
+++ b/app/javascript/mastodon/locales/uk.json
@@ -852,6 +852,11 @@
"upload_error.poll": "Не можна завантажувати файли до опитувань.",
"upload_form.audio_description": "Опишіть для людей із вадами слуху",
"upload_form.description": "Опишіть для людей з вадами зору",
+ "upload_form.drag_and_drop.instructions": "Щоб вибрати медіавкладення, натисніть пробіл або Enter. Під час перетягування, використайте клавіші зі стрілками для переміщення вкладення в будь-якому напрямку. Натисніть пробіл або Enter знову, щоб залишити медіавкладення в новому положенні, або натисніть клавішу Escape, щоб скасувати.",
+ "upload_form.drag_and_drop.on_drag_cancel": "Перетягування скасовано. Медіавкладення {item} прибрано.",
+ "upload_form.drag_and_drop.on_drag_end": "Медіавкладення {item} прибрано.",
+ "upload_form.drag_and_drop.on_drag_over": "Медіавкладення {item} переміщено.",
+ "upload_form.drag_and_drop.on_drag_start": "Медіавкладення {item} вибрано.",
"upload_form.edit": "Змінити",
"upload_form.thumbnail": "Змінити мініатюру",
"upload_form.video_description": "Опишіть для людей із вадами слуху або зору",
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index 3f45552492a2bc..f7c988e80603fb 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -520,12 +520,12 @@ export default function compose(state = initialState, action) {
.set('isUploadingThumbnail', false)
.update('media_attachments', list => list.map(item => {
if (item.get('id') === action.media.id) {
- return fromJS(action.media);
+ return fromJS(action.media).set('unattached', item.get('unattached'));
}
return item;
}));
- case INIT_MEDIA_EDIT_MODAL:
+ case INIT_MEDIA_EDIT_MODAL: {
const media = state.get('media_attachments').find(item => item.get('id') === action.id);
return state.set('media_modal', ImmutableMap({
id: action.id,
@@ -534,6 +534,7 @@ export default function compose(state = initialState, action) {
focusY: media.getIn(['meta', 'focus', 'y'], 0),
dirty: false,
}));
+ }
case COMPOSE_CHANGE_MEDIA_DESCRIPTION:
return state.setIn(['media_modal', 'description'], action.description).setIn(['media_modal', 'dirty'], true);
case COMPOSE_CHANGE_MEDIA_FOCUS:
diff --git a/app/javascript/mastodon/reducers/notification_groups.ts b/app/javascript/mastodon/reducers/notification_groups.ts
index 728019b6ad559e..6f5d2b532841ad 100644
--- a/app/javascript/mastodon/reducers/notification_groups.ts
+++ b/app/javascript/mastodon/reducers/notification_groups.ts
@@ -21,6 +21,7 @@ import {
unmountNotifications,
refreshStaleNotificationGroups,
pollRecentNotifications,
+ shouldGroupNotificationType,
} from 'mastodon/actions/notification_groups';
import {
disconnectTimeline,
@@ -205,6 +206,13 @@ function processNewNotification(
groups: NotificationGroupsState['groups'],
notification: ApiNotificationJSON,
) {
+ if (!shouldGroupNotificationType(notification.type)) {
+ notification = {
+ ...notification,
+ group_key: `ungrouped-${notification.id}`,
+ };
+ }
+
const existingGroupIndex = groups.findIndex(
(group) =>
group.type !== 'gap' && group.group_key === notification.group_key,
@@ -277,7 +285,7 @@ function processNewNotification(
groups.unshift(existingGroup);
}
} else {
- // Create a new group
+ // We have not found an existing group, create a new one
groups.unshift(createNotificationGroupFromNotificationJSON(notification));
}
}
diff --git a/app/javascript/mastodon/reducers/notifications.js b/app/javascript/mastodon/reducers/notifications.js
index 8bed97024c4e4c..818f3538b4c622 100644
--- a/app/javascript/mastodon/reducers/notifications.js
+++ b/app/javascript/mastodon/reducers/notifications.js
@@ -300,9 +300,10 @@ export default function notifications(state = initialState, action) {
return action.payload.timeline === 'home' ?
state.update(action.payload.usePendingItems ? 'pendingItems' : 'items', items => items.first() ? items.unshift(null) : items) :
state;
- case NOTIFICATIONS_MARK_AS_READ:
+ case NOTIFICATIONS_MARK_AS_READ: {
const lastNotification = state.get('items').find(item => item !== null);
return lastNotification ? recountUnread(state, lastNotification.get('id')) : state;
+ }
case NOTIFICATIONS_SET_BROWSER_SUPPORT:
return state.set('browserSupport', action.value);
case NOTIFICATIONS_SET_BROWSER_PERMISSION:
diff --git a/app/javascript/mastodon/reducers/search.js b/app/javascript/mastodon/reducers/search.js
index 2a6665bfb693a9..7de1c65c07a295 100644
--- a/app/javascript/mastodon/reducers/search.js
+++ b/app/javascript/mastodon/reducers/search.js
@@ -71,10 +71,11 @@ export default function search(state = initialState, action) {
map.set('isLoading', false);
});
case SEARCH_EXPAND_REQUEST:
- return state.set('type', action.searchType); // .set('isLoading', true); // original Mastodon bug
- case SEARCH_EXPAND_SUCCESS:
+ return state.set('type', action.searchType).set('isLoading', true);
+ case SEARCH_EXPAND_SUCCESS: {
const results = action.searchType === 'hashtags' ? ImmutableOrderedSet(fromJS(action.results.hashtags)) : action.results[action.searchType].map(item => item.id);
return state.updateIn(['results', action.searchType], list => list.union(results)).set('isLoading', false);
+ }
case SEARCH_HISTORY_UPDATE:
return state.set('recent', ImmutableOrderedSet(fromJS(action.recent)));
default:
diff --git a/app/javascript/mastodon/service_worker/web_push_locales.js b/app/javascript/mastodon/service_worker/web_push_locales.js
index 89ae20007bba39..3e39c9a4edf890 100644
--- a/app/javascript/mastodon/service_worker/web_push_locales.js
+++ b/app/javascript/mastodon/service_worker/web_push_locales.js
@@ -6,6 +6,12 @@
const fs = require('fs');
const path = require('path');
+const { defineMessages } = require('react-intl');
+
+const messages = defineMessages({
+ mentioned_you: { id: 'notification.mentioned_you', defaultMessage: '{name} mentioned you' },
+});
+
const filtered = {};
const filenames = fs.readdirSync(path.resolve(__dirname, '../locales'));
@@ -20,7 +26,7 @@ filenames.forEach(filename => {
'notification.favourite': full['notification.favourite'] || '',
'notification.follow': full['notification.follow'] || '',
'notification.follow_request': full['notification.follow_request'] || '',
- 'notification.mention': full['notification.mention'] || '',
+ 'notification.mention': full[messages.mentioned_you.id] || '',
'notification.reblog': full['notification.reblog'] || '',
'notification.poll': full['notification.poll'] || '',
'notification.status': full['notification.status'] || '',
diff --git a/app/javascript/material-icons/400-24px/breaking_news-fill.svg b/app/javascript/material-icons/400-24px/breaking_news-fill.svg
new file mode 100644
index 00000000000000..633ca48d57d6b4
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/breaking_news-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/breaking_news.svg b/app/javascript/material-icons/400-24px/breaking_news.svg
index d7dd0c12f47fec..c043f11a8b0207 100644
--- a/app/javascript/material-icons/400-24px/breaking_news.svg
+++ b/app/javascript/material-icons/400-24px/breaking_news.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/captive_portal-fill.svg b/app/javascript/material-icons/400-24px/captive_portal-fill.svg
new file mode 100644
index 00000000000000..5c0b26fb647b18
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/captive_portal-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/captive_portal.svg b/app/javascript/material-icons/400-24px/captive_portal.svg
index 1f0f09c7734912..5c0b26fb647b18 100644
--- a/app/javascript/material-icons/400-24px/captive_portal.svg
+++ b/app/javascript/material-icons/400-24px/captive_portal.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/chat_bubble-fill.svg b/app/javascript/material-icons/400-24px/chat_bubble-fill.svg
new file mode 100644
index 00000000000000..b47338a6c9c9ab
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/chat_bubble-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/chat_bubble.svg b/app/javascript/material-icons/400-24px/chat_bubble.svg
index 7d210b460865ee..05d976d242d866 100644
--- a/app/javascript/material-icons/400-24px/chat_bubble.svg
+++ b/app/javascript/material-icons/400-24px/chat_bubble.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud.svg b/app/javascript/material-icons/400-24px/cloud.svg
index d6926fb717d377..1daef53baa2118 100644
--- a/app/javascript/material-icons/400-24px/cloud.svg
+++ b/app/javascript/material-icons/400-24px/cloud.svg
@@ -1 +1 @@
-
+
diff --git a/app/javascript/material-icons/400-24px/cloud_download-fill.svg b/app/javascript/material-icons/400-24px/cloud_download-fill.svg
new file mode 100644
index 00000000000000..c55d49f7e5c0dd
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/cloud_download-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud_download.svg b/app/javascript/material-icons/400-24px/cloud_download.svg
index 2fc3717ff9e35e..8e9314800cca76 100644
--- a/app/javascript/material-icons/400-24px/cloud_download.svg
+++ b/app/javascript/material-icons/400-24px/cloud_download.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud_sync-fill.svg b/app/javascript/material-icons/400-24px/cloud_sync-fill.svg
new file mode 100644
index 00000000000000..0c648e19e4f36b
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/cloud_sync-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud_sync.svg b/app/javascript/material-icons/400-24px/cloud_sync.svg
index dbf6adc0001ada..461796e323ff9a 100644
--- a/app/javascript/material-icons/400-24px/cloud_sync.svg
+++ b/app/javascript/material-icons/400-24px/cloud_sync.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud_upload-fill.svg b/app/javascript/material-icons/400-24px/cloud_upload-fill.svg
new file mode 100644
index 00000000000000..66a7bb22d3511e
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/cloud_upload-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/cloud_upload.svg b/app/javascript/material-icons/400-24px/cloud_upload.svg
index 5e1a4b9aef684f..94968cb94713bf 100644
--- a/app/javascript/material-icons/400-24px/cloud_upload.svg
+++ b/app/javascript/material-icons/400-24px/cloud_upload.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/code-fill.svg b/app/javascript/material-icons/400-24px/code-fill.svg
new file mode 100644
index 00000000000000..8ef5c55cd48598
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/code-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/code.svg b/app/javascript/material-icons/400-24px/code.svg
index 5bdc338f7f5bc6..8ef5c55cd48598 100644
--- a/app/javascript/material-icons/400-24px/code.svg
+++ b/app/javascript/material-icons/400-24px/code.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/computer-fill.svg b/app/javascript/material-icons/400-24px/computer-fill.svg
new file mode 100644
index 00000000000000..91295d68463510
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/computer-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/computer.svg b/app/javascript/material-icons/400-24px/computer.svg
index 8c5bd9110e1d23..b8af5d46447944 100644
--- a/app/javascript/material-icons/400-24px/computer.svg
+++ b/app/javascript/material-icons/400-24px/computer.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/contact_mail-fill.svg b/app/javascript/material-icons/400-24px/contact_mail-fill.svg
new file mode 100644
index 00000000000000..c42c799955cc9a
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/contact_mail-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/contact_mail.svg b/app/javascript/material-icons/400-24px/contact_mail.svg
index 1ae26cc4d157ed..4547c48ec5b7b4 100644
--- a/app/javascript/material-icons/400-24px/contact_mail.svg
+++ b/app/javascript/material-icons/400-24px/contact_mail.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/database-fill.svg b/app/javascript/material-icons/400-24px/database-fill.svg
new file mode 100644
index 00000000000000..3520f6961446e6
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/database-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/database.svg b/app/javascript/material-icons/400-24px/database.svg
index 54ca2f4e560b2e..a3bc2bfbc24474 100644
--- a/app/javascript/material-icons/400-24px/database.svg
+++ b/app/javascript/material-icons/400-24px/database.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/diamond-fill.svg b/app/javascript/material-icons/400-24px/diamond-fill.svg
new file mode 100644
index 00000000000000..474968ad6f8cdf
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/diamond-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/diamond.svg b/app/javascript/material-icons/400-24px/diamond.svg
index 26f4814b443b95..b604492fa8bf7c 100644
--- a/app/javascript/material-icons/400-24px/diamond.svg
+++ b/app/javascript/material-icons/400-24px/diamond.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/filter_alt-fill.svg b/app/javascript/material-icons/400-24px/filter_alt-fill.svg
new file mode 100644
index 00000000000000..ec1d90bba6bbd5
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/filter_alt-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/filter_alt.svg b/app/javascript/material-icons/400-24px/filter_alt.svg
index 0294cf1da53ac0..e4af9efd5d4d67 100644
--- a/app/javascript/material-icons/400-24px/filter_alt.svg
+++ b/app/javascript/material-icons/400-24px/filter_alt.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/groups-fill.svg b/app/javascript/material-icons/400-24px/groups-fill.svg
new file mode 100644
index 00000000000000..754eb0946c291c
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/groups-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/groups.svg b/app/javascript/material-icons/400-24px/groups.svg
index 0e795eb301d89d..998ff03729bd58 100644
--- a/app/javascript/material-icons/400-24px/groups.svg
+++ b/app/javascript/material-icons/400-24px/groups.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/hide_source-fill.svg b/app/javascript/material-icons/400-24px/hide_source-fill.svg
new file mode 100644
index 00000000000000..959631bc1aa150
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/hide_source-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/hide_source.svg b/app/javascript/material-icons/400-24px/hide_source.svg
index d103ed770a5d6b..09633cef8c83b6 100644
--- a/app/javascript/material-icons/400-24px/hide_source.svg
+++ b/app/javascript/material-icons/400-24px/hide_source.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/inbox-fill.svg b/app/javascript/material-icons/400-24px/inbox-fill.svg
new file mode 100644
index 00000000000000..15ae2d8f3c4068
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/inbox-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/inbox.svg b/app/javascript/material-icons/400-24px/inbox.svg
index 427817958c169a..32c727e8104990 100644
--- a/app/javascript/material-icons/400-24px/inbox.svg
+++ b/app/javascript/material-icons/400-24px/inbox.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/list-fill.svg b/app/javascript/material-icons/400-24px/list-fill.svg
new file mode 100644
index 00000000000000..c9cbe35eb52fa9
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/list-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/list.svg b/app/javascript/material-icons/400-24px/list.svg
index 457a820ab1781b..c9cbe35eb52fa9 100644
--- a/app/javascript/material-icons/400-24px/list.svg
+++ b/app/javascript/material-icons/400-24px/list.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/mail-fill.svg b/app/javascript/material-icons/400-24px/mail-fill.svg
new file mode 100644
index 00000000000000..5e7e4a2fb246b3
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/mail-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/mail.svg b/app/javascript/material-icons/400-24px/mail.svg
index a92ea7b198a82f..15e1d12d4e1a21 100644
--- a/app/javascript/material-icons/400-24px/mail.svg
+++ b/app/javascript/material-icons/400-24px/mail.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/mood.svg b/app/javascript/material-icons/400-24px/mood.svg
index 9ea109ea9dc349..33a7d74db9eb4f 100644
--- a/app/javascript/material-icons/400-24px/mood.svg
+++ b/app/javascript/material-icons/400-24px/mood.svg
@@ -1 +1 @@
-
+
diff --git a/app/javascript/material-icons/400-24px/report-fill.svg b/app/javascript/material-icons/400-24px/report-fill.svg
new file mode 100644
index 00000000000000..50c638869d69cd
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/report-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/report.svg b/app/javascript/material-icons/400-24px/report.svg
index f281f0e1fa8f01..b08b5a1c987d5a 100644
--- a/app/javascript/material-icons/400-24px/report.svg
+++ b/app/javascript/material-icons/400-24px/report.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/safety_check-fill.svg b/app/javascript/material-icons/400-24px/safety_check-fill.svg
new file mode 100644
index 00000000000000..b38091a8ec4f2a
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/safety_check-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/safety_check.svg b/app/javascript/material-icons/400-24px/safety_check.svg
index f4eab46fb75b82..87bdba21fe3444 100644
--- a/app/javascript/material-icons/400-24px/safety_check.svg
+++ b/app/javascript/material-icons/400-24px/safety_check.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/speed-fill.svg b/app/javascript/material-icons/400-24px/speed-fill.svg
new file mode 100644
index 00000000000000..dca22ac521e3f0
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/speed-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/speed.svg b/app/javascript/material-icons/400-24px/speed.svg
index ceb855c684f8c3..0837877f42f2f8 100644
--- a/app/javascript/material-icons/400-24px/speed.svg
+++ b/app/javascript/material-icons/400-24px/speed.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/trending_up-fill.svg b/app/javascript/material-icons/400-24px/trending_up-fill.svg
new file mode 100644
index 00000000000000..cd0e368964ec68
--- /dev/null
+++ b/app/javascript/material-icons/400-24px/trending_up-fill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/app/javascript/material-icons/400-24px/trending_up.svg b/app/javascript/material-icons/400-24px/trending_up.svg
index 06f9ba20639860..cd0e368964ec68 100644
--- a/app/javascript/material-icons/400-24px/trending_up.svg
+++ b/app/javascript/material-icons/400-24px/trending_up.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss
index f257286f5307ab..63b6900bfc3c2c 100644
--- a/app/javascript/styles/mastodon/admin.scss
+++ b/app/javascript/styles/mastodon/admin.scss
@@ -226,6 +226,10 @@ $content-width: 840px;
gap: 5px;
white-space: nowrap;
+ @media screen and (max-width: $mobile-breakpoint) {
+ flex: 1 0 50%;
+ }
+
&:hover,
&:focus,
&:active {
@@ -1054,6 +1058,10 @@ a.name-tag,
}
}
+ .icon {
+ vertical-align: middle;
+ }
+
a.announcements-list__item__title {
&:hover,
&:focus,
diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss
index 1535a8f0584681..678e48fc162ead 100644
--- a/app/javascript/styles/mastodon/basics.scss
+++ b/app/javascript/styles/mastodon/basics.scss
@@ -170,6 +170,7 @@ body {
width: 100%;
height: auto;
margin-top: -120px;
+ margin-bottom: -45px;
}
}
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 0298402ad859a0..65d7204f567f5f 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -3705,6 +3705,7 @@ $ui-header-logo-wordmark-width: 99px;
overflow-y: auto;
width: 100%;
height: 100%;
+ z-index: 0;
}
.drawer__inner__mastodon {
diff --git a/app/javascript/styles/mastodon/tables.scss b/app/javascript/styles/mastodon/tables.scss
index f08b1eb250cd18..cab96e1ac3c0cc 100644
--- a/app/javascript/styles/mastodon/tables.scss
+++ b/app/javascript/styles/mastodon/tables.scss
@@ -137,6 +137,7 @@ a.table-action-link {
padding: 0 10px;
color: $darker-text-color;
font-weight: 500;
+ white-space: nowrap;
&:hover {
color: $highlight-text-color;
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index 1de75e6fc75226..16797c9ce8e8cc 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -48,6 +48,7 @@ def audience_cc
def process_status
@tags = []
@mentions = []
+ @unresolved_mentions = []
@silenced_account_ids = []
@params = {}
@raw_mention_uris = []
@@ -66,6 +67,7 @@ def process_status
end
resolve_thread(@status)
+ resolve_unresolved_mentions(@status)
fetch_replies(@status)
process_conversation! if @status.limited_visibility?
process_references!
@@ -266,6 +268,8 @@ def process_mention(tag)
return if account.nil?
@mentions << Mention.new(account: account, silent: false)
+ rescue Mastodon::UnexpectedResponseError, HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError
+ @unresolved_mentions << tag['href']
end
def process_emoji(tag)
@@ -396,6 +400,12 @@ def resolve_thread(status)
ThreadResolveWorker.perform_async(status.id, in_reply_to_uri, { 'request_id' => @options[:request_id] })
end
+ def resolve_unresolved_mentions(status)
+ @unresolved_mentions.uniq.each do |uri|
+ MentionResolveWorker.perform_in(rand(30...600).seconds, status.id, uri, { 'request_id' => @options[:request_id] })
+ end
+ end
+
def fetch_replies(status)
collection = @object['replies']
return if collection.blank?
diff --git a/app/lib/vacuum/imports_vacuum.rb b/app/lib/vacuum/imports_vacuum.rb
index 700bd81847f4ac..b67865194f39a9 100644
--- a/app/lib/vacuum/imports_vacuum.rb
+++ b/app/lib/vacuum/imports_vacuum.rb
@@ -9,10 +9,10 @@ def perform
private
def clean_unconfirmed_imports!
- BulkImport.state_unconfirmed.where(created_at: ..10.minutes.ago).reorder(nil).in_batches.delete_all
+ BulkImport.state_unconfirmed.where(created_at: ..10.minutes.ago).in_batches.delete_all
end
def clean_old_imports!
- BulkImport.where(created_at: ..1.week.ago).reorder(nil).in_batches.delete_all
+ BulkImport.where(created_at: ..1.week.ago).in_batches.delete_all
end
end
diff --git a/app/lib/web_push_request.rb b/app/lib/web_push_request.rb
new file mode 100644
index 00000000000000..a43e22480e12a2
--- /dev/null
+++ b/app/lib/web_push_request.rb
@@ -0,0 +1,72 @@
+# frozen_string_literal: true
+
+class WebPushRequest
+ SIGNATURE_ALGORITHM = 'p256ecdsa'
+ AUTH_HEADER = 'WebPush'
+ PAYLOAD_EXPIRATION = 24.hours
+ JWT_ALGORITHM = 'ES256'
+ JWT_TYPE = 'JWT'
+
+ attr_reader :web_push_subscription
+
+ delegate(
+ :endpoint,
+ :key_auth,
+ :key_p256dh,
+ to: :web_push_subscription
+ )
+
+ def initialize(web_push_subscription)
+ @web_push_subscription = web_push_subscription
+ end
+
+ def audience
+ @audience ||= Addressable::URI.parse(endpoint).normalized_site
+ end
+
+ def authorization_header
+ [AUTH_HEADER, encoded_json_web_token].join(' ')
+ end
+
+ def crypto_key_header
+ [SIGNATURE_ALGORITHM, vapid_key.public_key_for_push_header].join('=')
+ end
+
+ def encrypt(payload)
+ Webpush::Encryption.encrypt(payload, key_p256dh, key_auth)
+ end
+
+ private
+
+ def encoded_json_web_token
+ JWT.encode(
+ web_token_payload,
+ vapid_key.curve,
+ JWT_ALGORITHM,
+ typ: JWT_TYPE
+ )
+ end
+
+ def web_token_payload
+ {
+ aud: audience,
+ exp: PAYLOAD_EXPIRATION.from_now.to_i,
+ sub: payload_subject,
+ }
+ end
+
+ def payload_subject
+ [:mailto, contact_email].join(':')
+ end
+
+ def vapid_key
+ @vapid_key ||= Webpush::VapidKey.from_keys(
+ Rails.configuration.x.vapid_public_key,
+ Rails.configuration.x.vapid_private_key
+ )
+ end
+
+ def contact_email
+ @contact_email ||= ::Setting.site_contact_email
+ end
+end
diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb
index 4c374f5d57fde1..a20992dcb56f19 100644
--- a/app/mailers/notification_mailer.rb
+++ b/app/mailers/notification_mailer.rb
@@ -86,7 +86,7 @@ def set_list_headers!
end
def thread_by_conversation!
- return if @status.conversation.nil?
+ return if @status&.conversation.nil?
conversation_message_id = ""
diff --git a/app/models/account_filter.rb b/app/models/account_filter.rb
index 5edaa2e5b8b671..763ed3e46f892b 100644
--- a/app/models/account_filter.rb
+++ b/app/models/account_filter.rb
@@ -21,7 +21,7 @@ def initialize(params)
end
def results
- scope = Account.includes(:account_stat, user: [:ips, :invite_request]).without_instance_actor.reorder(nil)
+ scope = Account.includes(:account_stat, user: [:ips, :invite_request]).without_instance_actor
relevant_params.each do |key, value|
next if key.to_s == 'page'
diff --git a/app/models/admin/tag_filter.rb b/app/models/admin/tag_filter.rb
index 6149c52175884b..5e75757b2374a7 100644
--- a/app/models/admin/tag_filter.rb
+++ b/app/models/admin/tag_filter.rb
@@ -14,7 +14,7 @@ def initialize(params)
end
def results
- scope = Tag.reorder(nil)
+ scope = Tag.all
params.each do |key, value|
next if key == :page
diff --git a/app/models/concerns/account/avatar.rb b/app/models/concerns/account/avatar.rb
index 39f599db182275..5ca8fa862f9495 100644
--- a/app/models/concerns/account/avatar.rb
+++ b/app/models/concerns/account/avatar.rb
@@ -6,10 +6,13 @@ module Account::Avatar
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
LIMIT = 2.megabytes
+ AVATAR_DIMENSIONS = [400, 400].freeze
+ AVATAR_GEOMETRY = [AVATAR_DIMENSIONS.first, AVATAR_DIMENSIONS.last].join('x')
+
class_methods do
def avatar_styles(file)
- styles = { original: { geometry: '400x400#', file_geometry_parser: FastGeometryParser } }
- styles[:static] = { geometry: '400x400#', format: 'png', convert_options: '-coalesce', file_geometry_parser: FastGeometryParser } if file.content_type == 'image/gif'
+ styles = { original: { geometry: "#{AVATAR_GEOMETRY}#", file_geometry_parser: FastGeometryParser } }
+ styles[:static] = { geometry: "#{AVATAR_GEOMETRY}#", format: 'png', convert_options: '-coalesce', file_geometry_parser: FastGeometryParser } if file.content_type == 'image/gif'
styles
end
diff --git a/app/models/concerns/account/header.rb b/app/models/concerns/account/header.rb
index 44ae774e94d034..2a47097fcfd038 100644
--- a/app/models/concerns/account/header.rb
+++ b/app/models/concerns/account/header.rb
@@ -5,7 +5,10 @@ module Account::Header
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
LIMIT = 2.megabytes
- MAX_PIXELS = 750_000 # 1500x500px
+
+ HEADER_DIMENSIONS = [1500, 500].freeze
+ HEADER_GEOMETRY = [HEADER_DIMENSIONS.first, HEADER_DIMENSIONS.last].join('x')
+ MAX_PIXELS = HEADER_DIMENSIONS.first * HEADER_DIMENSIONS.last
class_methods do
def header_styles(file)
diff --git a/app/models/export.rb b/app/models/export.rb
index 2457dcc1565ad4..6ed9f60c7c8cf4 100644
--- a/app/models/export.rb
+++ b/app/models/export.rb
@@ -55,42 +55,6 @@ def to_blocked_domains_csv
end
end
- def total_storage
- account.media_attachments.sum(:file_file_size)
- end
-
- def total_statuses
- account.statuses_count
- end
-
- def total_bookmarks
- account.bookmarks.count
- end
-
- def total_follows
- account.following_count
- end
-
- def total_lists
- account.owned_lists.count
- end
-
- def total_followers
- account.followers_count
- end
-
- def total_blocks
- account.blocking.count
- end
-
- def total_mutes
- account.muting.count
- end
-
- def total_domain_blocks
- account.domain_blocks.count
- end
-
private
def to_csv(accounts)
diff --git a/app/models/remote_follow.rb b/app/models/remote_follow.rb
index 10715ac97da425..fa0586f57eb4c9 100644
--- a/app/models/remote_follow.rb
+++ b/app/models/remote_follow.rb
@@ -3,7 +3,6 @@
class RemoteFollow
include ActiveModel::Validations
include RoutingHelper
- include WebfingerHelper
attr_accessor :acct, :addressable_template
@@ -66,7 +65,7 @@ def redirect_uri_template
end
def acct_resource
- @acct_resource ||= webfinger!("acct:#{acct}")
+ @acct_resource ||= Webfinger.new("acct:#{acct}").perform
rescue Webfinger::Error, HTTP::ConnectionError
nil
end
diff --git a/app/models/report_filter.rb b/app/models/report_filter.rb
index fd0e23cb81705d..9d2b0fb37420f5 100644
--- a/app/models/report_filter.rb
+++ b/app/models/report_filter.rb
@@ -18,13 +18,25 @@ def initialize(params)
def results
scope = Report.unresolved
- params.each do |key, value|
+ relevant_params.each do |key, value|
scope = scope.merge scope_for(key, value)
end
scope
end
+ private
+
+ def relevant_params
+ params.tap do |args|
+ args.delete(:target_origin) if origin_is_remote_and_domain_present?
+ end
+ end
+
+ def origin_is_remote_and_domain_present?
+ params[:target_origin] == 'remote' && params[:by_target_domain].present?
+ end
+
def scope_for(key, value)
case key.to_sym
when :by_target_domain
diff --git a/app/models/session_activation.rb b/app/models/session_activation.rb
index d0a77daf0a666c..8b8e533d30c980 100644
--- a/app/models/session_activation.rb
+++ b/app/models/session_activation.rb
@@ -28,6 +28,8 @@ class SessionActivation < ApplicationRecord
before_create :assign_access_token
+ DEFAULT_SCOPES = %w(read write follow).freeze
+
class << self
def active?(id)
id && exists?(session_id: id)
@@ -64,7 +66,7 @@ def access_token_attributes
{
application_id: Doorkeeper::Application.find_by(superapp: true)&.id,
resource_owner_id: user_id,
- scopes: 'read write follow',
+ scopes: DEFAULT_SCOPES.join(' '),
expires_in: Doorkeeper.configuration.access_token_expires_in,
use_refresh_token: Doorkeeper.configuration.refresh_token_enabled?,
}
diff --git a/app/models/user.rb b/app/models/user.rb
index ecdb60485a32ae..d9e7beff498c1c 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -74,7 +74,8 @@ class User < ApplicationRecord
REACTION_DECK_MAX = 256
devise :two_factor_authenticatable,
- otp_secret_encryption_key: Rails.configuration.x.otp_secret
+ otp_secret_encryption_key: Rails.configuration.x.otp_secret,
+ otp_secret_length: 32
include LegacyOtpSecret # Must be after the above `devise` line in order to override the legacy method
diff --git a/app/models/web/push_subscription.rb b/app/models/web/push_subscription.rb
index ddfd08146e76ae..9d30881bf38238 100644
--- a/app/models/web/push_subscription.rb
+++ b/app/models/web/push_subscription.rb
@@ -29,26 +29,6 @@ class Web::PushSubscription < ApplicationRecord
delegate :locale, to: :associated_user
- def encrypt(payload)
- Webpush::Encryption.encrypt(payload, key_p256dh, key_auth)
- end
-
- def audience
- @audience ||= Addressable::URI.parse(endpoint).normalized_site
- end
-
- def crypto_key_header
- p256ecdsa = vapid_key.public_key_for_push_header
-
- "p256ecdsa=#{p256ecdsa}"
- end
-
- def authorization_header
- jwt = JWT.encode({ aud: audience, exp: 24.hours.from_now.to_i, sub: "mailto:#{contact_email}" }, vapid_key.curve, 'ES256', typ: 'JWT')
-
- "WebPush #{jwt}"
- end
-
def pushable?(notification)
policy_allows_notification?(notification) && alert_enabled_for_notification_type?(notification)
end
@@ -92,14 +72,6 @@ def find_or_create_access_token
)
end
- def vapid_key
- @vapid_key ||= Webpush::VapidKey.from_keys(Rails.configuration.x.vapid_public_key, Rails.configuration.x.vapid_private_key)
- end
-
- def contact_email
- @contact_email ||= ::Setting.site_contact_email
- end
-
def alert_enabled_for_notification_type?(notification)
truthy?(data&.dig('alerts', notification.type.to_s))
end
diff --git a/app/presenters/export_summary.rb b/app/presenters/export_summary.rb
new file mode 100644
index 00000000000000..8e45aadf67dd49
--- /dev/null
+++ b/app/presenters/export_summary.rb
@@ -0,0 +1,70 @@
+# frozen_string_literal: true
+
+class ExportSummary
+ attr_reader :account, :counts
+
+ delegate(
+ :blocking,
+ :bookmarks,
+ :domain_blocks,
+ :owned_lists,
+ :media_attachments,
+ :muting,
+ to: :account,
+ prefix: true
+ )
+
+ def initialize(account)
+ @account = account
+ @counts = populate_counts
+ end
+
+ def total_blocks
+ counts[:blocks].value
+ end
+
+ def total_bookmarks
+ counts[:bookmarks].value
+ end
+
+ def total_domain_blocks
+ counts[:domain_blocks].value
+ end
+
+ def total_followers
+ account.followers_count
+ end
+
+ def total_follows
+ account.following_count
+ end
+
+ def total_lists
+ counts[:owned_lists].value
+ end
+
+ def total_mutes
+ counts[:muting].value
+ end
+
+ def total_statuses
+ account.statuses_count
+ end
+
+ def total_storage
+ counts[:storage].value
+ end
+
+ private
+
+ def populate_counts
+ {
+ blocks: account_blocking.async_count,
+ bookmarks: account_bookmarks.async_count,
+ domain_blocks: account_domain_blocks.async_count,
+ owned_lists: account_owned_lists.async_count,
+ muting: account_muting.async_count,
+ storage: account_media_attachments.async_sum(:file_file_size),
+ }
+ end
+end
diff --git a/app/services/activitypub/fetch_remote_actor_service.rb b/app/services/activitypub/fetch_remote_actor_service.rb
index 2c372c2ec3fd84..560cf424e1539f 100644
--- a/app/services/activitypub/fetch_remote_actor_service.rb
+++ b/app/services/activitypub/fetch_remote_actor_service.rb
@@ -3,7 +3,6 @@
class ActivityPub::FetchRemoteActorService < BaseService
include JsonLdHelper
include DomainControlHelper
- include WebfingerHelper
class Error < StandardError; end
@@ -45,7 +44,7 @@ def call(uri, prefetched_body: nil, break_on_redirect: false, only_key: false, s
private
def check_webfinger!
- webfinger = webfinger!("acct:#{@username}@#{@domain}")
+ webfinger = Webfinger.new("acct:#{@username}@#{@domain}").perform
confirmed_username, confirmed_domain = split_acct(webfinger.subject)
if @username.casecmp(confirmed_username).zero? && @domain.casecmp(confirmed_domain).zero?
@@ -54,7 +53,7 @@ def check_webfinger!
return
end
- webfinger = webfinger!("acct:#{confirmed_username}@#{confirmed_domain}")
+ webfinger = Webfinger.new("acct:#{confirmed_username}@#{confirmed_domain}").perform
@username, @domain = split_acct(webfinger.subject)
raise Webfinger::RedirectError, "Too many webfinger redirects for URI #{@uri} (stopped at #{@username}@#{@domain})" unless confirmed_username.casecmp(@username).zero? && confirmed_domain.casecmp(@domain).zero?
diff --git a/app/services/activitypub/process_collection_service.rb b/app/services/activitypub/process_collection_service.rb
index 202a3640ef4142..0a2cdebbd8ea4c 100644
--- a/app/services/activitypub/process_collection_service.rb
+++ b/app/services/activitypub/process_collection_service.rb
@@ -2,6 +2,7 @@
class ActivityPub::ProcessCollectionService < BaseService
include JsonLdHelper
+ include DomainControlHelper
def call(body, actor, **options)
@account = actor
@@ -73,6 +74,9 @@ def process_item(item)
end
def verify_account!
+ return unless @json['signature'].is_a?(Hash)
+ return if domain_not_allowed?(@json['signature']['creator'])
+
@options[:relayed_through_actor] = @account
@account = ActivityPub::LinkedDataSignature.new(@json).verify_actor!
@account = nil unless @account.is_a?(Account)
diff --git a/app/services/purge_domain_service.rb b/app/services/purge_domain_service.rb
index ca0f0d441fe5bb..feab8aa1dd5da2 100644
--- a/app/services/purge_domain_service.rb
+++ b/app/services/purge_domain_service.rb
@@ -16,12 +16,12 @@ def purge_relationship_severance_events!
end
def purge_accounts!
- Account.remote.where(domain: @domain).reorder(nil).find_each do |account|
+ Account.remote.where(domain: @domain).find_each do |account|
DeleteAccountService.new.call(account, reserve_username: false, skip_side_effects: true)
end
end
def purge_emojis!
- CustomEmoji.remote.where(domain: @domain).reorder(nil).find_each(&:destroy)
+ CustomEmoji.remote.where(domain: @domain).find_each(&:destroy)
end
end
diff --git a/app/services/resolve_account_service.rb b/app/services/resolve_account_service.rb
index 8a5863baba6c7f..cd96b55c740e23 100644
--- a/app/services/resolve_account_service.rb
+++ b/app/services/resolve_account_service.rb
@@ -2,7 +2,6 @@
class ResolveAccountService < BaseService
include DomainControlHelper
- include WebfingerHelper
include Redisable
include Lockable
@@ -81,7 +80,7 @@ def process_options!(uri, options)
end
def process_webfinger!(uri)
- @webfinger = webfinger!("acct:#{uri}")
+ @webfinger = Webfinger.new("acct:#{uri}").perform
confirmed_username, confirmed_domain = split_acct(@webfinger.subject)
if confirmed_username.casecmp(@username).zero? && confirmed_domain.casecmp(@domain).zero?
@@ -91,7 +90,7 @@ def process_webfinger!(uri)
end
# Account doesn't match, so it may have been redirected
- @webfinger = webfinger!("acct:#{confirmed_username}@#{confirmed_domain}")
+ @webfinger = Webfinger.new("acct:#{confirmed_username}@#{confirmed_domain}").perform
@username, @domain = split_acct(@webfinger.subject)
raise Webfinger::RedirectError, "Too many webfinger redirects for URI #{uri} (stopped at #{@username}@#{@domain})" unless confirmed_username.casecmp(@username).zero? && confirmed_domain.casecmp(@domain).zero?
diff --git a/app/views/admin/action_logs/index.html.haml b/app/views/admin/action_logs/index.html.haml
index c02c8f0ad41fae..a5d41882943cf2 100644
--- a/app/views/admin/action_logs/index.html.haml
+++ b/app/views/admin/action_logs/index.html.haml
@@ -16,7 +16,7 @@
%strong= t('admin.action_logs.filter_by_action')
.input.select.optional
= form.select :action_type,
- options_for_select(Admin::ActionLogFilter::ACTION_TYPE_MAP.keys.map { |key| [I18n.t("admin.action_logs.action_types.#{key}"), key] }, params[:action_type]),
+ options_for_select(sorted_action_log_types, params[:action_type]),
prompt: I18n.t('admin.accounts.moderation.all')
- if @action_logs.empty?
diff --git a/app/views/admin/announcements/index.html.haml b/app/views/admin/announcements/index.html.haml
index 72227b04577a04..6a76c187766a5c 100644
--- a/app/views/admin/announcements/index.html.haml
+++ b/app/views/admin/announcements/index.html.haml
@@ -9,7 +9,7 @@
%strong= t('admin.relays.status')
%ul
%li= filter_link_to t('generic.all'), published: nil, unpublished: nil
- %li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(Announcement.published.count)})"], ' '), published: '1', unpublished: nil
+ %li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(@published_announcements_count.value)})"], ' '), published: '1', unpublished: nil
- if @announcements.empty?
.muted-hint.center-text
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index 27d8f4790ba8be..2b4d02fa67c0a0 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -2,9 +2,7 @@
= t('admin.dashboard.title')
- content_for :heading_actions do
- = l(@time_period.first)
- = ' - '
- = l(@time_period.last)
+ = date_range(@time_period)
- unless @system_checks.empty?
.flash-message-stack
diff --git a/app/views/admin/disputes/appeals/index.html.haml b/app/views/admin/disputes/appeals/index.html.haml
index 7f04dd40fb5f91..e09e275e5d5c3e 100644
--- a/app/views/admin/disputes/appeals/index.html.haml
+++ b/app/views/admin/disputes/appeals/index.html.haml
@@ -5,7 +5,7 @@
.filter-subset
%strong= t('admin.tags.review')
%ul
- %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{Appeal.pending.count})"], ' '), status: 'pending'
+ %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{@pending_appeals_count.value})"], ' '), status: 'pending'
%li= filter_link_to t('admin.trends.approved'), status: 'approved'
%li= filter_link_to t('admin.trends.rejected'), status: 'rejected'
diff --git a/app/views/admin/email_domain_blocks/new.html.haml b/app/views/admin/email_domain_blocks/new.html.haml
index dd4b83ee3f2832..2dfdca93763dda 100644
--- a/app/views/admin/email_domain_blocks/new.html.haml
+++ b/app/views/admin/email_domain_blocks/new.html.haml
@@ -16,7 +16,7 @@
label: I18n.t('admin.email_domain_blocks.allow_registrations_with_approval'),
wrapper: :with_label
- - if defined?(@resolved_records)
+ - if defined?(@resolved_records) && @resolved_records.any?
%p.hint= t('admin.email_domain_blocks.resolved_dns_records_hint_html')
.batch-table
diff --git a/app/views/admin/instances/_dashboard.html.haml b/app/views/admin/instances/_dashboard.html.haml
new file mode 100644
index 00000000000000..ef8500103be462
--- /dev/null
+++ b/app/views/admin/instances/_dashboard.html.haml
@@ -0,0 +1,66 @@
+-# locals: (instance_domain:, period_end_at:, period_start_at:)
+%p
+ = material_symbol 'info'
+ = t('admin.instances.totals_time_period_hint_html')
+
+.dashboard
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ href: admin_accounts_path(origin: 'remote', by_domain: instance_domain),
+ label: t('admin.instances.dashboard.instance_accounts_measure'),
+ measure: 'instance_accounts',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_statuses_measure'),
+ measure: 'instance_statuses',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_media_attachments_measure'),
+ measure: 'instance_media_attachments',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_follows_measure'),
+ measure: 'instance_follows',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_followers_measure'),
+ measure: 'instance_followers',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :counter,
+ end_at: period_end_at,
+ href: admin_reports_path(by_target_domain: instance_domain),
+ label: t('admin.instances.dashboard.instance_reports_measure'),
+ measure: 'instance_reports',
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :dimension,
+ dimension: 'instance_accounts',
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_accounts_dimension'),
+ limit: 8,
+ params: { domain: instance_domain },
+ start_at: period_start_at
+ .dashboard__item
+ = react_admin_component :dimension,
+ dimension: 'instance_languages',
+ end_at: period_end_at,
+ label: t('admin.instances.dashboard.instance_languages_dimension'),
+ limit: 8,
+ params: { domain: instance_domain },
+ start_at: period_start_at
diff --git a/app/views/admin/instances/show.html.haml b/app/views/admin/instances/show.html.haml
index 606d00e27c9d9c..f5f339e664356b 100644
--- a/app/views/admin/instances/show.html.haml
+++ b/app/views/admin/instances/show.html.haml
@@ -7,77 +7,10 @@
- if current_user.can?(:view_dashboard)
- content_for :heading_actions do
- = l(@time_period.first)
- = ' - '
- = l(@time_period.last)
+ = date_range(@time_period)
- if @instance.persisted?
- %p
- = material_symbol 'info'
- = t('admin.instances.totals_time_period_hint_html')
-
- .dashboard
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- href: admin_accounts_path(origin: 'remote', by_domain: @instance.domain),
- label: t('admin.instances.dashboard.instance_accounts_measure'),
- measure: 'instance_accounts',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_statuses_measure'),
- measure: 'instance_statuses',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_media_attachments_measure'),
- measure: 'instance_media_attachments',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_follows_measure'),
- measure: 'instance_follows',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_followers_measure'),
- measure: 'instance_followers',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :counter,
- end_at: @time_period.last,
- href: admin_reports_path(by_target_domain: @instance.domain),
- label: t('admin.instances.dashboard.instance_reports_measure'),
- measure: 'instance_reports',
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :dimension,
- dimension: 'instance_accounts',
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_accounts_dimension'),
- limit: 8,
- params: { domain: @instance.domain },
- start_at: @time_period.first
- .dashboard__item
- = react_admin_component :dimension,
- dimension: 'instance_languages',
- end_at: @time_period.last,
- label: t('admin.instances.dashboard.instance_languages_dimension'),
- limit: 8,
- params: { domain: @instance.domain },
- start_at: @time_period.first
-
+ = render 'dashboard', instance_domain: @instance.domain, period_end_at: @time_period.last, period_start_at: @time_period.first
- else
%p
= t('admin.instances.unknown_instance')
diff --git a/app/views/admin/invites/_invite.html.haml b/app/views/admin/invites/_invite.html.haml
index 8bd5f10feefdc6..53eac1d0cddf89 100644
--- a/app/views/admin/invites/_invite.html.haml
+++ b/app/views/admin/invites/_invite.html.haml
@@ -2,7 +2,7 @@
%td
.input-copy
.input-copy__wrapper
- %input{ type: :text, maxlength: '999', spellcheck: 'false', readonly: 'true', value: public_invite_url(invite_code: invite.code) }
+ = copyable_input value: public_invite_url(invite_code: invite.code)
%button{ type: :button }= t('generic.copy')
%td
diff --git a/app/views/admin/tags/show.html.haml b/app/views/admin/tags/show.html.haml
index 93387843b2ce41..462ca312a07e86 100644
--- a/app/views/admin/tags/show.html.haml
+++ b/app/views/admin/tags/show.html.haml
@@ -4,9 +4,7 @@
- content_for :heading_actions do
- if current_user.can?(:view_dashboard)
.time-period
- = l(@time_period.first)
- = ' - '
- = l(@time_period.last)
+ = date_range(@time_period)
= link_to t('admin.tags.open'), tag_url(@tag), class: 'button', target: '_blank', rel: 'noopener noreferrer'
diff --git a/app/views/admin/trends/links/preview_card_providers/index.html.haml b/app/views/admin/trends/links/preview_card_providers/index.html.haml
index 93daf25f31a74d..0770ac4b810bfb 100644
--- a/app/views/admin/trends/links/preview_card_providers/index.html.haml
+++ b/app/views/admin/trends/links/preview_card_providers/index.html.haml
@@ -12,7 +12,7 @@
%li= filter_link_to t('generic.all'), status: nil
%li= filter_link_to t('admin.trends.approved'), status: 'approved'
%li= filter_link_to t('admin.trends.rejected'), status: 'rejected'
- %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{PreviewCardProvider.unreviewed.count})"], ' '), status: 'pending_review'
+ %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{@pending_preview_card_providers_count.value})"], ' '), status: 'pending_review'
.back-link
= link_to admin_trends_links_path do
= material_symbol 'chevron_left'
diff --git a/app/views/admin/trends/tags/index.html.haml b/app/views/admin/trends/tags/index.html.haml
index 480877456f5f96..21f6c2947aca37 100644
--- a/app/views/admin/trends/tags/index.html.haml
+++ b/app/views/admin/trends/tags/index.html.haml
@@ -12,7 +12,7 @@
%li= filter_link_to t('generic.all'), status: nil
%li= filter_link_to t('admin.trends.approved'), status: 'approved'
%li= filter_link_to t('admin.trends.rejected'), status: 'rejected'
- %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{Tag.pending_review.count})"], ' '), status: 'pending_review'
+ %li= filter_link_to safe_join([t('admin.accounts.moderation.pending'), "(#{@pending_tags_count.value})"], ' '), status: 'pending_review'
= form_with model: @form, url: batch_admin_trends_tags_path do |f|
= hidden_field_tag :page, params[:page] || 1
diff --git a/app/views/invites/_invite.html.haml b/app/views/invites/_invite.html.haml
index 892fdc5a0e38af..7c94062de450bb 100644
--- a/app/views/invites/_invite.html.haml
+++ b/app/views/invites/_invite.html.haml
@@ -2,7 +2,7 @@
%td
.input-copy
.input-copy__wrapper
- %input{ type: :text, maxlength: '999', spellcheck: 'false', readonly: 'true', value: public_invite_url(invite_code: invite.code) }
+ = copyable_input value: public_invite_url(invite_code: invite.code)
%button{ type: :button }= t('generic.copy')
- if invite.valid_for_use?
diff --git a/app/views/oauth/authorizations/show.html.haml b/app/views/oauth/authorizations/show.html.haml
index a5122a87fc39d7..bdff3363682c07 100644
--- a/app/views/oauth/authorizations/show.html.haml
+++ b/app/views/oauth/authorizations/show.html.haml
@@ -3,5 +3,5 @@
%p= t('doorkeeper.authorizations.show.title')
.input-copy
.input-copy__wrapper
- %input.oauth-code{ type: 'text', spellcheck: 'false', readonly: true, value: params[:code] }
+ = copyable_input value: params[:code], class: 'oauth-code'
%button{ type: :button }= t('generic.copy')
diff --git a/app/views/settings/applications/_form.html.haml b/app/views/settings/applications/_form.html.haml
index 66ea8bc12bf00f..85fdefa0fcdf2e 100644
--- a/app/views/settings/applications/_form.html.haml
+++ b/app/views/settings/applications/_form.html.haml
@@ -18,7 +18,7 @@
.field-group
.input.with_block_label
- %label= t('activerecord.attributes.doorkeeper/application.scopes')
+ = form.label t('activerecord.attributes.doorkeeper/application.scopes'), required: true
%span.hint= t('simple_form.hints.defaults.scopes')
- Doorkeeper.configuration.scopes.group_by { |s| s.split(':').first }.each_value do |value|
@@ -29,7 +29,7 @@
hint: false,
include_blank: false,
item_wrapper_tag: 'li',
- label_method: ->(scope) { safe_join([content_tag(:samp, scope, class: class_for_scope(scope)), content_tag(:span, t("doorkeeper.scopes.#{scope}"), class: 'hint')]) },
+ label_method: ->(scope) { label_for_scope(scope) },
label: false,
required: false,
selected: form.object.scopes.all,
diff --git a/app/views/settings/applications/index.html.haml b/app/views/settings/applications/index.html.haml
index 80eaed5c3994f8..e3011947a64f59 100644
--- a/app/views/settings/applications/index.html.haml
+++ b/app/views/settings/applications/index.html.haml
@@ -18,7 +18,9 @@
- @applications.each do |application|
%tr
%td= link_to application.name, settings_application_path(application)
- %th= application.scopes
+ %th
+ - application.scopes.to_s.split.each do |scope|
+ = tag.samp(scope, class: 'information-badge', title: t("doorkeeper.scopes.#{scope}"))
%td
= table_link_to 'close', t('doorkeeper.applications.index.delete'), settings_application_path(application), method: :delete, data: { confirm: t('doorkeeper.applications.confirmations.destroy') }
diff --git a/app/views/settings/applications/show.html.haml b/app/views/settings/applications/show.html.haml
index 19630cf49b8ccb..bfde27daa96440 100644
--- a/app/views/settings/applications/show.html.haml
+++ b/app/views/settings/applications/show.html.haml
@@ -15,15 +15,16 @@
%td
%code= @application.secret
%tr
- %th{ rowspan: 2 }= t('applications.your_token')
+ %th= t('applications.your_token')
%td
%code= current_user.token_for_app(@application).token
%tr
+ %th
%td= table_link_to 'refresh', t('applications.regenerate_token'), regenerate_settings_application_path(@application), method: :post
%hr/
-= simple_form_for @application, url: settings_application_path(@application), method: :put do |form|
+= simple_form_for @application, url: settings_application_path(@application) do |form|
= render form
.actions
diff --git a/app/views/settings/exports/show.html.haml b/app/views/settings/exports/show.html.haml
index 320bb0c7cebcbb..5a151be73becce 100644
--- a/app/views/settings/exports/show.html.haml
+++ b/app/views/settings/exports/show.html.haml
@@ -6,39 +6,39 @@
%tbody
%tr
%th= t('exports.storage')
- %td= number_to_human_size @export.total_storage
+ %td= number_to_human_size @export_summary.total_storage
%td
%tr
%th= t('accounts.posts_tab_heading')
- %td= number_with_delimiter @export.total_statuses
+ %td= number_with_delimiter @export_summary.total_statuses
%td
%tr
%th= t('admin.accounts.follows')
- %td= number_with_delimiter @export.total_follows
+ %td= number_with_delimiter @export_summary.total_follows
%td= table_link_to 'download', t('exports.csv'), settings_exports_follows_path(format: :csv)
%tr
%th= t('exports.lists')
- %td= number_with_delimiter @export.total_lists
+ %td= number_with_delimiter @export_summary.total_lists
%td= table_link_to 'download', t('exports.csv'), settings_exports_lists_path(format: :csv)
%tr
%th= t('admin.accounts.followers')
- %td= number_with_delimiter @export.total_followers
+ %td= number_with_delimiter @export_summary.total_followers
%td
%tr
%th= t('exports.mutes')
- %td= number_with_delimiter @export.total_mutes
+ %td= number_with_delimiter @export_summary.total_mutes
%td= table_link_to 'download', t('exports.csv'), settings_exports_mutes_path(format: :csv)
%tr
%th= t('exports.blocks')
- %td= number_with_delimiter @export.total_blocks
+ %td= number_with_delimiter @export_summary.total_blocks
%td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)
%tr
%th= t('exports.domain_blocks')
- %td= number_with_delimiter @export.total_domain_blocks
+ %td= number_with_delimiter @export_summary.total_domain_blocks
%td= table_link_to 'download', t('exports.csv'), settings_exports_domain_blocks_path(format: :csv)
%tr
%th= t('exports.bookmarks')
- %td= number_with_delimiter @export.total_bookmarks
+ %td= number_with_delimiter @export_summary.total_bookmarks
%td= table_link_to 'download', t('exports.csv'), settings_exports_bookmarks_path(format: :csv)
%hr.spacer/
@@ -61,7 +61,8 @@
%tbody
- @backups.each do |backup|
%tr
- %td= l backup.created_at
+ %td
+ %time.formatted{ datetime: backup.created_at.iso8601, title: l(backup.created_at) }= l backup.created_at
- if backup.processed?
%td= number_to_human_size backup.dump_file_size
%td= table_link_to 'download', t('exports.archive_takeout.download'), download_backup_url(backup)
diff --git a/app/views/settings/imports/index.html.haml b/app/views/settings/imports/index.html.haml
index 634631b5aaa4cc..55421991e13173 100644
--- a/app/views/settings/imports/index.html.haml
+++ b/app/views/settings/imports/index.html.haml
@@ -55,7 +55,10 @@
= t("imports.states.#{import.state}")
%td
#{import.imported_items} / #{import.total_items}
- %td= l(import.created_at)
+ %td
+ %time.formatted{ datetime: import.created_at.iso8601, title: l(import.created_at) }
+ = l(import.created_at)
+
%td
- num_failed = import.processed_items - import.imported_items
- if num_failed.positive?
diff --git a/app/views/settings/imports/show.html.haml b/app/views/settings/imports/show.html.haml
index 4d50049d3d3da5..dd18ac2168c8c7 100644
--- a/app/views/settings/imports/show.html.haml
+++ b/app/views/settings/imports/show.html.haml
@@ -5,9 +5,9 @@
.flash-message.warning= t('imports.mismatched_types_warning')
- if @bulk_import.overwrite?
- %p.hint= t("imports.overwrite_preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, total_items: @bulk_import.total_items)
+ %p.hint= t("imports.overwrite_preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, count: @bulk_import.total_items)
- else
- %p.hint= t("imports.preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, total_items: @bulk_import.total_items)
+ %p.hint= t("imports.preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, count: @bulk_import.total_items)
.simple_form
.actions
diff --git a/app/views/settings/preferences/appearance/show.html.haml b/app/views/settings/preferences/appearance/show.html.haml
index 759fe3de81cced..131d3bdb121927 100644
--- a/app/views/settings/preferences/appearance/show.html.haml
+++ b/app/views/settings/preferences/appearance/show.html.haml
@@ -4,7 +4,7 @@
- content_for :heading_actions do
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_user'
-= simple_form_for current_user, url: settings_preferences_appearance_path, html: { method: :put, id: 'edit_user' } do |f|
+= simple_form_for current_user, url: settings_preferences_appearance_path, html: { id: :edit_user } do |f|
.fields-row
.fields-group.fields-row__column.fields-row__column-6
= f.input :locale,
diff --git a/app/views/settings/preferences/notifications/show.html.haml b/app/views/settings/preferences/notifications/show.html.haml
index 26111374f995fb..d0adfd366c120c 100644
--- a/app/views/settings/preferences/notifications/show.html.haml
+++ b/app/views/settings/preferences/notifications/show.html.haml
@@ -4,7 +4,7 @@
- content_for :heading_actions do
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_notification'
-= simple_form_for current_user, url: settings_preferences_notifications_path, html: { method: :put, id: 'edit_notification' } do |f|
+= simple_form_for current_user, url: settings_preferences_notifications_path, html: { id: :edit_notification } do |f|
= render 'shared/error_messages', object: current_user
%h4= t 'notifications.email_events'
diff --git a/app/views/settings/preferences/other/show.html.haml b/app/views/settings/preferences/other/show.html.haml
index e6a6db766fdca5..1b03497c270e76 100644
--- a/app/views/settings/preferences/other/show.html.haml
+++ b/app/views/settings/preferences/other/show.html.haml
@@ -4,7 +4,7 @@
- content_for :heading_actions do
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_preferences'
-= simple_form_for current_user, url: settings_preferences_other_path, html: { method: :put, id: 'edit_preferences' } do |f|
+= simple_form_for current_user, url: settings_preferences_other_path, html: { id: :edit_preferences } do |f|
= render 'shared/error_messages', object: current_user
= f.simple_fields_for :settings, current_user.settings do |ff|
diff --git a/app/views/settings/privacy/show.html.haml b/app/views/settings/privacy/show.html.haml
index eb02ee2f5c55b3..c862d2601ee75c 100644
--- a/app/views/settings/privacy/show.html.haml
+++ b/app/views/settings/privacy/show.html.haml
@@ -5,7 +5,7 @@
%h2= t('settings.profile')
= render partial: 'settings/shared/profile_navigation'
-= simple_form_for @account, url: settings_privacy_path, html: { method: :put } do |f|
+= simple_form_for @account, url: settings_privacy_path do |f|
= render 'shared/error_messages', object: @account
%p.lead= t('privacy.hint_html')
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index 27af4683368baa..b7c816d5b0e775 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -5,7 +5,7 @@
%h2= t('settings.profile')
= render partial: 'settings/shared/profile_navigation'
-= simple_form_for @account, url: settings_profile_path, html: { method: :put, id: 'edit_profile' } do |f|
+= simple_form_for @account, url: settings_profile_path, html: { id: :edit_profile } do |f|
= render 'shared/error_messages', object: @account
%p.lead= t('edit_profile.hint_html')
@@ -41,7 +41,7 @@
.fields-row__column.fields-row__column-6
.fields-group
= f.input :avatar,
- hint: t('simple_form.hints.defaults.avatar', dimensions: '400x400', size: number_to_human_size(Account::Avatar::LIMIT)),
+ hint: t('simple_form.hints.defaults.avatar', dimensions: Account::Avatar::AVATAR_GEOMETRY, size: number_to_human_size(Account::Avatar::LIMIT)),
input_html: { accept: Account::Avatar::IMAGE_MIME_TYPES.join(',') },
wrapper: :with_block_label
@@ -57,7 +57,7 @@
.fields-row__column.fields-row__column-6
.fields-group
= f.input :header,
- hint: t('simple_form.hints.defaults.header', dimensions: '1500x500', size: number_to_human_size(Account::Header::LIMIT)),
+ hint: t('simple_form.hints.defaults.header', dimensions: Account::Header::HEADER_GEOMETRY, size: number_to_human_size(Account::Header::LIMIT)),
input_html: { accept: Account::Header::IMAGE_MIME_TYPES.join(',') },
wrapper: :with_block_label
diff --git a/app/views/settings/shared/_profile_navigation.html.haml b/app/views/settings/shared/_profile_navigation.html.haml
index e64e7f8598e6e7..45a31f896cce5a 100644
--- a/app/views/settings/shared/_profile_navigation.html.haml
+++ b/app/views/settings/shared/_profile_navigation.html.haml
@@ -1,8 +1,8 @@
.content__heading__tabs
= render_navigation renderer: :links do |primary|
:ruby
- primary.item :profile, safe_join([material_symbol('person'), t('settings.edit_profile')]), settings_profile_path
- primary.item :privacy, safe_join([material_symbol('lock'), t('privacy.title')]), settings_privacy_path
+ primary.item :edit_profile, safe_join([material_symbol('person'), t('settings.edit_profile')]), settings_profile_path
+ primary.item :privacy_reach, safe_join([material_symbol('lock'), t('privacy.title')]), settings_privacy_path
primary.item :privacy_extra, safe_join([material_symbol('lock'), t('privacy_extra.title')]), settings_privacy_extra_path
primary.item :verification, safe_join([material_symbol('check'), t('verification.verification')]), settings_verification_path
primary.item :featured_tags, safe_join([material_symbol('tag'), t('settings.featured_tags')]), settings_featured_tags_path
diff --git a/app/views/settings/two_factor_authentication/confirmations/new.html.haml b/app/views/settings/two_factor_authentication/confirmations/new.html.haml
index 0b8278a104eaea..a35479b84e6850 100644
--- a/app/views/settings/two_factor_authentication/confirmations/new.html.haml
+++ b/app/views/settings/two_factor_authentication/confirmations/new.html.haml
@@ -5,7 +5,7 @@
%p.hint= t('otp_authentication.instructions_html')
.qr-wrapper
- .qr-code!= @qrcode.as_svg(padding: 0, module_size: 4)
+ .qr-code!= @qrcode.as_svg(padding: 0, module_size: 4, use_path: true)
.qr-alternative
%p.hint= t('otp_authentication.manual_instructions')
diff --git a/app/views/settings/verifications/show.html.haml b/app/views/settings/verifications/show.html.haml
index 5318b0767ddfb0..560807f27ca7fb 100644
--- a/app/views/settings/verifications/show.html.haml
+++ b/app/views/settings/verifications/show.html.haml
@@ -16,7 +16,7 @@
.input-copy.lead
.input-copy__wrapper
- %input{ type: :text, maxlength: '999', spellcheck: 'false', readonly: 'true', value: link_to('Mastodon', ActivityPub::TagManager.instance.url_for(@account), rel: 'me').to_str }
+ = copyable_input value: link_to('Mastodon', ActivityPub::TagManager.instance.url_for(@account), rel: :me)
%button{ type: :button }= t('generic.copy')
%p.lead= t('verification.extra_instructions_html')
@@ -31,7 +31,7 @@
= material_symbol 'check', class: 'verified-badge__mark'
%span= field.value
-= simple_form_for @account, url: settings_verification_path, html: { method: :put, class: 'form-section' } do |f|
+= simple_form_for @account, url: settings_verification_path, html: { class: 'form-section' } do |f|
= render 'shared/error_messages', object: @account
%h3= t('author_attribution.title')
@@ -50,13 +50,13 @@
= image_tag frontend_asset_url('images/preview.png'), alt: '', class: 'status-card__image-image'
.status-card__content
%span.status-card__host
- %span= t('author_attribution.s_blog', name: @account.username)
+ %span= t('author_attribution.s_blog', name: display_name(@account))
·
%time.time-ago{ datetime: 1.year.ago.to_date.iso8601 }
%strong.status-card__title= t('author_attribution.example_title')
.more-from-author
= logo_as_symbol(:icon)
- = t('author_attribution.more_from_html', name: link_to(root_url, class: 'story__details__shared__author-link') { image_tag(@account.avatar.url, class: 'account__avatar', width: 16, height: 16, alt: '') + content_tag(:bdi, display_name(@account)) })
+ = t('author_attribution.more_from_html', name: link_to(root_url, class: 'story__details__shared__author-link') { image_tag(@account.avatar.url, class: 'account__avatar', width: 16, height: 16, alt: '') + tag.bdi(display_name(@account)) })
.actions
= f.button :button, t('generic.save_changes'), type: :submit
diff --git a/app/views/severed_relationships/index.html.haml b/app/views/severed_relationships/index.html.haml
index 7c599e9c0e7e55..cc9439b4681eed 100644
--- a/app/views/severed_relationships/index.html.haml
+++ b/app/views/severed_relationships/index.html.haml
@@ -15,7 +15,9 @@
%tbody
- @events.each do |event|
%tr
- %td= l event.created_at
+ %td
+ %time.formatted{ datetime: event.created_at.iso8601, title: l(event.created_at) }
+ = l(event.created_at)
%td= t("severed_relationships.event_type.#{event.type}", target_name: event.target_name)
- if event.purged?
%td{ rowspan: 2 }= t('severed_relationships.purged')
diff --git a/app/workers/filtered_notification_cleanup_worker.rb b/app/workers/filtered_notification_cleanup_worker.rb
index 2b955da3c0a1ac..87ff6a9eb5e928 100644
--- a/app/workers/filtered_notification_cleanup_worker.rb
+++ b/app/workers/filtered_notification_cleanup_worker.rb
@@ -4,6 +4,6 @@ class FilteredNotificationCleanupWorker
include Sidekiq::Worker
def perform(account_id, from_account_id)
- Notification.where(account_id: account_id, from_account_id: from_account_id, filtered: true).reorder(nil).in_batches(order: :desc).delete_all
+ Notification.where(account_id: account_id, from_account_id: from_account_id, filtered: true).in_batches(order: :desc).delete_all
end
end
diff --git a/app/workers/mention_resolve_worker.rb b/app/workers/mention_resolve_worker.rb
new file mode 100644
index 00000000000000..72dcd9633f32fe
--- /dev/null
+++ b/app/workers/mention_resolve_worker.rb
@@ -0,0 +1,37 @@
+# frozen_string_literal: true
+
+class MentionResolveWorker
+ include Sidekiq::Worker
+ include ExponentialBackoff
+ include JsonLdHelper
+
+ sidekiq_options queue: 'pull', retry: 7
+
+ def perform(status_id, uri, options = {})
+ status = Status.find_by(id: status_id)
+ return if status.nil?
+
+ account = account_from_uri(uri)
+ account = ActivityPub::FetchRemoteAccountService.new.call(uri, request_id: options[:request_id]) if account.nil?
+
+ return if account.nil?
+
+ status.mentions.create!(account: account, silent: false)
+ rescue ActiveRecord::RecordNotFound
+ # Do nothing
+ rescue Mastodon::UnexpectedResponseError => e
+ response = e.response
+
+ if response_error_unsalvageable?(response)
+ # Give up
+ else
+ raise e
+ end
+ end
+
+ private
+
+ def account_from_uri(uri)
+ ActivityPub::TagManager.instance.uri_to_resource(uri, Account)
+ end
+end
diff --git a/app/workers/scheduler/user_cleanup_scheduler.rb b/app/workers/scheduler/user_cleanup_scheduler.rb
index 9f58d9225b3a14..f7551283320dce 100644
--- a/app/workers/scheduler/user_cleanup_scheduler.rb
+++ b/app/workers/scheduler/user_cleanup_scheduler.rb
@@ -16,7 +16,7 @@ def perform
private
def clean_unconfirmed_accounts!
- User.unconfirmed.where(confirmation_sent_at: ..UNCONFIRMED_ACCOUNTS_MAX_AGE_DAYS.days.ago).reorder(nil).find_in_batches do |batch|
+ User.unconfirmed.where(confirmation_sent_at: ..UNCONFIRMED_ACCOUNTS_MAX_AGE_DAYS.days.ago).find_in_batches do |batch|
# We have to do it separately because of missing database constraints
AccountModerationNote.where(target_account_id: batch.map(&:account_id)).delete_all
Account.where(id: batch.map(&:account_id)).delete_all
diff --git a/app/workers/web/push_notification_worker.rb b/app/workers/web/push_notification_worker.rb
index 7e9691aaba37cd..104503f130fc2d 100644
--- a/app/workers/web/push_notification_worker.rb
+++ b/app/workers/web/push_notification_worker.rb
@@ -16,10 +16,10 @@ def perform(subscription_id, notification_id)
# in the meantime, so we have to double-check before proceeding
return unless @notification.activity.present? && @subscription.pushable?(@notification)
- payload = @subscription.encrypt(push_notification_json)
+ payload = web_push_request.encrypt(push_notification_json)
- request_pool.with(@subscription.audience) do |http_client|
- request = Request.new(:post, @subscription.endpoint, body: payload.fetch(:ciphertext), http_client: http_client)
+ request_pool.with(web_push_request.audience) do |http_client|
+ request = Request.new(:post, web_push_request.endpoint, body: payload.fetch(:ciphertext), http_client: http_client)
request.add_headers(
'Content-Type' => 'application/octet-stream',
@@ -27,8 +27,8 @@ def perform(subscription_id, notification_id)
'Urgency' => URGENCY,
'Content-Encoding' => 'aesgcm',
'Encryption' => "salt=#{Webpush.encode64(payload.fetch(:salt)).delete('=')}",
- 'Crypto-Key' => "dh=#{Webpush.encode64(payload.fetch(:server_public_key)).delete('=')};#{@subscription.crypto_key_header}",
- 'Authorization' => @subscription.authorization_header
+ 'Crypto-Key' => "dh=#{Webpush.encode64(payload.fetch(:server_public_key)).delete('=')};#{web_push_request.crypto_key_header}",
+ 'Authorization' => web_push_request.authorization_header
)
request.perform do |response|
@@ -50,17 +50,27 @@ def perform(subscription_id, notification_id)
private
+ def web_push_request
+ @web_push_request || WebPushRequest.new(@subscription)
+ end
+
def push_notification_json
- json = I18n.with_locale(@subscription.locale.presence || I18n.default_locale) do
- ActiveModelSerializers::SerializableResource.new(
- @notification,
- serializer: Web::NotificationSerializer,
- scope: @subscription,
- scope_name: :current_push_subscription
- ).as_json
+ Oj.dump(serialized_notification_in_subscription_locale.as_json)
+ end
+
+ def serialized_notification_in_subscription_locale
+ I18n.with_locale(@subscription.locale.presence || I18n.default_locale) do
+ serialized_notification
end
+ end
- Oj.dump(json)
+ def serialized_notification
+ ActiveModelSerializers::SerializableResource.new(
+ @notification,
+ serializer: Web::NotificationSerializer,
+ scope: @subscription,
+ scope_name: :current_push_subscription
+ )
end
def request_pool
diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml
index 328d5c74dbaead..c9aa65523ae087 100644
--- a/config/i18n-tasks.yml
+++ b/config/i18n-tasks.yml
@@ -68,8 +68,8 @@ ignore_unused:
- 'admin_mailer.*.subject'
- 'user_mailer.*.subject'
- 'notification_mailer.*'
- - 'imports.overwrite_preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html'
- - 'imports.preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html'
+ - 'imports.overwrite_preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html.*'
+ - 'imports.preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html.*'
- 'mail_subscriptions.unsubscribe.emails.*'
- 'preferences.other' # some locales are missing other keys, therefore leading i18n-tasks to detect `preferences` as plural and not finding use
- 'edit_profile.other' # some locales are missing other keys, therefore leading i18n-tasks to detect `preferences` as plural and not finding use
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index 6df6e2525fa915..849284422c350f 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -9,16 +9,9 @@
current_user || redirect_to(new_user_session_url)
end
- resource_owner_from_credentials do |_routes|
- user = User.authenticate_with_ldap(email: request.params[:username], password: request.params[:password]) if Devise.ldap_authentication
- user ||= User.authenticate_with_pam(email: request.params[:username], password: request.params[:password]) if Devise.pam_authentication
-
- if user.nil?
- user = User.find_by(email: request.params[:username])
- user = nil unless user&.valid_password?(request.params[:password])
- end
-
- user unless user&.otp_required_for_login?
+ # Disable Resource Owner Password Credentials Grant Flow
+ resource_owner_from_credentials do
+ nil
end
# Doorkeeper provides some administrative interfaces for managing OAuth
@@ -171,7 +164,7 @@
# http://tools.ietf.org/html/rfc6819#section-4.4.3
#
- grant_flows %w(authorization_code password client_credentials)
+ grant_flows %w(authorization_code client_credentials)
# Under some circumstances you might want to have applications auto-approved,
# so that the user skips the authorization step.
diff --git a/config/locales/ca.yml b/config/locales/ca.yml
index 965f354a35f82c..ced8de4ef28a76 100644
--- a/config/locales/ca.yml
+++ b/config/locales/ca.yml
@@ -446,6 +446,7 @@ ca:
title: Blocar el nou domini de correu-e
no_email_domain_block_selected: No s'han canviat els bloqueigs de domini perquè no se n'ha seleccionat cap
not_permitted: No permés
+ resolved_dns_records_hint_html: El nom del domini resol als següents dominis MX, que són els responsables finals per a acceptar els correus. Blocar un domini MX blocarà els registres des de qualsevol adreça de correu que utilitzi el mateix domini MX, encara que el nom visible sigui diferent. Vigileu de no blocar els grans proveïdors de correu.
resolved_through_html: Resolt mitjançant %{domain}
title: Dominis de correu-e blocats
export_domain_allows:
@@ -800,6 +801,7 @@ ca:
destroyed_msg: La càrrega al lloc s'ha suprimit correctament!
software_updates:
critical_update: Crítica - si us plau, actualitza ràpidament
+ description: Es recomana de mantenir actualizada la instal·lació de Mastodon per a beneficiar-se de les darreres correccions i característiques. A més, de vegades és fonamental actualitzar-la per a evitar problemes de seguretat. Per això Mastodon comprova si hi ha actualitzacions cada 30 minuts i us notificarà d'acord amb les preferències de notificacions de correu electrònic.
documentation_link: Més informació
release_notes: Notes de llançament
title: Actualitzacions disponibles
@@ -1155,6 +1157,7 @@ ca:
account_status: Estat del compte
confirming: Esperant que es completi la confirmació del correu-e.
functional: El teu compte està completament operatiu.
+ pending: La vostra sol·licitud està pendent de revisió pel nostre personal. Això pot trigar una mica. Rebreu un correu electrònic quan s'aprovi.
redirecting_to: El teu compte és inactiu perquè actualment està redirigint a %{acct}.
self_destruct: Com que %{domain} tanca, només tindreu accés limitat al vostre compte.
view_strikes: Veure accions del passat contra el teu compte
@@ -1202,6 +1205,9 @@ ca:
before: 'Abans de procedir, llegiu amb cura aquestes notes:'
caches: El contingut que ha estat memoritzat en la memòria cau per altres servidors pot persistir
data_removal: Els teus tuts i altres dades seran permanentment eliminades
+ email_change_html: Podeu canviar l'adreça de correu sense eliminar el vostre compte
+ email_contact_html: Si encara no arriba, podeu enviar un correu-e a %{email} per a demanar ajuda
+ email_reconfirmation_html: Si no rebeu el correu electrònic de confirmació , podeu tornar-lo a demanar
irreversible: No seràs capaç de restaurar o reactivar el teu compte
more_details_html: Per a més detalls, llegeix la política de privadesa.
username_available: El teu nom d'usuari esdevindrà altre cop disponible
diff --git a/config/locales/cy.yml b/config/locales/cy.yml
index 1ae6aa08fff93a..a70d08ed8e5ef0 100644
--- a/config/locales/cy.yml
+++ b/config/locales/cy.yml
@@ -931,6 +931,9 @@ cy:
message_html: Nid ydych wedi diffinio unrhyw reolau gweinydd.
sidekiq_process_check:
message_html: Does dim proses Sidekiq yn rhedeg ar gyfer y ciw(iau) %{value}. Adolygwch eich ffurfweddiad Sidekiq
+ software_version_check:
+ action: Gweld y diweddariadau sydd ar gael
+ message_html: Mae diweddariad Mastodon ar gael.
software_version_critical_check:
action: Gweld y diweddariadau sydd ar gael
message_html: Mae diweddariad hanfodol Mastodon ar gael, diweddarwch cyn gynted â phosibl.
@@ -1796,6 +1799,7 @@ cy:
delete: Dileu cyfrif
development: Datblygu
edit_profile: Golygu proffil
+ export: Allforio
featured_tags: Prif hashnodau
import: Mewnforio
import_and_export: Mewnforio ac allforio
diff --git a/config/locales/de.yml b/config/locales/de.yml
index c82e65282ffe3e..7a8469df614887 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -79,7 +79,7 @@ de:
invite_request_text: Begründung für das Beitreten
invited_by: Eingeladen von
ip: IP-Adresse
- joined: Beigetreten
+ joined: Mitglied seit
location:
all: Alle
local: Lokal
diff --git a/config/locales/doorkeeper.el.yml b/config/locales/doorkeeper.el.yml
index 59877b6bd06766..984eff887127c4 100644
--- a/config/locales/doorkeeper.el.yml
+++ b/config/locales/doorkeeper.el.yml
@@ -60,6 +60,7 @@ el:
error:
title: Εμφανίστηκε σφάλμα
new:
+ prompt_html: Το %{client_name} επιθυμεί το δικαίωμα πρόσβασης στον λογαριασμό σας. Εγκρίνετε αυτό το αίτημα μόνο αν αναγνωρίζετε και εμπιστεύεστε αυτήν την πηγή.
review_permissions: Ανασκόπηση δικαιωμάτων
title: Απαιτείται έγκριση
show:
diff --git a/config/locales/doorkeeper.gl.yml b/config/locales/doorkeeper.gl.yml
index adee6bd3d3ccb4..5d7148b84b0284 100644
--- a/config/locales/doorkeeper.gl.yml
+++ b/config/locales/doorkeeper.gl.yml
@@ -69,7 +69,7 @@ gl:
buttons:
revoke: Retirar autorización
confirmations:
- revoke: Estás segura?
+ revoke: Tes certeza?
index:
authorized_at: Autorizada o %{date}
description_html: Estas aplicacións poden acceder á túa conta usando a API. Se ves aplicacións que non recoñeces, ou hai comportamentos non consentidos dalgunha delas, podes revogar o acceso.
diff --git a/config/locales/el.yml b/config/locales/el.yml
index 610ae4026512a7..4496ec51a67f8a 100644
--- a/config/locales/el.yml
+++ b/config/locales/el.yml
@@ -953,6 +953,7 @@ el:
used_by_over_week:
one: Χρησιμοποιήθηκε από ένα άτομο την τελευταία εβδομάδα
other: Χρησιμοποιήθηκε από %{count} άτομα την τελευταία εβδομάδα
+ title: Προτάσεις και τάσεις
trending: Τάσεις
warning_presets:
add_new: Πρόσθεση νέου
@@ -1037,7 +1038,9 @@ el:
guide_link_text: Μπορεί να συνεισφέρει ο οποιοσδήποτε.
sensitive_content: Ευαίσθητο περιεχόμενο
application_mailer:
+ notification_preferences: Αλλαγή προτιμήσεων email
salutation: "%{name},"
+ settings: 'Αλλαγή προτιμήσεων email: %{link}'
unsubscribe: Κατάργηση εγγραφής
view: 'Προβολή:'
view_profile: Προβολή προφίλ
@@ -1084,6 +1087,7 @@ el:
or_log_in_with: Ή συνδέσου με
privacy_policy_agreement_html: Έχω διαβάσει και συμφωνώ με την πολιτική απορρήτου
progress:
+ confirm: Επιβεβαίωση email
details: Τα στοιχεία σας
review: Η αξιολόγησή μας
rules: Αποδοχή κανόνων
@@ -1123,6 +1127,8 @@ el:
view_strikes: Προβολή προηγούμενων ποινών εναντίον του λογαριασμού σας
too_fast: Η φόρμα υποβλήθηκε πολύ γρήγορα, προσπαθήστε ξανά.
use_security_key: Χρήση κλειδιού ασφαλείας
+ author_attribution:
+ example_title: Δείγμα κειμένου
challenge:
confirm: Συνέχεια
hint_html: "Συμβουλή: Δεν θα σου ζητήσουμε τον κωδικό ασφαλείας σου ξανά για την επόμενη ώρα."
@@ -1342,7 +1348,10 @@ el:
time_started: Ξεκίνησε στις
titles:
blocking: Εισαγωγή αποκλεισμένων λογαριασμών
+ bookmarks: Εισαγωγή σελιδοδεικτών
+ domain_blocking: Εισαγωγή αποκλεισμένων τομέων
following: Εισαγωγή λογαριασμών που ακολουθείτε
+ lists: Εισαγωγή λιστών
type: Τύπος εισαγωγής
type_groups:
destructive: Μπλοκ & σίγαση
@@ -1351,6 +1360,7 @@ el:
bookmarks: Σελιδοδείκτες
domain_blocking: Λίστα αποκλεισμένων τομέων
following: Λίστα ατόμων που ακολουθείτε
+ lists: Λίστες
muting: Λίστα αποσιωπήσεων
upload: Μεταμόρφωση
invites:
@@ -1365,6 +1375,7 @@ el:
'86400': 1 μέρα
expires_in_prompt: Ποτέ
generate: Δημιουργία συνδέσμου πρόσκλησης
+ invalid: Αυτή η πρόσκληση δεν είναι έγκυρη
invited_by: 'Σε προσκάλεσε ο/η:'
max_uses:
one: 1 χρήσης
@@ -1388,6 +1399,11 @@ el:
failed_sign_in_html: Αποτυχημένη προσπάθεια σύνδεσης με %{method} από %{ip} (%{browser})
successful_sign_in_html: Επιτυχής σύνδεση με %{method} από %{ip} (%{browser})
title: Ιστορικό ελέγχου ταυτότητας
+ mail_subscriptions:
+ unsubscribe:
+ action: Ναι, κατάργηση συνδρομής
+ complete: Η συνδρομή καταργήθηκε
+ title: Κατάργηση συνδρομής
media_attachments:
validations:
images_and_video: Δεν γίνεται να προσθέσεις βίντεο σε ανάρτηση που ήδη περιέχει εικόνες
@@ -1467,6 +1483,7 @@ el:
update:
subject: "%{name} επεξεργάστηκε μια ανάρτηση"
notifications:
+ email_events: Συμβάντα για ειδοποιήσεις μέσω email
email_events_hint: 'Επέλεξε συμβάντα για τα οποία θέλεις να λαμβάνεις ειδοποιήσεις μέσω email:'
number:
human:
@@ -1507,12 +1524,18 @@ el:
other: Άλλες
posting_defaults: Προεπιλογές ανάρτησης
public_timelines: Δημόσιες ροές
+ privacy:
+ privacy: Απόρρητο
+ search: Αναζήτηση
privacy_policy:
title: Πολιτική Απορρήτου
reactions:
errors:
limit_reached: Το όριο διαφορετικών αντιδράσεων ξεπεράστηκε
unrecognized_emoji: δεν είναι ένα αναγνωρισμένο emoji
+ redirects:
+ prompt: Αν εμπιστεύεστε αυτόν τον σύνδεσμο, κάντε κλικ σε αυτόν για να συνεχίσετε.
+ title: Αποχωρείτε από το %{instance}.
relationships:
activity: Δραστηριότητα λογαριασμού
confirm_follow_selected_followers: Είσαι βέβαιος ότι θες να ακολουθήσεις τους επιλεγμένους ακόλουθους;
@@ -1548,6 +1571,9 @@ el:
over_daily_limit: Έχεις υπερβεί το όριο των %{limit} προγραμματισμένων αναρτήσεων για εκείνη τη μέρα
over_total_limit: Έχεις υπερβεί το όριο των %{limit} προγραμματισμένων αναρτήσεων
too_soon: Η προγραμματισμένη ημερομηνία πρέπει να είναι στο μέλλον
+ self_destruct:
+ lead_html: Δυστυχώς, το %{domain} κλείνει οριστικά. Αν είχατε λογαριασμό εκεί, δεν θα μπορείτε να συνεχίσετε τη χρήση του, αλλά μπορείτε ακόμα να ζητήσετε ένα αντίγραφο ασφαλείας των δεδομένων σας.
+ title: Αυτός ο διακομιστής κλείνει οριστικά
sessions:
activity: Τελευταία δραστηριότητα
browser: Φυλλομετρητής
@@ -1604,10 +1630,12 @@ el:
delete: Διαγραφή λογαριασμού
development: Ανάπτυξη
edit_profile: Επεξεργασία προφίλ
+ export: Εξαγωγή
featured_tags: Παρεχόμενες ετικέτες
import: Εισαγωγή
import_and_export: Εισαγωγή και εξαγωγή
migrate: Μετακόμιση λογαριασμού
+ notifications: Ειδοποιήσεις μέσω email
preferences: Προτιμήσεις
profile: Προφίλ
relationships: Ακολουθείς και σε ακολουθούν
@@ -1615,6 +1643,12 @@ el:
strikes: Παραπτώματα από ομάδα συντονισμού
two_factor_authentication: Πιστοποίηση 2 παραγόντων
webauthn_authentication: Κλειδιά ασφαλείας
+ severed_relationships:
+ download: Λήψη (%{count})
+ event_type:
+ account_suspension: Αναστολή λογαριασμού (%{target_name})
+ domain_block: Αναστολή διακομιστή (%{target_name})
+ type: Συμβάν
statuses:
attached:
audio:
@@ -1697,11 +1731,13 @@ el:
contrast: Mastodon (Υψηλή αντίθεση)
default: Mastodon (Σκοτεινό)
mastodon-light: Mastodon (Ανοιχτόχρωμο)
+ system: Αυτόματο (θέμα συστήματος)
time:
formats:
default: "%b %d, %Y, %H:%M"
month: "%b %Y"
time: "%H:%M"
+ with_time_zone: "%d %b %Y, %H:%M %Z"
two_factor_authentication:
add: Προσθήκη
disable: Απενεργοποίηση 2FA
@@ -1789,6 +1825,10 @@ el:
feature_action: Μάθε περισσότερα
feature_audience: Το Mastodon σού παρέχει μια μοναδική δυνατότητα διαχείρισης του κοινού σου χωρίς μεσάζοντες. Το Mastodon όταν αναπτύσσεται στη δική σου υποδομή σού επιτρέπει να ακολουθείς και να ακολουθείσαι από οποιονδήποτε άλλο συνδεδεμένο διακομιστή Mastodon και κανείς δεν τον ελέγχει, εκτός από σένα.
feature_audience_title: Χτίσε το κοινό σου με σιγουριά
+ post_action: Σύνθεση
+ share_action: Κοινοποίηση
+ share_title: Μοιραστείτε το προφίλ σας στο Mastodon
+ sign_in_action: Σύνδεση
subject: Καλώς ήρθες στο Mastodon
title: Καλώς όρισες, %{name}!
users:
@@ -1798,7 +1838,10 @@ el:
otp_lost_help_html: Αν χάσεις πρόσβαση και στα δύο, μπορείς να επικοινωνήσεις με %{email}
signed_in_as: 'Έχεις συνδεθεί ως:'
verification:
+ here_is_how: Δείτε πώς
verification: Πιστοποίηση
+ verified_links: Οι επαληθευμένοι σύνδεσμοι σας
+ website_verification: Επαλήθευση ιστοτόπου
webauthn_credentials:
add: Προσθήκη νέου κλειδιού ασφαλείας
create:
diff --git a/config/locales/en.yml b/config/locales/en.yml
index fa57cd73f45af0..746106af429188 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1696,19 +1696,43 @@ en:
overwrite: Overwrite
overwrite_long: Replace current records with the new ones
overwrite_preambles:
- blocking_html: You are about to replace your block list with up to %{total_items} accounts from %{filename}.
- bookmarks_html: You are about to replace your bookmarks with up to %{total_items} posts from %{filename}.
- domain_blocking_html: You are about to replace your domain block list with up to %{total_items} domains from %{filename}.
- following_html: You are about to follow up to %{total_items} accounts from %{filename} and stop following anyone else.
- lists_html: You are about to replace your lists with contents of %{filename}. Up to %{total_items} accounts will be added to new lists.
- muting_html: You are about to replace your list of muted accounts with up to %{total_items} accounts from %{filename}.
+ blocking_html:
+ one: You are about to replace your block list with up to %{count} account from %{filename}.
+ other: You are about to replace your block list with up to %{count} accounts from %{filename}.
+ bookmarks_html:
+ one: You are about to replace your bookmarks with up to %{count} post from %{filename}.
+ other: You are about to replace your bookmarks with up to %{count} posts from %{filename}.
+ domain_blocking_html:
+ one: You are about to replace your domain block list with up to %{count} domain from %{filename}.
+ other: You are about to replace your domain block list with up to %{count} domains from %{filename}.
+ following_html:
+ one: You are about to follow up to %{count} account from %{filename} and stop following anyone else.
+ other: You are about to follow up to %{count} accounts from %{filename} and stop following anyone else.
+ lists_html:
+ one: You are about to replace your lists with contents of %{filename}. Up to %{count} account will be added to new lists.
+ other: You are about to replace your lists with contents of %{filename}. Up to %{count} accounts will be added to new lists.
+ muting_html:
+ one: You are about to replace your list of muted account with up to %{count} account from %{filename}.
+ other: You are about to replace your list of muted accounts with up to %{count} accounts from %{filename}.
preambles:
- blocking_html: You are about to block up to %{total_items} accounts from %{filename}.
- bookmarks_html: You are about to add up to %{total_items} posts from %{filename} to your bookmarks.
- domain_blocking_html: You are about to block up to %{total_items} domains from %{filename}.
- following_html: You are about to follow up to %{total_items} accounts from %{filename}.
- lists_html: You are about to add up to %{total_items} accounts from %{filename} to your lists. New lists will be created if there is no list to add to.
- muting_html: You are about to mute up to %{total_items} accounts from %{filename}.
+ blocking_html:
+ one: You are about to block up to %{count} account from %{filename}.
+ other: You are about to block up to %{count} accounts from %{filename}.
+ bookmarks_html:
+ one: You are about to add up to %{count} post from %{filename} to your bookmarks.
+ other: You are about to add up to %{count} posts from %{filename} to your bookmarks.
+ domain_blocking_html:
+ one: You are about to block up to %{count} domain from %{filename}.
+ other: You are about to block up to %{count} domains from %{filename}.
+ following_html:
+ one: You are about to follow up to %{count} account from %{filename}.
+ other: You are about to follow up to %{count} accounts from %{filename}.
+ lists_html:
+ one: You are about to add up to %{count} account from %{filename} to your lists. New lists will be created if there is no list to add to.
+ other: You are about to add up to %{count} accounts from %{filename} to your lists. New lists will be created if there is no list to add to.
+ muting_html:
+ one: You are about to mute up to %{count} account from %{filename}.
+ other: You are about to mute up to %{count} accounts from %{filename}.
preface: You can import data that you have exported from another server, such as a list of the people you are following or blocking.
recent_imports: Recent imports
states:
diff --git a/config/locales/eo.yml b/config/locales/eo.yml
index a3f968d1396bad..10b297f1a8b70c 100644
--- a/config/locales/eo.yml
+++ b/config/locales/eo.yml
@@ -218,18 +218,22 @@ eo:
update_custom_emoji: Ĝisdatigi proprajn emoĝiojn
update_domain_block: Ĝigdatigi domajnan blokadon
update_ip_block: Krei IP-regulon
+ update_report: Ĝisdatigo de Raporto
update_status: Ĝisdatigi afiŝon
update_user_role: Ĝisdatigi rolon
actions:
approve_appeal_html: "%{name} aprobis apelacion kontraŭ moderiga decido de %{target}"
approve_user_html: "%{name} aprobis registriĝon de %{target}"
assigned_to_self_report_html: "%{name} asignis signalon %{target} al si mem"
+ change_email_user_html: "%{name} ŝanĝis retadreson de uzanto %{target}"
change_role_user_html: "%{name} ŝanĝis rolon de %{target}"
+ confirm_user_html: "%{name} konfirmis retadreson de uzanto %{target}"
create_account_warning_html: "%{name} sendis averton al %{target}"
create_announcement_html: "%{name} kreis novan anoncon %{target}"
create_custom_emoji_html: "%{name} alŝutis novan emoĝion %{target}"
create_domain_allow_html: "%{name} aldonis domajnon %{target} al la blanka listo"
create_domain_block_html: "%{name} blokis domajnon %{target}"
+ create_email_domain_block_html: "%{name} blokis retpoŝtan domajnon %{target}"
create_ip_block_html: "%{name} kreis regulon por IP %{target}"
create_unavailable_domain_html: "%{name} ĉesis sendon al domajno %{target}"
create_user_role_html: "%{name} kreis rolon de %{target}"
@@ -238,6 +242,7 @@ eo:
destroy_custom_emoji_html: "%{name} forigis emoĝion %{target}"
destroy_domain_allow_html: "%{name} forigis domajnon %{target} el la blanka listo"
destroy_domain_block_html: "%{name} malblokis domajnon %{target}"
+ destroy_email_domain_block_html: "%{name} malblokis retpoŝtan domajnon %{target}"
destroy_instance_html: "%{name} forigis domajnon %{target}"
destroy_ip_block_html: "%{name} forigis regulon por IP %{target}"
destroy_status_html: "%{name} forigis mesaĝojn de %{target}"
diff --git a/config/locales/gd.yml b/config/locales/gd.yml
index 90d03c74e15fdb..a030b0d18584e1 100644
--- a/config/locales/gd.yml
+++ b/config/locales/gd.yml
@@ -903,6 +903,9 @@ gd:
message_html: Cha do mhìnich thu riaghailtean an fhrithealaiche fhathast.
sidekiq_process_check:
message_html: Chan eil pròiseas Sidekiq sam bith a ruith dhan chiutha/dha na ciuthan %{value}. Thoir sùil air an rèiteachadh Sidekiq agad
+ software_version_check:
+ action: Faic na h-ùrachaidhean a tha ri fhaighinn
+ message_html: Tha ùrachadh Mastodon ri fhaighinn.
software_version_critical_check:
action: Faic na h-ùrachaidhean a tha ri fhaighinn
message_html: Tha ùrachadh èiginneach air Mastodon ri fhaighinn, ùraich cho luath ’s a ghabhas.
@@ -1021,7 +1024,7 @@ gd:
delete: Sguab às
edit_preset: Deasaich rabhadh ro-shuidhichte
empty: Cha do mhìnich thu ro-sheataichean rabhaidhean fhathast.
- title: Ro-sheataichean rabhaidhean
+ title: Rabhaidhean ro-shocraichte
webhooks:
add_new: Cuir puing-dheiridh ris
delete: Sguab às
@@ -1744,6 +1747,7 @@ gd:
delete: Sguabadh às cunntais
development: Leasachadh
edit_profile: Deasaich a’ phròifil
+ export: Às-phortadh
featured_tags: Tagaichean hais brosnaichte
import: Ion-phortadh
import_and_export: Ion-phortadh ⁊ às-phortadh
diff --git a/config/locales/he.yml b/config/locales/he.yml
index c7af22660f7b16..846b0d14af94aa 100644
--- a/config/locales/he.yml
+++ b/config/locales/he.yml
@@ -903,6 +903,9 @@ he:
message_html: לא הוגדרו שום כללי שרת.
sidekiq_process_check:
message_html: שום הליכי Sidekiq לא רצים עבור %{value} תור(ות). בחנו בבקשה את הגדרות Sidekiq
+ software_version_check:
+ action: ראו עדכונים זמינים
+ message_html: עדכון מסטודון זמין כעת.
software_version_critical_check:
action: ראו עדכונים זמינים
message_html: יצא עדכון קריטי למסטודון, נא לעדכן את תוכנת מסטודון בהקדם האפשרי.
@@ -1744,6 +1747,7 @@ he:
delete: מחיקת חשבון
development: פיתוח
edit_profile: עריכת פרופיל
+ export: ייצוא
featured_tags: תגיות נבחרות
import: יבוא
import_and_export: יבוא ויצוא
diff --git a/config/locales/kab.yml b/config/locales/kab.yml
index 12bda84d463d2a..993488f1fc0934 100644
--- a/config/locales/kab.yml
+++ b/config/locales/kab.yml
@@ -264,6 +264,8 @@ kab:
domain: Taɣult
new:
create: Rnu taɣult
+ export_domain_allows:
+ no_file: Ula d yiwen ufaylu ma yettwafran
export_domain_blocks:
no_file: Ulac afaylu yettwafernen
follow_recommendations:
@@ -529,6 +531,10 @@ kab:
account_status: Addad n umiḍan
functional: Amiḍan-inek·inem yetteddu s lekmal-is.
use_security_key: Seqdec tasarut n teɣlist
+ author_attribution:
+ example_title: Amedya n weḍris
+ more_from_html: Ugar s ɣur %{name}
+ s_blog: Ablug n %{name}
challenge:
confirm: Kemmel
invalid_password: Yir awal uffir
@@ -685,6 +691,9 @@ kab:
subject: Yuder-ik·ikem-id %{name}
reblog:
subject: "%{name} yesselha addad-ik·im"
+ title: Azuzer amaynut
+ status:
+ subject: "%{name} akken i d-y·t·essufeɣ"
number:
human:
decimal_units:
diff --git a/config/locales/lv.yml b/config/locales/lv.yml
index 16844a95c2bd4c..2cc8ff6a497b72 100644
--- a/config/locales/lv.yml
+++ b/config/locales/lv.yml
@@ -34,6 +34,7 @@ lv:
created_msg: Moderācijas piezīme ir veiksmīgi izveidota!
destroyed_msg: Moderācijas piezīme ir veiksmīgi iznīcināta!
accounts:
+ add_email_domain_block: Liegt e-pasta domēnu
approve: Apstiprināt
approved_msg: Veiksmīgi apstiprināts %{username} reģistrēšanās pieteikums
are_you_sure: Vai esi pārliecināts?
@@ -61,6 +62,7 @@ lv:
demote: Pazemināt
destroyed_msg: Lietotāja %{username} dati tagad ievietoti rindā, lai tos nekavējoties izdzēstu
disable: Iesaldēt
+ disable_sign_in_token_auth: Atspējot autentificēšanos ar e-pasta pilnvaru
disable_two_factor_authentication: Atspējot 2FA
disabled: Iesaldēts
display_name: Parādāmais vārds
@@ -69,6 +71,7 @@ lv:
email: E-pasts
email_status: E-pasta statuss
enable: Atsaldēt
+ enable_sign_in_token_auth: Iespējot autentificēšanos ar e-pasta pilnvaru
enabled: Iespējots
enabled_msg: Veiksmīgi atsaldēts %{username} konts
followers: Sekotāji
@@ -180,17 +183,21 @@ lv:
confirm_user: Apstiprināt lietotāju
create_account_warning: Izveidot Brīdinājumu
create_announcement: Izveidot Paziņojumu
+ create_canonical_email_block: Izveidot e-pasta liegumu
create_custom_emoji: Izveidot pielāgotu emocijzīmi
create_domain_allow: Izveidot Domēna Atļauju
create_domain_block: Izveidot Domēna Bloku
+ create_email_domain_block: Izveidot e-pasta domēna liegumu
create_ip_block: Izveidot IP noteikumu
create_unavailable_domain: Izveidot Nepieejamu Domēnu
create_user_role: Izveidot lomu
demote_user: Pazemināt Lietotāju
destroy_announcement: Dzēst Paziņojumu
+ destroy_canonical_email_block: Izdzēst e-pasta liegumu
destroy_custom_emoji: Dzēst pielāgoto emocijzīmi
destroy_domain_allow: Dzēst Domēna Atļauju
destroy_domain_block: Dzēst Domēna Bloku
+ destroy_email_domain_block: Izdzēst e-pasta domēna liegumu
destroy_instance: Attīrīt domēnu
destroy_ip_block: Dzēst IP noteikumu
destroy_status: Izdzēst Rakstu
diff --git a/config/locales/nn.yml b/config/locales/nn.yml
index 8f6afc2426bb9b..ca5e34ee55d80d 100644
--- a/config/locales/nn.yml
+++ b/config/locales/nn.yml
@@ -1,7 +1,7 @@
---
nn:
about:
- about_mastodon_html: 'Framtidas sosiale nettverk: Ingen annonsar, ingen verksemder som overvaker deg, etisk design og desentralisering! Eig idéane dine med Mastodon!'
+ about_mastodon_html: 'Framtidas sosiale nettverk: Ingen annonsar, ingen verksemder som overvaker deg, etisk design og desentralisering! Eig dataene dine med Mastodon!'
contact_missing: Ikkje sett
contact_unavailable: I/T
hosted_on: "%{domain} er vert for Mastodon"
@@ -39,7 +39,7 @@ nn:
avatar: Bilete
by_domain: Domene
change_email:
- changed_msg: Konto-e-posten er endra!
+ changed_msg: E-post for konto er endra!
current_email: Noverande e-post
label: Byt e-post
new_email: Ny e-post
@@ -62,7 +62,7 @@ nn:
disable: Slå av
disable_sign_in_token_auth: Slå av e-post-token-autentisering
disable_two_factor_authentication: Slå av 2FA
- disabled: Slege av
+ disabled: Inaktiv
display_name: Synleg namn
domain: Domene
edit: Rediger
diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml
index 5e7317c5fbb730..6451e7c601ace5 100644
--- a/config/locales/pt-BR.yml
+++ b/config/locales/pt-BR.yml
@@ -1888,7 +1888,7 @@ pt-BR:
none: Aviso
sensitive: Conta marcada como sensível
silence: Conta silenciada
- suspend: Conta banida
+ suspend: Conta suspensa
welcome:
apps_android_action: Disponível no Google Play
apps_ios_action: Disponível na App Store
diff --git a/config/locales/sc.yml b/config/locales/sc.yml
index 306e670b7182ca..9ab62cea71e56b 100644
--- a/config/locales/sc.yml
+++ b/config/locales/sc.yml
@@ -30,17 +30,25 @@ sc:
created_msg: As creadu una nota de moderatzione.
destroyed_msg: As cantzelladu una nota de moderatzione.
accounts:
+ add_email_domain_block: Bloca domìniu de posta eletrònica
approve: Aprova
approved_msg: Sa dimanda de registru de %{username} est istada aprovada
are_you_sure: Seguru?
avatar: Immàgine de profilu
by_domain: Domìniu
change_email:
+ changed_msg: Indiritzu eletrònicu de su contu modificadu!
current_email: Indiritzu eletrònicu atuale
label: Muda s'indiritzu eletrònicu
new_email: Indiritzu eletrònicu nou
submit: Muda s'indiritzu eletrònicu
title: Muda s'indiritzu eletrònicu de %{username}
+ change_role:
+ changed_msg: Ruolu modificadu.
+ edit_roles: Gesti is ruolos de utente
+ label: Modifica su ruolu
+ no_role: Nissunu ruolu
+ title: Modifica su ruolu de %{username}
confirm: Cunfirma
confirmed: Cunfirmadu
confirming: Cunfirmende
@@ -91,6 +99,7 @@ sc:
most_recent_ip: IP prus reghente
no_account_selected: Perunu contu est istadu mudadu, dae chi non nd'as seletzionadu
no_limits_imposed: Sena lìmites
+ no_role_assigned: Nissunu ruolu assignadu
not_subscribed: Sena sutiscritzione
pending: De revisionare
perform_full_suspension: Suspèndidu
@@ -108,12 +117,19 @@ sc:
removed_header_msg: S'immàgine de intestatzione de %{username} est istada bogada
resend_confirmation:
already_confirmed: Custa persone est giai cunfirmada
+ send: Torra a imbiare su ligòngiu de cunfirmatzione
+ success: Ligòngiu de cunfirmatzione imbiadu.
reset: Reseta
reset_password: Reseta sa crae
resubscribe: Torra a sutascrìere
+ role: Ruolu
search: Chirca
+ search_same_email_domain: Àteras persones cun su pròpiu domìniu de posta
search_same_ip: Àteras persones cun sa pròpiu IP
security: Seguresa
+ security_measures:
+ only_password: Crae isceti
+ password_and_2fa: Crae e 2FA
sensitive: Sensìbile
sensitized: Marcadu comente sensìbile
shared_inbox_url: URL de intrada cumpartzida
@@ -129,6 +145,8 @@ sc:
suspension_irreversible: Is datos de custu contu sunt istados cantzellados in manera irreversìbile. Podes bogare sa suspensione a su contu pro chi si potzat impreare, ma no at a recuperare datu perunu de is chi teniat in antis.
suspension_reversible_hint_html: Su contu est istadu suspèndidu, e is datos ant a èssere cantzelladu de su totu su %{date}. Finas a tando, su contu si podet ripristinare sena efetu malu perunu. Si boles cantzellare totu is datos de su contu immediatamente ddu podes fàghere inoghe in bassu.
title: Contos
+ unblock_email: Isbloca s'indiritzu de posta eletrònica
+ unblocked_email_msg: Posta eletrònica de %{username} isblocada
unconfirmed_email: Posta eletrònica sena cunfirmare
undo_sensitized: Boga sa marcadura comente sensìbile
undo_silenced: Non pòngias a sa muda
@@ -143,21 +161,31 @@ sc:
whitelisted: Federatzione permìtida
action_logs:
action_types:
+ approve_user: Aprova s'utente
assigned_to_self_report: Assigna s'informe
+ change_email_user: Muda s'indiritzu eletrònicu pro s'utente
+ change_role_user: Muda su ruolu de s'utente
confirm_user: Cunfirma s'utente
create_account_warning: Crea un'avisu
create_announcement: Crea un'annùntziu
+ create_canonical_email_block: Crea unu blocu de posta eletrònica
create_custom_emoji: Crea un'emoji personalizadu
create_domain_allow: Crea unu domìniu permìtidu
create_domain_block: Crea unu blocu de domìniu
+ create_email_domain_block: Crea unu blocu de domìniu de posta eletrònica
create_ip_block: Crea una règula IP
+ create_unavailable_domain: Crea unu domìniu no a disponimentu
+ create_user_role: Crea unu ruolu
demote_user: Degrada s'utente
destroy_announcement: Cantzella s'annùntziu
+ destroy_canonical_email_block: Cantzella su blocu de posta eletrònica
destroy_custom_emoji: Cantzella s'emoji personalizadu
destroy_domain_allow: Cantzella su domìniu permìtidu
destroy_domain_block: Cantzella su blocu de domìniu
+ destroy_email_domain_block: Cantzella su blocu de domìniu de posta eletrònica
destroy_ip_block: Cantzella sa règula IP
destroy_status: Cantzella s'istadu
+ destroy_unavailable_domain: Cantzella su domìniu no a disponimentu
disable_2fa_user: Disativa 2FA
disable_custom_emoji: Disativa s'emoji personalizadu
disable_user: Disativa utente
@@ -165,23 +193,33 @@ sc:
enable_user: Ativa utente
memorialize_account: Torra in unu contu de regordu
promote_user: Promove utente
+ reject_user: Refuda s'utente
remove_avatar_user: Cantzella immàgine de profilu
reopen_report: Torra a abèrrere s'informe
+ resend_user: Torra a imbiare messàgiu eletrònicu de cunfirmatzione
reset_password_user: Reseta sa crae
resolve_report: Isorve s'informe
sensitive_account: Marca is cuntenutos multimediales in su contu tuo comente sensìbiles
silence_account: Pone custu contu a sa muda
suspend_account: Suspende custu contu
unassigned_report: Boga s'assignatzione de custu informe
+ unblock_email_account: Isbloca s'indiritzu de posta eletrònica
unsensitive_account: Boga sa marcadura "sensìbiles" a is elementos multimediales in su contu tuo
unsilence_account: Boga custu contu de is contos a sa muda
unsuspend_account: Boga custu contu de is contos suspèndidos
update_announcement: Atualiza s'annùntziu
update_custom_emoji: Atualiza s'emoji personalizadu
update_domain_block: Atualiza blocu de domìniu
+ update_ip_block: Atualiza sa règula IP
+ update_report: Atualiza s'informe
update_status: Atualiza s'istadu
+ update_user_role: Atualiza su ruolu
actions:
+ approve_user_html: "%{name} at aprovadu su registru de %{target}"
assigned_to_self_report_html: "%{name} s'est auto-assignadu s'informe %{target}"
+ change_email_user_html: "%{name} at mudadu s'indiritzu de posta eletrònica de s'utente %{target}"
+ change_role_user_html: "%{name} at mudadu su ruolu de %{target}"
+ confirm_user_html: "%{name} at cunfirmadu s'indiritzu de posta eletrònica de s'utente %{target}"
create_account_warning_html: "%{name} at imbiadu un'avisu a %{target}"
create_announcement_html: "%{name} at creadu un'annùntziu nou %{target}"
create_custom_emoji_html: "%{name} at carrigadu un'emoji nou %{target}"
@@ -291,6 +329,8 @@ sc:
confirm_suspension:
cancel: Annulla
confirm: Suspende
+ remove_all_data: Custu at a cantzellare totu su cuntenutu, elementos multimediales e datos de profilu pro is contos de custu domìniu dae su serbidore tuo.
+ stop_communication: Su serbidore tuo at a tzessare sa comunicatzione cun custos serbidores.
title: Cunfirma su blocu de domìniu de %{domain}
created_msg: Protzessende su blocu de domìniu
destroyed_msg: Su blocu de domìniu est istadu iscontzadu
@@ -361,9 +401,12 @@ sc:
dashboard:
instance_accounts_dimension: Contos prus sighidos
instance_accounts_measure: contos sarvados
+ instance_languages_dimension: Limbas printzipales
instance_reports_measure: informes a subra de àtere
+ instance_statuses_measure: publicatziones sarvadas
delivery:
all: Totus
+ unavailable: No a disponimentu
delivery_available: Sa cunsigna est a disponimentu
empty: Perunu domìniu agatadu.
known_accounts:
diff --git a/config/locales/simple_form.lv.yml b/config/locales/simple_form.lv.yml
index 9cc32457f7465f..523e9a5fccd3ad 100644
--- a/config/locales/simple_form.lv.yml
+++ b/config/locales/simple_form.lv.yml
@@ -86,6 +86,7 @@ lv:
custom_css: Vari lietot pielāgotus stilus Mastodon tīmekļa versijā.
favicon: WEBP, PNG, GIF vai JPG. Aizstāj noklusējuma Mastodon favikonu ar pielāgotu.
mascot: Ignorē ilustrāciju uzlabotajā tīmekļa saskarnē.
+ media_cache_retention_period: Informācijas nesēju datnes no ierakstiem, kurus ir veikuši attālie lietotāji, tiek kešoti šajā serverī. Kad ir iestatīta apstiprinoša vērtība, informācijas nesēji tiks izdzēsti pēc norādītā dienu skaita. Ja informācijas nesēju dati tiks pieprasīti pēc tam, kad tie tika izdzēsti, tie tiks atkārtoti lejupielādēti, ja avota saturs joprojām būs pieejams. Saišu priekšskatījuma karšu vaicājumu biežuma ierobežojumu dēļ ir ieteicams iestatīt šo vērtību vismaz 14 dienas vai saišu priekšskatījuma kartes netiks atjauninātas pēc pieprasījuma pirms tā laika.
peers_api_enabled: Domēna vārdu saraksts, ar kuriem šis serveris ir saskāries fediversā. Šeit nav iekļauti dati par to, vai tu veic federāciju ar noteiktu serveri, tikai tavs serveris par to zina. To izmanto dienesti, kas apkopo statistiku par federāciju vispārīgā nozīmē.
profile_directory: Profilu direktorijā ir uzskaitīti visi lietotāji, kuri ir izvēlējušies būt atklājami.
require_invite_text: 'Ja pierakstīšanai nepieciešama manuāla apstiprināšana, izdari tā, lai teksta: “Kāpēc vēlaties pievienoties?” ievade ir obligāta, nevis opcionāla'
diff --git a/config/locales/sk.yml b/config/locales/sk.yml
index 8076682ed46e12..399ecc061af0db 100644
--- a/config/locales/sk.yml
+++ b/config/locales/sk.yml
@@ -8,10 +8,10 @@ sk:
title: Ohľadom
accounts:
followers:
- few: Sledovateľov
+ few: Sledujúcich
many: Sledovateľov
one: Sledujúci
- other: Sledovatelia
+ other: Sledujúci
following: Nasledujem
instance_actor_flash: Toto konto je virtuálny aktér, ktorý predstavuje samotný server, a nie konkrétneho používateľa. Používa sa na účely federácie a nemal by byť pozastavený.
last_active: naposledy aktívny
@@ -1167,7 +1167,7 @@ sk:
dormant: Spiace
follow_failure: Nemožno nasledovať niektoré z vybraných účtov.
follow_selected_followers: Následuj označených sledovatelov
- followers: Následovatelia
+ followers: Sledovatelia
following: Nasledovaní
invited: Pozvaný/á
last_active: Naposledy aktívny
diff --git a/config/locales/tr.yml b/config/locales/tr.yml
index 738263191150de..f1e09837054afc 100644
--- a/config/locales/tr.yml
+++ b/config/locales/tr.yml
@@ -1,7 +1,7 @@
---
tr:
about:
- about_mastodon_html: Mastodon ücretsiz ve açık kaynaklı bir sosyal ağdır. Merkezileştirilmemiş yapısı sayesinde diğer ticari sosyal platformların aksine iletişimininizin tek bir firmada tutulmasının/yönetilmesinin önüne geçer. Güvendiğiniz bir sunucuyu seçerek oradaki kişilerle etkileşimde bulunabilirsiniz. Herkes kendi Mastodon sunucusunu kurabilir ve sorunsuz bir şekilde Mastodon sosyal ağına dahil edebilir.
+ about_mastodon_html: Mastodon ücretsiz ve açık kaynaklı bir sosyal ağdır. Merkezi olmayan yapısı sayesinde diğer ticari sosyal platformların aksine iletişimininizin tek bir firmada tutulmasının/yönetilmesinin önüne geçer. Güvendiğiniz bir sunucuyu seçerek oradaki kişilerle etkileşimde bulunabilirsiniz. Herkes kendi Mastodon sunucusunu kurabilir ve sorunsuz bir şekilde Mastodon sosyal ağına dahil edebilir!
contact_missing: Ayarlanmadı
contact_unavailable: Bulunamadı
hosted_on: Mastodon %{domain} üzerinde barındırılıyor
diff --git a/config/navigation.rb b/config/navigation.rb
index 87d6d7dbecb1e2..ebcbf1027513b9 100644
--- a/config/navigation.rb
+++ b/config/navigation.rb
@@ -30,18 +30,18 @@
n.item :filters, safe_join([material_symbol('filter_alt'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters}, if: -> { current_user.functional? && !self_destruct }
n.item :statuses_cleanup, safe_join([material_symbol('history'), t('settings.statuses_cleanup')]), statuses_cleanup_path, if: -> { current_user.functional_or_moved? && !self_destruct }
- n.item :security, safe_join([material_symbol('lock'), t('settings.account')]), edit_user_registration_path do |s|
- s.item :password, safe_join([material_symbol('lock'), t('settings.account_settings')]), edit_user_registration_path, highlights_on: %r{/auth/edit|/settings/delete|/settings/migration|/settings/aliases|/settings/login_activities|^/disputes}
+ n.item :security, safe_join([material_symbol('account_circle'), t('settings.account')]), edit_user_registration_path do |s|
+ s.item :password, safe_join([material_symbol('lock'), t('settings.account_settings')]), edit_user_registration_path, highlights_on: %r{^/auth|/settings/delete|/settings/migration|/settings/aliases|/settings/login_activities|^/disputes}
s.item :two_factor_authentication, safe_join([material_symbol('safety_check'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_methods_path, highlights_on: %r{/settings/two_factor_authentication|/settings/otp_authentication|/settings/security_keys}
s.item :authorized_apps, safe_join([material_symbol('list_alt'), t('settings.authorized_apps')]), oauth_authorized_applications_path, if: -> { !self_destruct }
end
n.item :data, safe_join([material_symbol('cloud_sync'), t('settings.import_and_export')]), settings_export_path do |s|
- s.item :import, safe_join([material_symbol('cloud_upload'), t('settings.import')]), settings_imports_path, if: -> { current_user.functional? && !self_destruct }
+ s.item :import, safe_join([material_symbol('cloud_upload'), t('settings.import')]), settings_imports_path, highlights_on: %r{/settings/imports}, if: -> { current_user.functional? && !self_destruct }
s.item :export, safe_join([material_symbol('cloud_download'), t('settings.export')]), settings_export_path
end
- n.item :invites, safe_join([material_symbol('person_add'), t('invites.title')]), invites_path, if: -> { current_user.can?(:invite_users) && current_user.functional? && !self_destruct }
+ n.item :user_invites, safe_join([material_symbol('person_add'), t('invites.title')]), invites_path, if: -> { current_user.can?(:invite_users) && current_user.functional? && !self_destruct }
n.item :development, safe_join([material_symbol('code'), t('settings.development')]), settings_applications_path, highlights_on: %r{/settings/applications}, if: -> { current_user.functional? && !self_destruct }
n.item :trends, safe_join([material_symbol('trending_up'), t('admin.trends.title')]), admin_trends_statuses_path, if: -> { current_user.can?(:manage_taxonomies) && !self_destruct } do |s|
@@ -62,7 +62,9 @@
s.item :ng_rules, safe_join([material_symbol('edit'), t('admin.ng_rules.title')]), admin_ng_rules_path, highlights_on: %r{/admin/(ng_rules|ng_rule_histories)}, if: -> { current_user.can?(:manage_ng_words) }
s.item :sensitive_words, safe_join([material_symbol('list'), t('admin.sensitive_words.title')]), admin_sensitive_words_path, highlights_on: %r{/admin/sensitive_words}, if: -> { current_user.can?(:manage_sensitive_words) }
s.item :invites, safe_join([material_symbol('person_add'), t('admin.invites.title')]), admin_invites_path, if: -> { current_user.can?(:manage_invites) }
- s.item :instances, safe_join([material_symbol('cloud'), t('admin.instances.title')]), admin_instances_path(limited: limited_federation_mode? ? nil : '1'), highlights_on: %r{/admin/instances|/admin/domain_blocks|/admin/domain_allows}, if: -> { current_user.can?(:manage_federation) }
+ s.item :instances, safe_join([material_symbol('cloud'), t('admin.instances.title')]), admin_instances_path(limited: limited_federation_mode? ? nil : '1'), highlights_on: %r{/admin/instances|/admin/domain_blocks|/admin/domain_allows|/admin/export_domain_blocks}, if: lambda {
+ current_user.can?(:manage_federation)
+ }
s.item :special_instances, safe_join([material_symbol('list'), t('admin.special_instances.title')]), admin_special_instances_path, highlights_on: %r{/admin/special_instances}, if: -> { current_user.can?(:manage_federation) }
s.item :special_domains, safe_join([material_symbol('link'), t('admin.special_domains.title')]), admin_special_domains_path, highlights_on: %r{/admin/special_domains}, if: -> { current_user.can?(:manage_federation) }
s.item :email_domain_blocks, safe_join([material_symbol('mail'), t('admin.email_domain_blocks.title')]), admin_email_domain_blocks_path, highlights_on: %r{/admin/email_domain_blocks}, if: -> { current_user.can?(:manage_blocks) }
diff --git a/config/routes.rb b/config/routes.rb
index 9cf512b8fb2046..f6d362c7720102 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -74,7 +74,7 @@ def redirect_with_vary(path)
scope path: '.well-known' do
scope module: :well_known do
get 'oauth-authorization-server', to: 'oauth_metadata#show', as: :oauth_metadata, defaults: { format: 'json' }
- get 'host-meta', to: 'host_meta#show', as: :host_meta, defaults: { format: 'xml' }
+ get 'host-meta', to: 'host_meta#show', as: :host_meta
get 'nodeinfo', to: 'node_info#index', as: :nodeinfo, defaults: { format: 'json' }
get 'webfinger', to: 'webfinger#show', as: :webfinger
end
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index 9c858087c412f4..9f6da976dd177c 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -178,8 +178,10 @@
end
resources :users, only: [] do
- resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
- resource :role, only: [:show, :update], controller: 'users/roles'
+ scope module: :users do
+ resource :two_factor_authentication, only: [:destroy]
+ resource :role, only: [:show, :update]
+ end
end
resources :custom_emojis, only: [:index, :new, :create, :edit, :update] do
diff --git a/db/migrate/.rubocop.yml b/db/migrate/.rubocop.yml
index 4e23800dd14965..6f8b6cc60da42e 100644
--- a/db/migrate/.rubocop.yml
+++ b/db/migrate/.rubocop.yml
@@ -2,3 +2,8 @@ inherit_from: ../../.rubocop.yml
Naming/VariableNumber:
CheckSymbols: false
+
+# Enabled here as workaround for https://docs.rubocop.org/rubocop/configuration.html#path-relativity
+Rails/CreateTableWithTimestamps:
+ Include:
+ - '*.rb'
diff --git a/db/migrate/20170508230434_create_conversation_mutes.rb b/db/migrate/20170508230434_create_conversation_mutes.rb
index 01122c45166a92..4beba9dfa32009 100644
--- a/db/migrate/20170508230434_create_conversation_mutes.rb
+++ b/db/migrate/20170508230434_create_conversation_mutes.rb
@@ -2,7 +2,7 @@
class CreateConversationMutes < ActiveRecord::Migration[5.0]
def change
- create_table :conversation_mutes do |t|
+ create_table :conversation_mutes do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.integer :account_id, null: false
t.bigint :conversation_id, null: false
end
diff --git a/db/migrate/20170823162448_create_status_pins.rb b/db/migrate/20170823162448_create_status_pins.rb
index c8d3fab3a5128e..2cf3a85ca9de6b 100644
--- a/db/migrate/20170823162448_create_status_pins.rb
+++ b/db/migrate/20170823162448_create_status_pins.rb
@@ -2,7 +2,7 @@
class CreateStatusPins < ActiveRecord::Migration[5.1]
def change
- create_table :status_pins do |t|
+ create_table :status_pins do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :account, foreign_key: { on_delete: :cascade }, null: false
t.belongs_to :status, foreign_key: { on_delete: :cascade }, null: false
end
diff --git a/db/migrate/20171116161857_create_list_accounts.rb b/db/migrate/20171116161857_create_list_accounts.rb
index ff9ab3faad89bc..b0371e4c884771 100644
--- a/db/migrate/20171116161857_create_list_accounts.rb
+++ b/db/migrate/20171116161857_create_list_accounts.rb
@@ -2,7 +2,7 @@
class CreateListAccounts < ActiveRecord::Migration[5.2]
def change
- create_table :list_accounts do |t|
+ create_table :list_accounts do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :list, foreign_key: { on_delete: :cascade }, null: false
t.belongs_to :account, foreign_key: { on_delete: :cascade }, null: false
t.belongs_to :follow, foreign_key: { on_delete: :cascade }, null: false
diff --git a/db/migrate/20180929222014_create_account_conversations.rb b/db/migrate/20180929222014_create_account_conversations.rb
index 9386b86e7c9181..4e85e68d4771f5 100644
--- a/db/migrate/20180929222014_create_account_conversations.rb
+++ b/db/migrate/20180929222014_create_account_conversations.rb
@@ -2,7 +2,7 @@
class CreateAccountConversations < ActiveRecord::Migration[5.2]
def change
- create_table :account_conversations do |t|
+ create_table :account_conversations do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :account, foreign_key: { on_delete: :cascade }
t.belongs_to :conversation, foreign_key: { on_delete: :cascade }
t.bigint :participant_account_ids, array: true, null: false, default: []
diff --git a/db/migrate/20181007025445_create_pghero_space_stats.rb b/db/migrate/20181007025445_create_pghero_space_stats.rb
index ddaf4aef31c6f0..696b53d8d77518 100644
--- a/db/migrate/20181007025445_create_pghero_space_stats.rb
+++ b/db/migrate/20181007025445_create_pghero_space_stats.rb
@@ -2,7 +2,7 @@
class CreatePgheroSpaceStats < ActiveRecord::Migration[5.2]
def change
- create_table :pghero_space_stats do |t|
+ create_table :pghero_space_stats do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.text :database
t.text :schema
t.text :relation
diff --git a/db/migrate/20190103124649_create_scheduled_statuses.rb b/db/migrate/20190103124649_create_scheduled_statuses.rb
index a66546187eed57..02b4916be86281 100644
--- a/db/migrate/20190103124649_create_scheduled_statuses.rb
+++ b/db/migrate/20190103124649_create_scheduled_statuses.rb
@@ -2,7 +2,7 @@
class CreateScheduledStatuses < ActiveRecord::Migration[5.2]
def change
- create_table :scheduled_statuses do |t|
+ create_table :scheduled_statuses do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :account, foreign_key: { on_delete: :cascade }
t.datetime :scheduled_at, index: true
t.jsonb :params
diff --git a/db/migrate/20220824233535_create_status_trends.rb b/db/migrate/20220824233535_create_status_trends.rb
index 52dcbf8f38e9e5..e68e5b7c11aa5d 100644
--- a/db/migrate/20220824233535_create_status_trends.rb
+++ b/db/migrate/20220824233535_create_status_trends.rb
@@ -2,7 +2,7 @@
class CreateStatusTrends < ActiveRecord::Migration[6.1]
def change
- create_table :status_trends do |t|
+ create_table :status_trends do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.references :status, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
t.references :account, null: false, foreign_key: { on_delete: :cascade }
t.float :score, null: false, default: 0
diff --git a/db/migrate/20221006061337_create_preview_card_trends.rb b/db/migrate/20221006061337_create_preview_card_trends.rb
index 934a06e24d1728..266f6440239751 100644
--- a/db/migrate/20221006061337_create_preview_card_trends.rb
+++ b/db/migrate/20221006061337_create_preview_card_trends.rb
@@ -2,7 +2,7 @@
class CreatePreviewCardTrends < ActiveRecord::Migration[6.1]
def change
- create_table :preview_card_trends do |t|
+ create_table :preview_card_trends do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.references :preview_card, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
t.float :score, null: false, default: 0
t.integer :rank, null: false, default: 0
diff --git a/lib/mastodon/cli/media.rb b/lib/mastodon/cli/media.rb
index 70c11ee1a15b94..996b7fd92ca3b6 100644
--- a/lib/mastodon/cli/media.rb
+++ b/lib/mastodon/cli/media.rb
@@ -177,7 +177,7 @@ def remove_orphans
attachment_name = path_segments[1].singularize
file_name = path_segments.last
- next unless PRELOAD_MODEL_WHITELIST.include?(model_name)
+ next unless PRELOADED_MODELS.include?(model_name)
record = model_name.constantize.find_by(id: record_id)
attachment = record&.public_send(attachment_name)
@@ -278,14 +278,10 @@ def refresh
desc 'usage', 'Calculate disk space consumed by Mastodon'
def usage
- say("Attachments:\t#{number_to_human_size(media_attachment_storage_size)} (#{number_to_human_size(local_media_attachment_storage_size)} local)")
- say("Custom emoji:\t#{number_to_human_size(CustomEmoji.sum(:image_file_size))} (#{number_to_human_size(CustomEmoji.local.sum(:image_file_size))} local)")
- say("Preview cards:\t#{number_to_human_size(PreviewCard.sum(:image_file_size))}")
- say("Avatars:\t#{number_to_human_size(Account.sum(:avatar_file_size))} (#{number_to_human_size(Account.local.sum(:avatar_file_size))} local)")
- say("Headers:\t#{number_to_human_size(Account.sum(:header_file_size))} (#{number_to_human_size(Account.local.sum(:header_file_size))} local)")
- say("Backups:\t#{number_to_human_size(Backup.sum(:dump_file_size))}")
- say("Imports:\t#{number_to_human_size(Import.sum(:data_file_size))}")
- say("Settings:\t#{number_to_human_size(SiteUpload.sum(:file_file_size))}")
+ print_table [
+ %w(Object Total Local),
+ *object_storage_summary,
+ ]
end
desc 'lookup URL', 'Lookup where media is displayed by passing a media URL'
@@ -300,7 +296,7 @@ def lookup(url)
model_name = path_segments.first.classify
record_id = path_segments[2...-2].join.to_i
- fail_with_message "Cannot find corresponding model: #{model_name}" unless PRELOAD_MODEL_WHITELIST.include?(model_name)
+ fail_with_message "Cannot find corresponding model: #{model_name}" unless PRELOADED_MODELS.include?(model_name)
record = model_name.constantize.find_by(id: record_id)
record = record.status if record.respond_to?(:status)
@@ -318,23 +314,26 @@ def lookup(url)
private
- def media_attachment_storage_size
- MediaAttachment.sum(file_and_thumbnail_size_sql)
+ def object_storage_summary
+ [
+ [:attachments, MediaAttachment.sum(combined_media_sum), MediaAttachment.where(account: Account.local).sum(combined_media_sum)],
+ [:custom_emoji, CustomEmoji.sum(:image_file_size), CustomEmoji.local.sum(:image_file_size)],
+ [:avatars, Account.sum(:avatar_file_size), Account.local.sum(:avatar_file_size)],
+ [:headers, Account.sum(:header_file_size), Account.local.sum(:header_file_size)],
+ [:preview_cards, PreviewCard.sum(:image_file_size), nil],
+ [:backups, Backup.sum(:dump_file_size), nil],
+ [:imports, Import.sum(:data_file_size), nil],
+ [:settings, SiteUpload.sum(:file_file_size), nil],
+ ].map { |label, total, local| [label.to_s.titleize, number_to_human_size(total), local.present? ? number_to_human_size(local) : nil] }
end
- def local_media_attachment_storage_size
- MediaAttachment.where(account: Account.local).sum(file_and_thumbnail_size_sql)
+ def combined_media_sum
+ Arel.sql(<<~SQL.squish)
+ COALESCE(file_file_size, 0) + COALESCE(thumbnail_file_size, 0)
+ SQL
end
- def file_and_thumbnail_size_sql
- Arel.sql(
- <<~SQL.squish
- COALESCE(file_file_size, 0) + COALESCE(thumbnail_file_size, 0)
- SQL
- )
- end
-
- PRELOAD_MODEL_WHITELIST = %w(
+ PRELOADED_MODELS = %w(
Account
Backup
CustomEmoji
@@ -356,7 +355,7 @@ def preload_records_from_mixed_objects(objects)
model_name = segments.first.classify
record_id = segments[2...-2].join.to_i
- next unless PRELOAD_MODEL_WHITELIST.include?(model_name)
+ next unless PRELOADED_MODELS.include?(model_name)
preload_map[model_name] << record_id
end
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb
index 9753be02a0e882..0ff818728529d0 100644
--- a/lib/mastodon/version.rb
+++ b/lib/mastodon/version.rb
@@ -25,7 +25,7 @@ def major
end
def minor
- 3
+ 4
end
def patch
@@ -33,7 +33,7 @@ def patch
end
def default_prerelease
- 'rc.1'
+ 'alpha.1'
end
def prerelease
diff --git a/lib/sanitize_ext/sanitize_config.rb b/lib/sanitize_ext/sanitize_config.rb
index 29c53c1bab1cf6..f55db1d2bb1e9d 100644
--- a/lib/sanitize_ext/sanitize_config.rb
+++ b/lib/sanitize_ext/sanitize_config.rb
@@ -21,7 +21,7 @@ module Config
gemini
).freeze
- CLASS_WHITELIST_TRANSFORMER = lambda do |env|
+ ALLOWED_CLASS_TRANSFORMER = lambda do |env|
node = env[:node]
class_list = node['class']&.split(/[\t\n\f\r ]/)
@@ -107,7 +107,7 @@ module Config
protocols: {},
transformers: [
- CLASS_WHITELIST_TRANSFORMER,
+ ALLOWED_CLASS_TRANSFORMER,
TRANSLATE_TRANSFORMER,
UNSUPPORTED_ELEMENTS_TRANSFORMER,
UNSUPPORTED_HREF_TRANSFORMER,
diff --git a/lib/tasks/icons.rake b/lib/tasks/icons.rake
index 96e0a143150584..9a05cf349914d2 100644
--- a/lib/tasks/icons.rake
+++ b/lib/tasks/icons.rake
@@ -38,6 +38,20 @@ def find_used_icons
end
end
+ Rails.root.join('config', 'navigation.rb').open('r') do |file|
+ pattern = /material_symbol\('(?[^']*)'\)/
+ file.each_line do |line|
+ match = pattern.match(line)
+ next if match.blank?
+
+ # navigation.rb only uses 400x24 icons, per material_symbol() in
+ # app/helpers/application_helper.rb
+ icons_by_weight_and_size[400] ||= {}
+ icons_by_weight_and_size[400][24] ||= Set.new
+ icons_by_weight_and_size[400][24] << match['icon']
+ end
+ end
+
icons_by_weight_and_size
end
diff --git a/spec/controllers/auth/sessions_controller_spec.rb b/spec/controllers/auth/sessions_controller_spec.rb
index ddb6f3633cff24..d4769a4722e1e1 100644
--- a/spec/controllers/auth/sessions_controller_spec.rb
+++ b/spec/controllers/auth/sessions_controller_spec.rb
@@ -247,7 +247,7 @@
context 'when using two-factor authentication' do
context 'with OTP enabled as second factor' do
let!(:user) do
- Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret(32))
+ Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret)
end
let!(:recovery_codes) do
@@ -269,7 +269,7 @@
context 'when using email and password after an unfinished log-in attempt to a 2FA-protected account' do
let!(:other_user) do
- Fabricate(:user, email: 'z@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret(32))
+ Fabricate(:user, email: 'z@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret)
end
before do
@@ -381,7 +381,7 @@
context 'with WebAuthn and OTP enabled as second factor' do
let!(:user) do
- Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret(32))
+ Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret)
end
let!(:webauthn_credential) do
diff --git a/spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb b/spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb
index 34eaacdf498f96..224310b7ef3043 100644
--- a/spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb
+++ b/spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb
@@ -18,7 +18,7 @@
def qr_code_markup
RQRCode::QRCode.new(
'otpauth://totp/cb6e6126.ngrok.io:local-part%40domain?secret=thisisasecretforthespecofnewview&issuer=cb6e6126.ngrok.io'
- ).as_svg(padding: 0, module_size: 4)
+ ).as_svg(padding: 0, module_size: 4, use_path: true)
end
end
diff --git a/spec/fabricators/account_domain_block_fabricator.rb b/spec/fabricators/account_domain_block_fabricator.rb
index 83df509da2cc85..a211b7c6667031 100644
--- a/spec/fabricators/account_domain_block_fabricator.rb
+++ b/spec/fabricators/account_domain_block_fabricator.rb
@@ -2,5 +2,5 @@
Fabricator(:account_domain_block) do
account { Fabricate.build(:account) }
- domain 'example.com'
+ domain { sequence { |n| "host-#{n}.example" } }
end
diff --git a/spec/lib/activitypub/activity/create_spec.rb b/spec/lib/activitypub/activity/create_spec.rb
index fad45d3cb744c0..e1661386fd9955 100644
--- a/spec/lib/activitypub/activity/create_spec.rb
+++ b/spec/lib/activitypub/activity/create_spec.rb
@@ -74,6 +74,24 @@
}
end
+ let(:invalid_mention_json) do
+ {
+ id: [ActivityPub::TagManager.instance.uri_for(sender), 'post2'].join('/'),
+ type: 'Note',
+ to: [
+ 'https://www.w3.org/ns/activitystreams#Public',
+ ActivityPub::TagManager.instance.uri_for(follower),
+ ],
+ content: '@bob lorem ipsum',
+ published: 1.hour.ago.utc.iso8601,
+ updated: 1.hour.ago.utc.iso8601,
+ tag: {
+ type: 'Mention',
+ href: 'http://notexisting.dontexistingtld/actor',
+ },
+ }
+ end
+
def activity_for_object(json)
{
'@context': 'https://www.w3.org/ns/activitystreams',
@@ -128,6 +146,25 @@ def activity_for_object(json)
# Creates two notifications
expect(Notification.count).to eq 2
end
+
+ it 'ignores unprocessable mention', :aggregate_failures do
+ stub_request(:get, invalid_mention_json[:tag][:href]).to_raise(HTTP::ConnectionError)
+ # When receiving the post that contains an invalid mention…
+ described_class.new(activity_for_object(invalid_mention_json), sender, delivery: true).perform
+
+ # NOTE: Refering explicitly to the workers is a bit awkward
+ DistributionWorker.drain
+ FeedInsertWorker.drain
+
+ # …it creates a status
+ status = Status.find_by(uri: invalid_mention_json[:id])
+
+ # Check the process did not crash
+ expect(status.nil?).to be false
+
+ # It has queued a mention resolve job
+ expect(MentionResolveWorker).to have_enqueued_sidekiq_job(status.id, invalid_mention_json[:tag][:href], anything)
+ end
end
describe '#perform' do
diff --git a/spec/mailers/notification_mailer_spec.rb b/spec/mailers/notification_mailer_spec.rb
index 4c6107d9f76fce..d97c01858da6b9 100644
--- a/spec/mailers/notification_mailer_spec.rb
+++ b/spec/mailers/notification_mailer_spec.rb
@@ -14,6 +14,17 @@
end
end
+ shared_examples 'delivery without status' do
+ context 'when notification target_status is missing' do
+ before { allow(notification).to receive(:target_status).and_return(nil) }
+
+ it 'does not deliver mail' do
+ emails = capture_emails { mail.deliver_now }
+ expect(emails).to be_empty
+ end
+ end
+ end
+
let(:receiver) { Fabricate(:user, account_attributes: { username: 'alice' }) }
let(:sender) { Fabricate(:account, username: 'bob') }
let(:foreign_status) { Fabricate(:status, account: sender, text: 'The body of the foreign status') }
@@ -37,6 +48,7 @@
end
include_examples 'delivery to non functional user'
+ include_examples 'delivery without status'
end
describe 'follow' do
@@ -75,6 +87,7 @@
end
include_examples 'delivery to non functional user'
+ include_examples 'delivery without status'
end
describe 'reblog' do
@@ -95,6 +108,7 @@
end
include_examples 'delivery to non functional user'
+ include_examples 'delivery without status'
end
describe 'follow_request' do
diff --git a/spec/models/export_spec.rb b/spec/models/export_spec.rb
index 06bf07ed78a314..81aaf8858556fe 100644
--- a/spec/models/export_spec.rb
+++ b/spec/models/export_spec.rb
@@ -3,66 +3,104 @@
require 'rails_helper'
RSpec.describe Export do
+ subject { described_class.new(account) }
+
let(:account) { Fabricate(:account) }
let(:target_accounts) do
- [{}, { username: 'one', domain: 'local.host' }].map(&method(:Fabricate).curry(2).call(:account))
+ [
+ Fabricate(:account),
+ Fabricate(:account, username: 'one', domain: 'local.host'),
+ ]
end
- describe 'to_csv' do
- it 'returns a csv of the blocked accounts' do
- target_accounts.each { |target_account| account.block!(target_account) }
+ describe '#to_bookmarks_csv' do
+ before { Fabricate.times(2, :bookmark, account: account) }
- export = described_class.new(account).to_blocked_accounts_csv
- results = export.strip.split
+ let(:export) { CSV.parse(subject.to_bookmarks_csv) }
- expect(results.size).to eq 2
- expect(results.first).to eq 'one@local.host'
+ it 'returns a csv of bookmarks' do
+ expect(export)
+ .to contain_exactly(
+ include(/statuses/),
+ include(/statuses/)
+ )
end
+ end
- it 'returns a csv of the muted accounts' do
- target_accounts.each { |target_account| account.mute!(target_account) }
+ describe '#to_blocked_accounts_csv' do
+ before { target_accounts.each { |target_account| account.block!(target_account) } }
- export = described_class.new(account).to_muted_accounts_csv
- results = export.strip.split("\n")
+ let(:export) { CSV.parse(subject.to_blocked_accounts_csv) }
- expect(results.size).to eq 3
- expect(results.first).to eq 'Account address,Hide notifications'
- expect(results.second).to eq 'one@local.host,true'
+ it 'returns a csv of the blocked accounts' do
+ expect(export)
+ .to contain_exactly(
+ include('one@local.host'),
+ include(be_present)
+ )
end
+ end
- it 'returns a csv of the following accounts' do
- target_accounts.each { |target_account| account.follow!(target_account) }
+ describe '#to_muted_accounts_csv' do
+ before { target_accounts.each { |target_account| account.mute!(target_account) } }
- export = described_class.new(account).to_following_accounts_csv
- results = export.strip.split("\n")
+ let(:export) { CSV.parse(subject.to_muted_accounts_csv) }
- expect(results.size).to eq 3
- expect(results.first).to eq 'Account address,Show boosts,Notify on new posts,Languages'
- expect(results.second).to eq 'one@local.host,true,false,'
+ it 'returns a csv of the muted accounts' do
+ expect(export)
+ .to contain_exactly(
+ contain_exactly('Account address', 'Hide notifications'),
+ include('one@local.host', 'true'),
+ include(be_present)
+ )
end
end
- describe 'total_storage' do
- it 'returns the total size of the media attachments' do
- media_attachment = Fabricate(:media_attachment, account: account)
- expect(described_class.new(account).total_storage).to eq media_attachment.file_file_size || 0
+ describe '#to_following_accounts_csv' do
+ before { target_accounts.each { |target_account| account.follow!(target_account) } }
+
+ let(:export) { CSV.parse(subject.to_following_accounts_csv) }
+
+ it 'returns a csv of the following accounts' do
+ expect(export)
+ .to contain_exactly(
+ contain_exactly('Account address', 'Show boosts', 'Notify on new posts', 'Languages'),
+ include('one@local.host', 'true', 'false', be_blank),
+ include(be_present)
+ )
end
end
- describe 'total_follows' do
- it 'returns the total number of the followed accounts' do
- target_accounts.each { |target_account| account.follow!(target_account) }
- expect(described_class.new(account.reload).total_follows).to eq 2
+ describe '#to_lists_csv' do
+ before do
+ target_accounts.each do |target_account|
+ account.follow!(target_account)
+ Fabricate(:list, account: account).accounts << target_account
+ end
end
- it 'returns the total number of the blocked accounts' do
- target_accounts.each { |target_account| account.block!(target_account) }
- expect(described_class.new(account.reload).total_blocks).to eq 2
+ let(:export) { CSV.parse(subject.to_lists_csv) }
+
+ it 'returns a csv of the lists' do
+ expect(export)
+ .to contain_exactly(
+ include('one@local.host'),
+ include(be_present)
+ )
end
+ end
+
+ describe '#to_blocked_domains_csv' do
+ before { Fabricate.times(2, :account_domain_block, account: account) }
+
+ let(:export) { CSV.parse(subject.to_blocked_domains_csv) }
- it 'returns the total number of the muted accounts' do
- target_accounts.each { |target_account| account.mute!(target_account) }
- expect(described_class.new(account.reload).total_mutes).to eq 2
+ it 'returns a csv of the blocked domains' do
+ expect(export)
+ .to contain_exactly(
+ include(/example/),
+ include(/example/)
+ )
end
end
end
diff --git a/spec/models/report_filter_spec.rb b/spec/models/report_filter_spec.rb
index 8668eb3d1085e8..51933e475adb70 100644
--- a/spec/models/report_filter_spec.rb
+++ b/spec/models/report_filter_spec.rb
@@ -30,4 +30,17 @@
expect(Report).to have_received(:resolved)
end
end
+
+ context 'when given remote target_origin and also by_target_domain' do
+ let!(:matching_report) { Fabricate :report, target_account: Fabricate(:account, domain: 'match.example') }
+ let!(:non_matching_report) { Fabricate :report, target_account: Fabricate(:account, domain: 'other.example') }
+
+ it 'preserves the domain value' do
+ filter = described_class.new(by_target_domain: 'match.example', target_origin: 'remote')
+
+ expect(filter.results)
+ .to include(matching_report)
+ .and not_include(non_matching_report)
+ end
+ end
end
diff --git a/spec/presenters/export_summary_spec.rb b/spec/presenters/export_summary_spec.rb
new file mode 100644
index 00000000000000..0ed46c857d5fee
--- /dev/null
+++ b/spec/presenters/export_summary_spec.rb
@@ -0,0 +1,86 @@
+# frozen_string_literal: true
+
+require 'rails_helper'
+
+RSpec.describe ExportSummary do
+ subject { described_class.new(account) }
+
+ let(:account) { Fabricate(:account) }
+ let(:target_accounts) do
+ [
+ Fabricate(:account),
+ Fabricate(:account, username: 'one', domain: 'local.host'),
+ ]
+ end
+
+ describe '#total_storage' do
+ it 'returns the total size of the media attachments' do
+ media_attachment = Fabricate(:media_attachment, account: account)
+ expect(subject.total_storage).to eq media_attachment.file_file_size || 0
+ end
+ end
+
+ describe '#total_statuses' do
+ before { Fabricate.times(2, :status, account: account) }
+
+ it 'returns the total number of statuses' do
+ expect(subject.total_statuses).to eq(2)
+ end
+ end
+
+ describe '#total_bookmarks' do
+ before { Fabricate.times(2, :bookmark, account: account) }
+
+ it 'returns the total number of bookmarks' do
+ expect(subject.total_bookmarks).to eq(2)
+ end
+ end
+
+ describe '#total_follows' do
+ before { target_accounts.each { |target_account| account.follow!(target_account) } }
+
+ it 'returns the total number of the followed accounts' do
+ expect(subject.total_follows).to eq(2)
+ end
+ end
+
+ describe '#total_lists' do
+ before { Fabricate.times(2, :list, account: account) }
+
+ it 'returns the total number of lists' do
+ expect(subject.total_lists).to eq(2)
+ end
+ end
+
+ describe '#total_followers' do
+ before { target_accounts.each { |target_account| target_account.follow!(account) } }
+
+ it 'returns the total number of the follower accounts' do
+ expect(subject.total_followers).to eq(2)
+ end
+ end
+
+ describe '#total_blocks' do
+ before { target_accounts.each { |target_account| account.block!(target_account) } }
+
+ it 'returns the total number of the blocked accounts' do
+ expect(subject.total_blocks).to eq(2)
+ end
+ end
+
+ describe '#total_mutes' do
+ before { target_accounts.each { |target_account| account.mute!(target_account) } }
+
+ it 'returns the total number of the muted accounts' do
+ expect(subject.total_mutes).to eq(2)
+ end
+ end
+
+ describe '#total_domain_blocks' do
+ before { Fabricate.times(2, :account_domain_block, account: account) }
+
+ it 'returns the total number of account domain blocks' do
+ expect(subject.total_domain_blocks).to eq(2)
+ end
+ end
+end
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index ee03b49bc6aa16..84cee0974f1a42 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -161,6 +161,11 @@ def sign_in(resource, _deprecated = nil, scope: nil)
host! Rails.configuration.x.local_domain
end
+ config.before :each, type: :system do
+ # Align with capybara config so that rails helpers called from rspec use matching host
+ host! 'localhost:3000'
+ end
+
config.after do
Rails.cache.clear
redis.del(redis.keys)
diff --git a/spec/requests/auth/sessions/security_key_options_spec.rb b/spec/requests/auth/sessions/security_key_options_spec.rb
index 6246e4beb315f7..e53b9802b4c820 100644
--- a/spec/requests/auth/sessions/security_key_options_spec.rb
+++ b/spec/requests/auth/sessions/security_key_options_spec.rb
@@ -6,7 +6,7 @@
RSpec.describe 'Security Key Options' do
describe 'GET /auth/sessions/security_key_options' do
let!(:user) do
- Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret(32))
+ Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret)
end
context 'with WebAuthn and OTP enabled as second factor' do
diff --git a/spec/requests/well_known/host_meta_spec.rb b/spec/requests/well_known/host_meta_spec.rb
index 09f17baa894d64..8d8e38f5217243 100644
--- a/spec/requests/well_known/host_meta_spec.rb
+++ b/spec/requests/well_known/host_meta_spec.rb
@@ -3,25 +3,62 @@
require 'rails_helper'
RSpec.describe 'The /.well-known/host-meta request' do
- it 'returns http success with valid XML response' do
- get '/.well-known/host-meta'
-
- expect(response)
- .to have_http_status(200)
- .and have_attributes(
- media_type: 'application/xrd+xml',
- body: host_meta_xml_template
- )
+ context 'without extension format or accept header' do
+ it 'returns http success with expected XML' do
+ get '/.well-known/host-meta'
+
+ expect(response)
+ .to have_http_status(200)
+ .and have_attributes(
+ media_type: 'application/xrd+xml'
+ )
+
+ expect(xrd_link_template_value)
+ .to eq 'https://cb6e6126.ngrok.io/.well-known/webfinger?resource={uri}'
+ end
+
+ def xrd_link_template_value
+ response
+ .parsed_body
+ .at_xpath('/xrd:XRD/xrd:Link[@rel="lrdd"]/@template', 'xrd' => 'http://docs.oasis-open.org/ns/xri/xrd-1.0')
+ .value
+ end
+ end
+
+ context 'with a .json format extension' do
+ it 'returns http success with expected JSON' do
+ get '/.well-known/host-meta.json'
+
+ expect(response)
+ .to have_http_status(200)
+ .and have_attributes(
+ media_type: 'application/json'
+ )
+ expect(response.parsed_body)
+ .to include(expected_json_template)
+ end
end
- private
+ context 'with a JSON `Accept` header' do
+ it 'returns http success with expected JSON' do
+ get '/.well-known/host-meta', headers: { 'Accept' => 'application/json' }
+
+ expect(response)
+ .to have_http_status(200)
+ .and have_attributes(
+ media_type: 'application/json'
+ )
+ expect(response.parsed_body)
+ .to include(expected_json_template)
+ end
+ end
- def host_meta_xml_template
- <<~XML
-
-
-
-
- XML
+ def expected_json_template
+ {
+ links: [
+ 'rel' => 'lrdd',
+ 'template' => 'https://cb6e6126.ngrok.io/.well-known/webfinger?resource={uri}',
+ ],
+ }
end
end
diff --git a/spec/routing/well_known_routes_spec.rb b/spec/routing/well_known_routes_spec.rb
index 6578e939ae1e14..84081059bba75e 100644
--- a/spec/routing/well_known_routes_spec.rb
+++ b/spec/routing/well_known_routes_spec.rb
@@ -4,9 +4,14 @@
RSpec.describe 'Well Known routes' do
describe 'the host-meta route' do
- it 'routes to correct place with xml format' do
+ it 'routes to correct place' do
expect(get('/.well-known/host-meta'))
- .to route_to('well_known/host_meta#show', format: 'xml')
+ .to route_to('well_known/host_meta#show')
+ end
+
+ it 'routes to correct place with json format' do
+ expect(get('/.well-known/host-meta.json'))
+ .to route_to('well_known/host_meta#show', format: 'json')
end
end
diff --git a/spec/services/account_statuses_cleanup_service_spec.rb b/spec/services/account_statuses_cleanup_service_spec.rb
index 857bd4fda499af..553d20029a6624 100644
--- a/spec/services/account_statuses_cleanup_service_spec.rb
+++ b/spec/services/account_statuses_cleanup_service_spec.rb
@@ -27,39 +27,35 @@
end
context 'when given a normal budget of 10' do
- it 'reports 3 deleted statuses' do
- expect(subject.call(account_policy, 10)).to eq 3
- end
-
- it 'records the last deleted id' do
- subject.call(account_policy, 10)
- expect(account_policy.last_inspected).to eq [old_status.id, another_old_status.id].max
- end
-
- it 'actually deletes the statuses' do
- subject.call(account_policy, 10)
- expect(Status.find_by(id: [very_old_status.id, old_status.id, another_old_status.id])).to be_nil
- expect { recent_status.reload }.to_not raise_error
- end
-
- it 'preserves recent and unrelated statuses' do
- subject.call(account_policy, 10)
- expect { unrelated_status.reload }.to_not raise_error
- expect { recent_status.reload }.to_not raise_error
+ it 'reports 3 deleted statuses and records last deleted id, deletes statuses, preserves recent unrelated statuses' do
+ expect(subject.call(account_policy, 10))
+ .to eq(3)
+
+ expect(account_policy.last_inspected)
+ .to eq [old_status.id, another_old_status.id].max
+
+ expect(Status.find_by(id: [very_old_status.id, old_status.id, another_old_status.id]))
+ .to be_nil
+ expect { recent_status.reload }
+ .to_not raise_error
+ expect { unrelated_status.reload }
+ .to_not raise_error
+ expect { recent_status.reload }
+ .to_not raise_error
end
end
context 'when called repeatedly with a budget of 2' do
- it 'reports 2 then 1 deleted statuses' do
- expect(subject.call(account_policy, 2)).to eq 2
- expect(subject.call(account_policy, 2)).to eq 1
- end
-
- it 'actually deletes the statuses in the expected order' do
- subject.call(account_policy, 2)
- expect(Status.find_by(id: very_old_status.id)).to be_nil
- subject.call(account_policy, 2)
- expect(Status.find_by(id: [very_old_status.id, old_status.id, another_old_status.id])).to be_nil
+ it 'reports 2 then 1 deleted statuses and deletes in expected order' do
+ expect(subject.call(account_policy, 2))
+ .to eq(2)
+ expect(Status.find_by(id: very_old_status.id))
+ .to be_nil
+
+ expect(subject.call(account_policy, 2))
+ .to eq(1)
+ expect(Status.find_by(id: [very_old_status.id, old_status.id, another_old_status.id]))
+ .to be_nil
end
end
@@ -90,19 +86,24 @@
end
end
- it 'reports 0 deleted statuses then 0 then 3 then 0 again' do
- expect(subject.call(account_policy, 10)).to eq 0
- expect(subject.call(account_policy, 10)).to eq 0
- expect(subject.call(account_policy, 10)).to eq 3
- expect(subject.call(account_policy, 10)).to eq 0
+ it 'reports 0 deleted statuses then 0 then 3 then 0 again, and keeps id under oldest deletable record' do
+ expect(subject.call(account_policy, 10))
+ .to eq(0)
+ expect(subject.call(account_policy, 10))
+ .to eq(0)
+ expect(subject.call(account_policy, 10))
+ .to eq(3)
+ expect(subject.call(account_policy, 10))
+ .to eq(0)
+ expect(account_policy.last_inspected)
+ .to be < oldest_deletable_record_id
end
- it 'never causes the recorded id to get higher than oldest deletable toot' do
- subject.call(account_policy, 10)
- subject.call(account_policy, 10)
- subject.call(account_policy, 10)
- subject.call(account_policy, 10)
- expect(account_policy.last_inspected).to be < Mastodon::Snowflake.id_at(account_policy.min_status_age.seconds.ago, with_random: false)
+ def oldest_deletable_record_id
+ Mastodon::Snowflake.id_at(
+ account_policy.min_status_age.seconds.ago,
+ with_random: false
+ )
end
end
end
diff --git a/spec/services/activitypub/process_status_update_service_spec.rb b/spec/services/activitypub/process_status_update_service_spec.rb
index 37be11e6628694..62dc556b8c3b3b 100644
--- a/spec/services/activitypub/process_status_update_service_spec.rb
+++ b/spec/services/activitypub/process_status_update_service_spec.rb
@@ -2,10 +2,6 @@
require 'rails_helper'
-def poll_option_json(name, votes)
- { type: 'Note', name: name, replies: { type: 'Collection', totalItems: votes } }
-end
-
RSpec.describe ActivityPub::ProcessStatusUpdateService do
subject { described_class.new }
@@ -338,7 +334,6 @@ def poll_option_json(name, votes)
context 'when originally without media attachments' do
before do
stub_request(:get, 'https://example.com/foo.png').to_return(body: attachment_fixture('emojo.png'))
- subject.call(status, json, json)
end
let(:payload) do
@@ -354,19 +349,18 @@ def poll_option_json(name, votes)
}
end
- it 'updates media attachments' do
- media_attachment = status.reload.ordered_media_attachments.first
+ it 'updates media attachments, fetches attachment, records media change in edit' do
+ subject.call(status, json, json)
- expect(media_attachment).to_not be_nil
- expect(media_attachment.remote_url).to eq 'https://example.com/foo.png'
- end
+ expect(status.reload.ordered_media_attachments.first)
+ .to be_present
+ .and(have_attributes(remote_url: 'https://example.com/foo.png'))
- it 'fetches the attachment' do
- expect(a_request(:get, 'https://example.com/foo.png')).to have_been_made
- end
+ expect(a_request(:get, 'https://example.com/foo.png'))
+ .to have_been_made
- it 'records media change in edit' do
- expect(status.edits.reload.last.ordered_media_attachment_ids).to_not be_empty
+ expect(status.edits.reload.last.ordered_media_attachment_ids)
+ .to_not be_empty
end
end
@@ -388,27 +382,26 @@ def poll_option_json(name, votes)
before do
allow(RedownloadMediaWorker).to receive(:perform_async)
- subject.call(status, json, json)
end
- it 'updates the existing media attachment in-place' do
- media_attachment = status.media_attachments.ordered.reload.first
+ it 'updates the existing media attachment in-place, does not queue redownload, updates media, records media change' do
+ subject.call(status, json, json)
- expect(media_attachment).to_not be_nil
- expect(media_attachment.remote_url).to eq 'https://example.com/foo.png'
- expect(media_attachment.description).to eq 'A picture'
- end
+ expect(status.media_attachments.ordered.reload.first)
+ .to be_present
+ .and have_attributes(
+ remote_url: 'https://example.com/foo.png',
+ description: 'A picture'
+ )
- it 'does not queue redownload for the existing media attachment' do
- expect(RedownloadMediaWorker).to_not have_received(:perform_async)
- end
+ expect(RedownloadMediaWorker)
+ .to_not have_received(:perform_async)
- it 'updates media attachments' do
- expect(status.ordered_media_attachments.map(&:remote_url)).to eq %w(https://example.com/foo.png)
- end
+ expect(status.ordered_media_attachments.map(&:remote_url))
+ .to eq %w(https://example.com/foo.png)
- it 'records media change in edit' do
- expect(status.edits.reload.last.ordered_media_attachment_ids).to_not be_empty
+ expect(status.edits.reload.last.ordered_media_attachment_ids)
+ .to_not be_empty
end
end
@@ -416,10 +409,11 @@ def poll_option_json(name, votes)
before do
poll = Fabricate(:poll, status: status)
status.update(preloadable_poll: poll)
- subject.call(status, json, json)
end
it 'removes poll and records media change in edit' do
+ subject.call(status, json, json)
+
expect(status.reload.poll).to be_nil
expect(status.edits.reload.last.poll_options).to be_nil
end
@@ -442,15 +436,13 @@ def poll_option_json(name, votes)
}
end
- before do
+ it 'creates a poll and records media change in edit' do
subject.call(status, json, json)
- end
- it 'creates a poll and records media change in edit' do
- poll = status.reload.poll
+ expect(status.reload.poll)
+ .to be_present
+ .and have_attributes(options: %w(Foo Bar Baz))
- expect(poll).to_not be_nil
- expect(poll.options).to eq %w(Foo Bar Baz)
expect(status.edits.reload.last.poll_options).to eq %w(Foo Bar Baz)
end
end
@@ -738,4 +730,8 @@ def poll_option_json(name, votes)
end
end
end
+
+ def poll_option_json(name, votes)
+ { type: 'Note', name: name, replies: { type: 'Collection', totalItems: votes } }
+ end
end
diff --git a/spec/services/authorize_follow_service_spec.rb b/spec/services/authorize_follow_service_spec.rb
index 533b791fb7f6e7..de2857280249cb 100644
--- a/spec/services/authorize_follow_service_spec.rb
+++ b/spec/services/authorize_follow_service_spec.rb
@@ -12,15 +12,15 @@
before do
FollowRequest.create(account: bob, target_account: sender)
- subject.call(bob, sender)
end
- it 'removes follow request' do
- expect(bob.requested?(sender)).to be false
- end
+ it 'removes follow request and creates follow relation' do
+ subject.call(bob, sender)
- it 'creates follow relation' do
- expect(bob.following?(sender)).to be true
+ expect(bob)
+ .to_not be_requested(sender)
+ expect(bob)
+ .to be_following(sender)
end
end
@@ -30,19 +30,17 @@
before do
FollowRequest.create(account: bob, target_account: sender)
stub_request(:post, bob.inbox_url).to_return(status: 200)
- subject.call(bob, sender)
end
- it 'removes follow request' do
- expect(bob.requested?(sender)).to be false
- end
-
- it 'creates follow relation' do
- expect(bob.following?(sender)).to be true
- end
+ it 'removes follow request, creates follow relation, send accept activity', :inline_jobs do
+ subject.call(bob, sender)
- it 'sends an accept activity', :inline_jobs do
- expect(a_request(:post, bob.inbox_url)).to have_been_made.once
+ expect(bob)
+ .to_not be_requested(sender)
+ expect(bob)
+ .to be_following(sender)
+ expect(a_request(:post, bob.inbox_url))
+ .to have_been_made.once
end
end
end
diff --git a/spec/services/batched_remove_status_service_spec.rb b/spec/services/batched_remove_status_service_spec.rb
index 628bb198ef06f3..1ff73a633b1002 100644
--- a/spec/services/batched_remove_status_service_spec.rb
+++ b/spec/services/batched_remove_status_service_spec.rb
@@ -24,32 +24,38 @@
status_alice_hello
status_alice_other
+ end
+ it 'removes status records, removes from author and local follower feeds, notifies stream, sends delete' do
subject.call([status_alice_hello, status_alice_other])
- end
- it 'removes statuses' do
- expect { Status.find(status_alice_hello.id) }.to raise_error ActiveRecord::RecordNotFound
- expect { Status.find(status_alice_other.id) }.to raise_error ActiveRecord::RecordNotFound
- end
+ expect { Status.find(status_alice_hello.id) }
+ .to raise_error ActiveRecord::RecordNotFound
+ expect { Status.find(status_alice_other.id) }
+ .to raise_error ActiveRecord::RecordNotFound
- it 'removes statuses from author\'s home feed' do
- expect(HomeFeed.new(alice).get(10).pluck(:id)).to_not include(status_alice_hello.id, status_alice_other.id)
- end
+ expect(feed_ids_for(alice))
+ .to_not include(status_alice_hello.id, status_alice_other.id)
- it 'removes statuses from local follower\'s home feed' do
- expect(HomeFeed.new(jeff).get(10).pluck(:id)).to_not include(status_alice_hello.id, status_alice_other.id)
- end
+ expect(feed_ids_for(jeff))
+ .to_not include(status_alice_hello.id, status_alice_other.id)
- it 'notifies streaming API of followers' do
- expect(redis).to have_received(:publish).with("timeline:#{jeff.id}", any_args).at_least(:once)
- end
+ expect(redis)
+ .to have_received(:publish)
+ .with("timeline:#{jeff.id}", any_args).at_least(:once)
+
+ expect(redis)
+ .to have_received(:publish)
+ .with('timeline:public', any_args).at_least(:once)
- it 'notifies streaming API of public timeline' do
- expect(redis).to have_received(:publish).with('timeline:public', any_args).at_least(:once)
+ expect(a_request(:post, 'http://example.com/inbox'))
+ .to have_been_made.at_least_once
end
- it 'sends delete activity to followers' do
- expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.at_least_once
+ def feed_ids_for(account)
+ HomeFeed
+ .new(account)
+ .get(10)
+ .pluck(:id)
end
end
diff --git a/spec/services/block_service_spec.rb b/spec/services/block_service_spec.rb
index 46dd69198699a4..d9687a5404dc0a 100644
--- a/spec/services/block_service_spec.rb
+++ b/spec/services/block_service_spec.rb
@@ -26,15 +26,16 @@
before do
stub_request(:post, 'http://example.com/inbox').to_return(status: 200)
- subject.call(sender, bob)
end
- it 'creates a blocking relation' do
- expect(sender.blocking?(bob)).to be true
- end
+ it 'creates a blocking relation and send block activity', :inline_jobs do
+ subject.call(sender, bob)
+
+ expect(sender)
+ .to be_blocking(bob)
- it 'sends a block activity', :inline_jobs do
- expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
+ expect(a_request(:post, 'http://example.com/inbox'))
+ .to have_been_made.once
end
end
end
diff --git a/spec/services/bulk_import_service_spec.rb b/spec/services/bulk_import_service_spec.rb
index 0197f81a448dd7..f52fc4d7d5e83a 100644
--- a/spec/services/bulk_import_service_spec.rb
+++ b/spec/services/bulk_import_service_spec.rb
@@ -24,30 +24,19 @@
].map { |data| import.rows.create!(data: data) }
end
- before do
- account.follow!(Fabricate(:account))
- end
-
- it 'does not immediately change who the account follows' do
- expect { subject.call(import) }.to_not(change { account.reload.active_relationships.to_a })
- end
+ before { account.follow!(Fabricate(:account)) }
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows.map(&:id))
- end
-
- it 'requests to follow all the listed users once the workers have run' do
- subject.call(import)
+ it 'does not immediately change who the account follows, enqueues workers, sends follow requests after worker run' do
+ expect { subject.call(import) }
+ .to_not(change { account.reload.active_relationships.to_a })
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows.map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(FollowRequest.includes(:target_account).where(account: account).map { |follow_request| follow_request.target_account.acct }).to contain_exactly('user@foo.bar', 'unknown@unknown.bar')
+ expect(FollowRequest.includes(:target_account).where(account: account).map { |follow_request| follow_request.target_account.acct })
+ .to contain_exactly('user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -71,31 +60,20 @@
account.follow!(to_be_unfollowed)
end
- it 'unfollows user not present on list' do
- subject.call(import)
- expect(account.following?(to_be_unfollowed)).to be false
- end
-
- it 'updates the existing follow relationship as expected' do
- expect { subject.call(import) }.to change { Follow.where(account: account, target_account: followed).pick(:show_reblogs, :notify, :languages) }.from([true, false, nil]).to([false, true, ['en']])
- end
+ it 'updates the existing follow relationship as expected and unfollows user not on list, enqueues workers, sends follow reqs after worker run' do
+ expect { subject.call(import) }
+ .to change { Follow.where(account: account, target_account: followed).pick(:show_reblogs, :notify, :languages) }.from([true, false, nil]).to([false, true, ['en']])
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows[1..].map(&:id))
- end
-
- it 'requests to follow all the expected users once the workers have run' do
- subject.call(import)
+ expect(account)
+ .to_not be_following(to_be_unfollowed)
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows[1..].map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(FollowRequest.includes(:target_account).where(account: account).map { |follow_request| follow_request.target_account.acct }).to contain_exactly('user@foo.bar', 'unknown@unknown.bar')
+ expect(FollowRequest.includes(:target_account).where(account: account).map { |follow_request| follow_request.target_account.acct })
+ .to contain_exactly('user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -110,30 +88,19 @@
].map { |data| import.rows.create!(data: data) }
end
- before do
- account.block!(Fabricate(:account, username: 'already_blocked', domain: 'remote.org'))
- end
-
- it 'does not immediately change who the account blocks' do
- expect { subject.call(import) }.to_not(change { account.reload.blocking.to_a })
- end
+ before { account.block!(Fabricate(:account, username: 'already_blocked', domain: 'remote.org')) }
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows.map(&:id))
- end
-
- it 'blocks all the listed users once the workers have run' do
- subject.call(import)
+ it 'does not immediately change who the account blocks, enqueues worker, blocks after run' do
+ expect { subject.call(import) }
+ .to_not(change { account.reload.blocking.to_a })
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows.map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(account.blocking.map(&:acct)).to contain_exactly('already_blocked@remote.org', 'user@foo.bar', 'unknown@unknown.bar')
+ expect(account.reload.blocking.map(&:acct))
+ .to contain_exactly('already_blocked@remote.org', 'user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -157,27 +124,18 @@
account.block!(to_be_unblocked)
end
- it 'unblocks user not present on list' do
+ it 'unblocks user not present on list, enqueues worker, requests follow after run' do
subject.call(import)
- expect(account.blocking?(to_be_unblocked)).to be false
- end
-
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows[1..].map(&:id))
- end
- it 'requests to follow all the expected users once the workers have run' do
- subject.call(import)
+ expect(account.blocking?(to_be_unblocked)).to be false
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows[1..].map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(account.blocking.map(&:acct)).to contain_exactly('blocked@foo.bar', 'user@foo.bar', 'unknown@unknown.bar')
+ expect(account.blocking.map(&:acct))
+ .to contain_exactly('blocked@foo.bar', 'user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -192,30 +150,19 @@
].map { |data| import.rows.create!(data: data) }
end
- before do
- account.mute!(Fabricate(:account, username: 'already_muted', domain: 'remote.org'))
- end
-
- it 'does not immediately change who the account blocks' do
- expect { subject.call(import) }.to_not(change { account.reload.muting.to_a })
- end
-
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows.map(&:id))
- end
+ before { account.mute!(Fabricate(:account, username: 'already_muted', domain: 'remote.org')) }
- it 'mutes all the listed users once the workers have run' do
- subject.call(import)
+ it 'does not immediately change who the account blocks, enqueures worker, mutes users after worker run' do
+ expect { subject.call(import) }
+ .to_not(change { account.reload.muting.to_a })
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows.map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(account.muting.map(&:acct)).to contain_exactly('already_muted@remote.org', 'user@foo.bar', 'unknown@unknown.bar')
+ expect(account.reload.muting.map(&:acct))
+ .to contain_exactly('already_muted@remote.org', 'user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -239,31 +186,19 @@
account.mute!(to_be_unmuted)
end
- it 'updates the existing mute as expected' do
- expect { subject.call(import) }.to change { Mute.where(account: account, target_account: muted).pick(:hide_notifications) }.from(false).to(true)
- end
+ it 'updates the existing mute as expected and unblocks user not on list, and enqueues worker, and requests follow after worker run' do
+ expect { subject.call(import) }
+ .to change { Mute.where(account: account, target_account: muted).pick(:hide_notifications) }.from(false).to(true)
- it 'unblocks user not present on list' do
- subject.call(import)
expect(account.muting?(to_be_unmuted)).to be false
- end
-
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows[1..].map(&:id))
- end
-
- it 'requests to follow all the expected users once the workers have run' do
- subject.call(import)
- resolve_account_service_double = instance_double(ResolveAccountService)
- allow(ResolveAccountService).to receive(:new).and_return(resolve_account_service_double)
- allow(resolve_account_service_double).to receive(:call).with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
- allow(resolve_account_service_double).to receive(:call).with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+ expect(row_worker_job_args)
+ .to match_array(rows[1..].map(&:id))
- Import::RowWorker.drain
+ stub_resolve_account_and_drain_workers
- expect(account.muting.map(&:acct)).to contain_exactly('muted@foo.bar', 'user@foo.bar', 'unknown@unknown.bar')
+ expect(account.muting.map(&:acct))
+ .to contain_exactly('muted@foo.bar', 'user@foo.bar', 'unknown@unknown.bar')
end
end
@@ -284,13 +219,11 @@
account.block_domain!('blocked.com')
end
- it 'blocks all the new domains' do
+ it 'blocks all the new domains and marks import finished' do
subject.call(import)
- expect(account.domain_blocks.pluck(:domain)).to contain_exactly('alreadyblocked.com', 'blocked.com', 'to-block.com')
- end
- it 'marks the import as finished' do
- subject.call(import)
+ expect(account.domain_blocks.pluck(:domain))
+ .to contain_exactly('alreadyblocked.com', 'blocked.com', 'to-block.com')
expect(import.reload.state_finished?).to be true
end
end
@@ -312,14 +245,13 @@
account.block_domain!('blocked.com')
end
- it 'blocks all the new domains' do
+ it 'blocks all the new domains and marks import finished' do
subject.call(import)
- expect(account.domain_blocks.pluck(:domain)).to contain_exactly('blocked.com', 'to-block.com')
- end
- it 'marks the import as finished' do
- subject.call(import)
- expect(import.reload.state_finished?).to be true
+ expect(account.domain_blocks.pluck(:domain))
+ .to contain_exactly('blocked.com', 'to-block.com')
+ expect(import.reload.state_finished?)
+ .to be true
end
end
@@ -347,22 +279,16 @@
account.bookmarks.create!(status: bookmarked)
end
- it 'enqueues workers for the expected rows' do
- subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows.map(&:id))
- end
-
- it 'updates the bookmarks as expected once the workers have run' do
+ it 'enqueues workers for the expected rows and updates bookmarks after worker run' do
subject.call(import)
- service_double = instance_double(ActivityPub::FetchRemoteStatusService)
- allow(ActivityPub::FetchRemoteStatusService).to receive(:new).and_return(service_double)
- allow(service_double).to receive(:call).with('https://domain.unknown/foo') { Fabricate(:status, uri: 'https://domain.unknown/foo') }
- allow(service_double).to receive(:call).with('https://domain.unknown/private') { Fabricate(:status, uri: 'https://domain.unknown/private', visibility: :direct) }
+ expect(row_worker_job_args)
+ .to match_array(rows.map(&:id))
- Import::RowWorker.drain
+ stub_fetch_remote_and_drain_workers
- expect(account.bookmarks.map { |bookmark| bookmark.status.uri }).to contain_exactly(already_bookmarked.uri, status.uri, bookmarked.uri, 'https://domain.unknown/foo')
+ expect(account.bookmarks.map { |bookmark| bookmark.status.uri })
+ .to contain_exactly(already_bookmarked.uri, status.uri, bookmarked.uri, 'https://domain.unknown/foo')
end
end
@@ -390,23 +316,48 @@
account.bookmarks.create!(status: bookmarked)
end
- it 'enqueues workers for the expected rows' do
+ it 'enqueues workers for the expected rows and updates bookmarks' do
subject.call(import)
- expect(Import::RowWorker.jobs.pluck('args').flatten).to match_array(rows.map(&:id))
+
+ expect(row_worker_job_args)
+ .to match_array(rows.map(&:id))
+
+ stub_fetch_remote_and_drain_workers
+
+ expect(account.bookmarks.map { |bookmark| bookmark.status.uri })
+ .to contain_exactly(status.uri, bookmarked.uri, 'https://domain.unknown/foo')
end
+ end
- it 'updates the bookmarks as expected once the workers have run' do
- subject.call(import)
+ def row_worker_job_args
+ Import::RowWorker
+ .jobs
+ .pluck('args')
+ .flatten
+ end
- service_double = instance_double(ActivityPub::FetchRemoteStatusService)
- allow(ActivityPub::FetchRemoteStatusService).to receive(:new).and_return(service_double)
- allow(service_double).to receive(:call).with('https://domain.unknown/foo') { Fabricate(:status, uri: 'https://domain.unknown/foo') }
- allow(service_double).to receive(:call).with('https://domain.unknown/private') { Fabricate(:status, uri: 'https://domain.unknown/private', visibility: :direct) }
+ def stub_resolve_account_and_drain_workers
+ resolve_account_service_double = instance_double(ResolveAccountService)
+ allow(ResolveAccountService)
+ .to receive(:new)
+ .and_return(resolve_account_service_double)
+ allow(resolve_account_service_double)
+ .to receive(:call)
+ .with('user@foo.bar', any_args) { Fabricate(:account, username: 'user', domain: 'foo.bar', protocol: :activitypub) }
+ allow(resolve_account_service_double)
+ .to receive(:call)
+ .with('unknown@unknown.bar', any_args) { Fabricate(:account, username: 'unknown', domain: 'unknown.bar', protocol: :activitypub) }
+
+ Import::RowWorker.drain
+ end
- Import::RowWorker.drain
+ def stub_fetch_remote_and_drain_workers
+ service_double = instance_double(ActivityPub::FetchRemoteStatusService)
+ allow(ActivityPub::FetchRemoteStatusService).to receive(:new).and_return(service_double)
+ allow(service_double).to receive(:call).with('https://domain.unknown/foo') { Fabricate(:status, uri: 'https://domain.unknown/foo') }
+ allow(service_double).to receive(:call).with('https://domain.unknown/private') { Fabricate(:status, uri: 'https://domain.unknown/private', visibility: :direct) }
- expect(account.bookmarks.map { |bookmark| bookmark.status.uri }).to contain_exactly(status.uri, bookmarked.uri, 'https://domain.unknown/foo')
- end
+ Import::RowWorker.drain
end
end
end
diff --git a/spec/services/favourite_service_spec.rb b/spec/services/favourite_service_spec.rb
index fb27494de562d5..6a9a5a810afc58 100644
--- a/spec/services/favourite_service_spec.rb
+++ b/spec/services/favourite_service_spec.rb
@@ -11,11 +11,9 @@
let(:bob) { Fabricate(:account) }
let(:status) { Fabricate(:status, account: bob) }
- before do
+ it 'creates a favourite' do
subject.call(sender, status)
- end
- it 'creates a favourite' do
expect(status.favourites.first).to_not be_nil
end
end
@@ -26,15 +24,16 @@
before do
stub_request(:post, 'http://example.com/inbox').to_return(status: 200, body: '', headers: {})
- subject.call(sender, status)
end
- it 'creates a favourite' do
- expect(status.favourites.first).to_not be_nil
- end
+ it 'creates a favourite and sends like activity', :inline_jobs do
+ subject.call(sender, status)
+
+ expect(status.favourites.first)
+ .to_not be_nil
- it 'sends a like activity', :inline_jobs do
- expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
+ expect(a_request(:post, 'http://example.com/inbox'))
+ .to have_been_made.once
end
end
diff --git a/spec/services/follow_service_spec.rb b/spec/services/follow_service_spec.rb
index a0b3b7fec4af19..b7643ccc7c5c36 100644
--- a/spec/services/follow_service_spec.rb
+++ b/spec/services/follow_service_spec.rb
@@ -143,15 +143,16 @@
before do
stub_request(:post, 'http://example.com/inbox').to_return(status: 200, body: '', headers: {})
- subject.call(sender, bob)
end
- it 'creates follow request' do
- expect(FollowRequest.find_by(account: sender, target_account: bob)).to_not be_nil
- end
+ it 'creates follow request and sends an activity to inbox', :inline_jobs do
+ subject.call(sender, bob)
+
+ expect(FollowRequest.find_by(account: sender, target_account: bob))
+ .to_not be_nil
- it 'sends a follow activity to the inbox', :inline_jobs do
- expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
+ expect(a_request(:post, 'http://example.com/inbox'))
+ .to have_been_made.once
end
end
diff --git a/spec/services/process_mentions_service_spec.rb b/spec/services/process_mentions_service_spec.rb
index 7a318faa1e5064..9add51523ebb27 100644
--- a/spec/services/process_mentions_service_spec.rb
+++ b/spec/services/process_mentions_service_spec.rb
@@ -16,20 +16,25 @@
before do
account.block!(individually_blocked_account)
account.domain_blocks.create!(domain: domain_blocked_account.domain)
+ end
- subject.call(status)
+ it 'creates a mention to the non-blocked account but not the individually or domain blocked accounts' do
+ expect { subject.call(status) }
+ .to create_mention_for_non_blocked
+ .and skip_mention_for_individual
+ .and skip_mention_for_domain_blocked
end
- it 'creates a mention to the non-blocked account' do
- expect(non_blocked_account.mentions.where(status: status).count).to eq 1
+ def create_mention_for_non_blocked
+ change { non_blocked_account.mentions.where(status: status).count }.to(1)
end
- it 'does not create a mention to the individually blocked account' do
- expect(individually_blocked_account.mentions.where(status: status).count).to eq 0
+ def skip_mention_for_individual
+ not_change { individually_blocked_account.mentions.where(status: status).count }.from(0)
end
- it 'does not create a mention to the domain-blocked account' do
- expect(domain_blocked_account.mentions.where(status: status).count).to eq 0
+ def skip_mention_for_domain_blocked
+ not_change { domain_blocked_account.mentions.where(status: status).count }.from(0)
end
end
@@ -40,11 +45,9 @@
context 'with a valid remote user' do
let!(:remote_user) { Fabricate(:account, username: 'remote_user', protocol: :activitypub, domain: 'example.com', inbox_url: 'http://example.com/inbox') }
- before do
+ it 'creates a mention' do
subject.call(status)
- end
- it 'creates a mention' do
expect(remote_user.mentions.where(status: status).count).to eq 1
end
end
@@ -53,11 +56,9 @@
let!(:remote_user) { Fabricate(:account, username: 'remote_user', protocol: :activitypub, domain: 'example.com', inbox_url: 'http://example.com/inbox') }
let(:status) { Fabricate(:status, account: account, text: "Hello @#{remote_user.acct} @#{remote_user.acct} @#{remote_user.acct}", visibility: :public) }
- before do
+ it 'creates exactly one mention' do
subject.call(status, save_records: false)
- end
- it 'creates exactly one mention' do
expect(status.mentions.size).to eq 1
end
end
@@ -66,11 +67,9 @@
let!(:remote_user) { Fabricate(:account, username: 'sneak', protocol: :activitypub, domain: 'xn--hresiar-mxa.ch', inbox_url: 'http://example.com/inbox') }
let!(:status) { Fabricate(:status, account: account, text: 'Hello @sneak@hæresiar.ch') }
- before do
+ it 'creates a mention' do
subject.call(status)
- end
- it 'creates a mention' do
expect(remote_user.mentions.where(status: status).count).to eq 1
end
end
@@ -79,11 +78,9 @@
let!(:remote_user) { Fabricate(:account, username: 'foo', protocol: :activitypub, domain: 'xn--y9a3aq.xn--y9a3aq', inbox_url: 'http://example.com/inbox') }
let!(:status) { Fabricate(:status, account: account, text: 'Hello @foo@հայ.հայ') }
- before do
+ it 'creates a mention' do
subject.call(status)
- end
- it 'creates a mention' do
expect(remote_user.mentions.where(status: status).count).to eq 1
end
end
@@ -95,10 +92,11 @@
before do
stub_request(:get, 'https://example.com/.well-known/host-meta').to_return(status: 404)
stub_request(:get, 'https://example.com/.well-known/webfinger?resource=acct:remote_user@example.com').to_return(status: 500)
- subject.call(status)
end
it 'creates a mention' do
+ subject.call(status)
+
expect(remote_user.mentions.where(status: status).count).to eq 1
end
end
diff --git a/spec/services/reject_follow_service_spec.rb b/spec/services/reject_follow_service_spec.rb
index d2c7a00206210b..eec0d6c1e05f93 100644
--- a/spec/services/reject_follow_service_spec.rb
+++ b/spec/services/reject_follow_service_spec.rb
@@ -10,17 +10,15 @@
describe 'local' do
let(:bob) { Fabricate(:account) }
- before do
- FollowRequest.create(account: bob, target_account: sender)
- subject.call(bob, sender)
- end
+ before { FollowRequest.create(account: bob, target_account: sender) }
- it 'removes follow request' do
- expect(bob.requested?(sender)).to be false
- end
+ it 'removes follow request and does not create relation' do
+ subject.call(bob, sender)
- it 'does not create follow relation' do
- expect(bob.following?(sender)).to be false
+ expect(bob)
+ .to_not be_requested(sender)
+ expect(bob)
+ .to_not be_following(sender)
end
end
@@ -30,19 +28,17 @@
before do
FollowRequest.create(account: bob, target_account: sender)
stub_request(:post, bob.inbox_url).to_return(status: 200)
- subject.call(bob, sender)
- end
-
- it 'removes follow request' do
- expect(bob.requested?(sender)).to be false
end
- it 'does not create follow relation' do
- expect(bob.following?(sender)).to be false
- end
+ it 'removes follow request, does not create relation, sends reject activity', :inline_jobs do
+ subject.call(bob, sender)
- it 'sends a reject activity', :inline_jobs do
- expect(a_request(:post, bob.inbox_url)).to have_been_made.once
+ expect(bob)
+ .to_not be_requested(sender)
+ expect(bob)
+ .to_not be_following(sender)
+ expect(a_request(:post, bob.inbox_url))
+ .to have_been_made.once
end
end
end
diff --git a/spec/services/remove_from_followers_service_spec.rb b/spec/services/remove_from_followers_service_spec.rb
index 515600096cfc04..381daf1a5913b1 100644
--- a/spec/services/remove_from_followers_service_spec.rb
+++ b/spec/services/remove_from_followers_service_spec.rb
@@ -10,13 +10,13 @@
describe 'local' do
let(:sender) { Fabricate(:account, username: 'alice') }
- before do
- Follow.create(account: sender, target_account: bob)
- subject.call(bob, sender)
- end
+ before { Follow.create(account: sender, target_account: bob) }
it 'does not create follow relation' do
- expect(bob.followed_by?(sender)).to be false
+ subject.call(bob, sender)
+
+ expect(bob)
+ .to_not be_followed_by(sender)
end
end
@@ -26,15 +26,16 @@
before do
Follow.create(account: sender, target_account: bob)
stub_request(:post, sender.inbox_url).to_return(status: 200)
- subject.call(bob, sender)
end
- it 'does not create follow relation' do
- expect(bob.followed_by?(sender)).to be false
- end
+ it 'does not create follow relation and sends reject activity', :inline_jobs do
+ subject.call(bob, sender)
+
+ expect(bob)
+ .to_not be_followed_by(sender)
- it 'sends a reject activity', :inline_jobs do
- expect(a_request(:post, sender.inbox_url)).to have_been_made.once
+ expect(a_request(:post, sender.inbox_url))
+ .to have_been_made.once
end
end
end
diff --git a/spec/services/remove_status_service_spec.rb b/spec/services/remove_status_service_spec.rb
index da77144458f093..48d45c1b9abfce 100644
--- a/spec/services/remove_status_service_spec.rb
+++ b/spec/services/remove_status_service_spec.rb
@@ -30,42 +30,38 @@
Fabricate(:status, account: bill, reblog: status, uri: 'hoge')
end
- it 'removes status from author\'s home feed' do
- subject.call(status)
- expect(HomeFeed.new(alice).get(10).pluck(:id)).to_not include(status.id)
- end
-
- it 'removes status from local follower\'s home feed' do
- subject.call(status)
- expect(HomeFeed.new(jeff).get(10).pluck(:id)).to_not include(status.id)
- end
-
- it 'publishes to public media timeline' do
+ it 'removes status from notifications and from author and local follower home feeds, publishes to media timeline, sends delete activities' do
allow(redis).to receive(:publish).with(any_args)
- subject.call(status)
+ expect { subject.call(status) }
+ .to remove_status_from_notifications
- expect(redis).to have_received(:publish).with('timeline:public:media', Oj.dump(event: :delete, payload: status.id.to_s))
- end
+ expect(home_feed_ids(alice))
+ .to_not include(status.id)
+ expect(home_feed_ids(jeff))
+ .to_not include(status.id)
- it 'sends Delete activity to followers' do
- subject.call(status)
+ expect(redis)
+ .to have_received(:publish).with('timeline:public:media', Oj.dump(event: :delete, payload: status.id.to_s))
expect(delete_delivery(hank, status))
.to have_been_made.once
- end
-
- it 'sends Delete activity to rebloggers' do
- subject.call(status)
expect(delete_delivery(bill, status))
.to have_been_made.once
end
- it 'remove status from notifications' do
- expect { subject.call(status) }.to change {
- Notification.where(activity_type: 'Favourite', from_account: jeff, account: alice).count
- }.from(1).to(0)
+ def home_feed_ids(personage)
+ HomeFeed
+ .new(personage)
+ .get(10)
+ .pluck(:id)
+ end
+
+ def remove_status_from_notifications
+ change { Notification.where(activity_type: 'Favourite', from_account: jeff, account: alice).count }
+ .from(1)
+ .to(0)
end
def delete_delivery(target, status)
diff --git a/spec/services/report_service_spec.rb b/spec/services/report_service_spec.rb
index 24fffcce635bbc..4e20c536a4b219 100644
--- a/spec/services/report_service_spec.rb
+++ b/spec/services/report_service_spec.rb
@@ -31,14 +31,13 @@
context 'when forward is true', :inline_jobs do
let(:forward) { true }
- it 'sends ActivityPub payload when forward is true' do
- subject.call(source_account, remote_account, forward: forward)
- expect(a_request(:post, 'http://example.com/inbox')).to have_been_made
- end
-
- it 'has an uri' do
+ it 'has a URI and sends ActivityPub payload' do
report = subject.call(source_account, remote_account, forward: forward)
- expect(report.uri).to_not be_nil
+
+ expect(report.uri)
+ .to_not be_nil
+ expect(a_request(:post, 'http://example.com/inbox'))
+ .to have_been_made
end
context 'when reporting a reply on a different remote server' do
@@ -122,13 +121,12 @@
status.mentions.create(account: source_account)
end
- it 'creates a report' do
- expect { subject.call }.to change { target_account.targeted_reports.count }.from(0).to(1)
- end
+ it 'creates a report and attaches the DM to the report' do
+ expect { subject.call }
+ .to change { target_account.targeted_reports.count }.from(0).to(1)
- it 'attaches the DM to the report' do
- subject.call
- expect(target_account.targeted_reports.pluck(:status_ids)).to eq [[status.id]]
+ expect(target_account.targeted_reports.pluck(:status_ids))
+ .to eq [[status.id]]
end
end
@@ -146,13 +144,12 @@
status.mentions.create(account: source_account)
end
- it 'creates a report' do
- expect { subject.call }.to change { target_account.targeted_reports.count }.from(0).to(1)
- end
+ it 'creates a report and attaches DM to report' do
+ expect { subject.call }
+ .to change { target_account.targeted_reports.count }.from(0).to(1)
- it 'attaches the DM to the report' do
- subject.call
- expect(target_account.targeted_reports.pluck(:status_ids)).to eq [[status.id]]
+ expect(target_account.targeted_reports.pluck(:status_ids))
+ .to eq [[status.id]]
end
end
diff --git a/spec/services/resolve_account_service_spec.rb b/spec/services/resolve_account_service_spec.rb
index cbbbdf5ed8ced0..a3fe2e8729ea48 100644
--- a/spec/services/resolve_account_service_spec.rb
+++ b/spec/services/resolve_account_service_spec.rb
@@ -24,37 +24,38 @@
context 'when domain is banned' do
before { Fabricate(:domain_block, domain: 'ap.example.com', severity: :suspend) }
- it 'does not return an account' do
- expect(subject.call('foo@ap.example.com', skip_webfinger: true)).to be_nil
- end
-
- it 'does not make a webfinger query' do
- subject.call('foo@ap.example.com', skip_webfinger: true)
- expect(a_request(:get, 'https://ap.example.com/.well-known/webfinger?resource=acct:foo@ap.example.com')).to_not have_been_made
+ it 'does not return an account or make a webfinger query' do
+ expect(subject.call('foo@ap.example.com', skip_webfinger: true))
+ .to be_nil
+ expect(webfinger_discovery_request)
+ .to_not have_been_made
end
end
context 'when domain is not banned' do
- it 'returns the expected account' do
- expect(subject.call('foo@ap.example.com', skip_webfinger: true)).to eq remote_account
- end
-
- it 'does not make a webfinger query' do
- subject.call('foo@ap.example.com', skip_webfinger: true)
- expect(a_request(:get, 'https://ap.example.com/.well-known/webfinger?resource=acct:foo@ap.example.com')).to_not have_been_made
+ it 'returns the expected account and does not make a webfinger query' do
+ expect(subject.call('foo@ap.example.com', skip_webfinger: true))
+ .to eq remote_account
+ expect(webfinger_discovery_request)
+ .to_not have_been_made
end
end
end
context 'when account is not known' do
- it 'does not return an account' do
- expect(subject.call('foo@ap.example.com', skip_webfinger: true)).to be_nil
+ it 'does not return an account and does not make webfinger query' do
+ expect(subject.call('foo@ap.example.com', skip_webfinger: true))
+ .to be_nil
+ expect(webfinger_discovery_request)
+ .to_not have_been_made
end
+ end
- it 'does not make a webfinger query' do
- subject.call('foo@ap.example.com', skip_webfinger: true)
- expect(a_request(:get, 'https://ap.example.com/.well-known/webfinger?resource=acct:foo@ap.example.com')).to_not have_been_made
- end
+ def webfinger_discovery_request
+ a_request(
+ :get,
+ 'https://ap.example.com/.well-known/webfinger?resource=acct:foo@ap.example.com'
+ )
end
end
@@ -86,13 +87,11 @@
allow(AccountDeletionWorker).to receive(:perform_async)
end
- it 'returns nil' do
- expect(subject.call('hoge@example.com')).to be_nil
- end
-
- it 'queues account deletion worker' do
- subject.call('hoge@example.com')
- expect(AccountDeletionWorker).to have_received(:perform_async)
+ it 'returns nil and queues deletion worker' do
+ expect(subject.call('hoge@example.com'))
+ .to be_nil
+ expect(AccountDeletionWorker)
+ .to have_received(:perform_async)
end
end
@@ -112,9 +111,12 @@
it 'returns new remote account' do
account = subject.call('Foo@redirected.example.com')
- expect(account.activitypub?).to be true
- expect(account.acct).to eq 'foo@ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ acct: 'foo@ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox'
+ )
end
end
@@ -127,9 +129,12 @@
it 'returns new remote account' do
account = subject.call('Foo@redirected.example.com')
- expect(account.activitypub?).to be true
- expect(account.acct).to eq 'foo@ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ acct: 'foo@ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox'
+ )
end
end
@@ -165,9 +170,12 @@
it 'returns new remote account' do
account = subject.call('foo@ap.example.com')
- expect(account.activitypub?).to be true
- expect(account.domain).to eq 'ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ domain: 'ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox'
+ )
end
context 'with multiple types' do
@@ -178,10 +186,13 @@
it 'returns new remote account' do
account = subject.call('foo@ap.example.com')
- expect(account.activitypub?).to be true
- expect(account.domain).to eq 'ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
- expect(account.actor_type).to eq 'Person'
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ domain: 'ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox',
+ actor_type: 'Person'
+ )
end
end
end
@@ -190,20 +201,21 @@
let!(:duplicate) { Fabricate(:account, username: 'foo', domain: 'old.example.com', uri: 'https://ap.example.com/users/foo') }
let!(:status) { Fabricate(:status, account: duplicate, text: 'foo') }
- it 'returns new remote account' do
- account = subject.call('foo@ap.example.com')
-
- expect(account.activitypub?).to be true
- expect(account.domain).to eq 'ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
- expect(account.uri).to eq 'https://ap.example.com/users/foo'
- end
-
- it 'merges accounts', :inline_jobs do
+ it 'returns new remote account and merges accounts', :inline_jobs do
account = subject.call('foo@ap.example.com')
- expect(status.reload.account_id).to eq account.id
- expect(Account.where(uri: account.uri).count).to eq 1
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ domain: 'ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox',
+ uri: 'https://ap.example.com/users/foo'
+ )
+
+ expect(status.reload.account_id)
+ .to eq account.id
+ expect(Account.where(uri: account.uri).count)
+ .to eq 1
end
end
@@ -214,11 +226,15 @@
it 'returns new remote account' do
account = subject.call('foo@ap.example.com')
- expect(account.activitypub?).to be true
- expect(account.domain).to eq 'ap.example.com'
- expect(account.inbox_url).to eq 'https://ap.example.com/users/foo/inbox'
- expect(account.uri).to eq 'https://ap.example.com/users/foo'
- expect(status.reload.account).to eq(account)
+ expect(account)
+ .to have_attributes(
+ activitypub?: true,
+ domain: 'ap.example.com',
+ inbox_url: 'https://ap.example.com/users/foo/inbox',
+ uri: 'https://ap.example.com/users/foo'
+ )
+ expect(status.reload.account)
+ .to eq(account)
end
end
diff --git a/spec/services/resolve_url_service_spec.rb b/spec/services/resolve_url_service_spec.rb
index 80f2a5a4baf55d..eaf00c1ed84cd2 100644
--- a/spec/services/resolve_url_service_spec.rb
+++ b/spec/services/resolve_url_service_spec.rb
@@ -51,12 +51,11 @@
let(:url) { 'https://example.com/@foo/42' }
let(:uri) { 'https://example.com/users/foo/statuses/42' }
- it 'returns status by url' do
- expect(subject.call(url, on_behalf_of: account)).to eq(status)
- end
-
- it 'returns status by uri' do
- expect(subject.call(uri, on_behalf_of: account)).to eq(status)
+ it 'returns status by URL or URI' do
+ expect(subject.call(url, on_behalf_of: account))
+ .to eq(status)
+ expect(subject.call(uri, on_behalf_of: account))
+ .to eq(status)
end
end
@@ -75,12 +74,11 @@
let(:url) { 'https://example.com/@foo/42' }
let(:uri) { 'https://example.com/users/foo/statuses/42' }
- it 'does not return the status by url' do
- expect(subject.call(url, on_behalf_of: account)).to be_nil
- end
-
- it 'does not return the status by uri' do
- expect(subject.call(uri, on_behalf_of: account)).to be_nil
+ it 'does not return the status by URL or URI' do
+ expect(subject.call(url, on_behalf_of: account))
+ .to be_nil
+ expect(subject.call(uri, on_behalf_of: account))
+ .to be_nil
end
end
@@ -107,22 +105,20 @@
account.follow!(poster)
end
- it 'returns status by url' do
- expect(subject.call(url, on_behalf_of: account)).to eq(status)
- end
-
- it 'returns status by uri' do
- expect(subject.call(uri, on_behalf_of: account)).to eq(status)
+ it 'returns status by URL or URI' do
+ expect(subject.call(url, on_behalf_of: account))
+ .to eq(status)
+ expect(subject.call(uri, on_behalf_of: account))
+ .to eq(status)
end
end
context 'when the account does not follow the poster' do
- it 'does not return the status by url' do
- expect(subject.call(url, on_behalf_of: account)).to be_nil
- end
-
- it 'does not return the status by uri' do
- expect(subject.call(uri, on_behalf_of: account)).to be_nil
+ it 'does not return the status by URL or URI' do
+ expect(subject.call(url, on_behalf_of: account))
+ .to be_nil
+ expect(subject.call(uri, on_behalf_of: account))
+ .to be_nil
end
end
end
diff --git a/spec/services/translate_status_service_spec.rb b/spec/services/translate_status_service_spec.rb
index 0779fbbe6c52bc..cd92fb8d1025ab 100644
--- a/spec/services/translate_status_service_spec.rb
+++ b/spec/services/translate_status_service_spec.rb
@@ -32,20 +32,14 @@
allow(TranslationService).to receive_messages(configured?: true, configured: translation_service)
end
- it 'returns translated status content' do
- expect(service.call(status, 'es').content).to eq '
Hola
'
- end
-
- it 'returns source language' do
- expect(service.call(status, 'es').detected_source_language).to eq 'en'
- end
-
- it 'returns translation provider' do
- expect(service.call(status, 'es').provider).to eq 'Dummy'
- end
-
- it 'returns original status' do
- expect(service.call(status, 'es').status).to eq status
+ it 'returns translated status content and source language and provider and original status' do
+ expect(service.call(status, 'es'))
+ .to have_attributes(
+ content: '
Hola
',
+ detected_source_language: 'en',
+ provider: 'Dummy',
+ status: status
+ )
end
describe 'status has content with custom emoji' do
@@ -155,26 +149,16 @@
let!(:source_texts) { service.send(:source_texts) }
it 'returns formatted poll options' do
- expect(source_texts.size).to eq 3
- expect(source_texts.values).to eq %w(
Hello
Blue Green)
- end
-
- it 'has a first key with content' do
- expect(source_texts.keys.first).to eq :content
- end
-
- it 'has the first option in the second key with correct options' do
- option1 = source_texts.keys.second
- expect(option1).to be_a Poll::Option
- expect(option1.id).to eq '0'
- expect(option1.title).to eq 'Blue'
- end
-
- it 'has the second option in the third key with correct options' do
- option2 = source_texts.keys.third
- expect(option2).to be_a Poll::Option
- expect(option2.id).to eq '1'
- expect(option2.title).to eq 'Green'
+ expect(source_texts)
+ .to have_attributes(
+ size: 3,
+ values: %w(