Merge pull request #3544 from glitch-soc/glitch-soc/merge-upstream

Merge upstream changes up to a952541474
This commit is contained in:
Claire authored and GitHub committed 2026-06-23 10:29:27 +02:00
commit fc0054edc6
54 files changed
+893 -230

No files matched your search

-3
View File
@@ -32,9 +32,6 @@
// react-router: Requires manual upgrade
'history',
'react-router-dom',
// react-spring: Requires manual upgrade when upgrading react
'@react-spring/web',
],
matchUpdateTypes: ['major'],
dependencyDashboardApproval: true,
+1 -1
View File
@@ -55,7 +55,7 @@ jobs:
run: yarn build-storybook
- name: Run Chromatic
uses: chromaui/action@07791f8243f4cb2698bf4d00426baf4b2d1cb7e0 # v13
uses: chromaui/action@7804f34e4e59c0d9b3c856848f46ad96d7897429 # v17
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
+6 -3
View File
@@ -76,7 +76,7 @@ jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 60
needs:
- build
@@ -142,6 +142,7 @@ jobs:
tar xvzf artifacts.tar.gz
- name: Set up Ruby environment
timeout-minutes: 15
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby-version}}
@@ -178,7 +179,7 @@ jobs:
test-e2e:
name: End to End testing
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 30
needs:
- build
@@ -238,6 +239,7 @@ jobs:
- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
timeout-minutes: 15
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg
@@ -282,7 +284,7 @@ jobs:
test-search:
name: Elastic Search integration testing
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 30
needs:
- build
@@ -373,6 +375,7 @@ jobs:
- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
timeout-minutes: 15
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg
+1 -1
View File
@@ -1 +1 @@
24.16
24.17
+7 -7
View File
@@ -160,7 +160,7 @@ GEM
cbor (0.5.10.2)
cgi (0.5.1)
charlock_holmes (0.7.9)
chewy (8.3.1)
chewy (8.4.1)
activesupport (>= 7.2)
elasticsearch (>= 8.14, < 9.0)
elasticsearch-dsl
@@ -170,7 +170,7 @@ GEM
climate_control (1.2.0)
cocoon (1.2.15)
color_diff (0.2)
concurrent-ruby (1.3.6)
concurrent-ruby (1.3.7)
connection_pool (3.0.2)
cose (1.3.1)
cbor (~> 0.5.9)
@@ -235,7 +235,7 @@ GEM
fabrication (3.0.0)
faker (3.8.0)
i18n (>= 1.8.11, < 2)
faraday (2.14.2)
faraday (2.14.3)
faraday-net_http (>= 2.0, < 3.5)
json
logger
@@ -324,7 +324,7 @@ GEM
benchmark
rack (>= 2.0)
rainbow (>= 2.0.0)
i18n (1.14.8)
i18n (1.15.2)
concurrent-ruby (~> 1.0)
i18n-tasks (1.1.2)
activesupport (>= 4.0.2)
@@ -470,7 +470,7 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.5)
nokogiri (1.19.3)
nokogiri (1.19.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
omniauth (2.1.4)
@@ -585,7 +585,7 @@ GEM
opentelemetry-api (~> 1.0)
orm_adapter (0.5.0)
ostruct (0.6.3)
ox (2.14.26)
ox (2.14.27)
bigdecimal (>= 3.0)
parallel (2.1.0)
parser (3.3.11.1)
@@ -779,7 +779,7 @@ GEM
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.47.1, < 2.0)
rubocop-rails (2.35.4)
rubocop-rails (2.35.5)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
@@ -727,7 +727,7 @@ class Status extends ImmutablePureComponent {
return (
<Hotkeys handlers={handlers} focusable={!unfocusable}>
<div
className={classNames('status__wrapper', 'focusable', `status__wrapper-${status.get('visibility')}`, { 'status__wrapper-reply': !!status.get('in_reply_to_id'), unread })}
className={classNames('status__wrapper', 'focusable', `status__wrapper-${status.get('visibility')}`, { 'status__wrapper-reply': !!status.get('in_reply_to_id'), 'status__wrapper--in-thread': !!rootId, unread })}
{...selectorAttribs}
tabIndex={unfocusable ? null : 0}
data-featured={featured ? 'true' : null}
@@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/flavours/glitch/api_types/custom_emoj
import { openEmojiDB } from './db-schema';
import type { Database } from './db-schema';
import { importEmojiData } from './loader';
import { localeToSegmenter, toSupportedLocale } from './locale';
import {
extractTokens,
@@ -437,8 +438,6 @@ async function toLoadedLocale(localeString: string) {
}
if (!loadedLocales.has(locale)) {
log('Locale %s not loaded, importing...', locale);
// Ignore the INEFFECTIVE_DYNAMIC_IMPORT Vite warning, since the static import location is inside an inlined web worker.
const { importEmojiData } = await import(/* @vite-ignore */ './loader');
await importEmojiData(locale);
return locale;
}
@@ -72,6 +72,11 @@ export const Profile: React.FC<{
const intl = useIntl();
const history = useHistory();
const maxDisplayNameLength = useAppSelector(
(state) =>
state.server.server.item?.configuration.accounts.max_display_name_length,
);
const handleDisplayNameChange = useCallback(
(e: React.ChangeEvent<HTMLInputElement>) => {
setDisplayName(e.target.value);
@@ -218,7 +223,7 @@ export const Profile: React.FC<{
<div className='fields-group'>
<TextInputField
maxLength={30}
maxLength={maxDisplayNameLength ?? 40}
label={
<FormattedMessage
id='onboarding.profile.display_name'
@@ -24,7 +24,9 @@ export const HotkeyIndicator: React.FC<{
enter: [{ opacity: 1 }],
leave: [{ opacity: 0 }],
onRest: (_result, _ctrl, item) => {
onDismiss(item);
if (item) {
onDismiss(item);
}
},
});
@@ -18,6 +18,10 @@ export async function cacheRoot() {
export function handleFetch(event: FetchEvent) {
const url = new URL(event.request.url);
if (url.protocol !== 'http:' && url.protocol !== 'https:') {
return;
}
if (url.pathname === '/auth/sign_out') {
event.respondWith(handleLogout(event));
} else if (/intl\/.*\.js$/.test(url.pathname)) {
@@ -1806,7 +1806,7 @@ body > [data-popper-placement] {
font-weight: 500;
color: var(--color-text-secondary);
.status__wrapper-reply & {
.status__wrapper-reply.status__wrapper--in-thread & {
--thread-margin: calc(46px + 8px);
margin-inline-start: var(--thread-margin);
@@ -3962,6 +3962,7 @@ a.account__display-name {
}
.scrollable {
container: column / inline-size;
overflow-y: scroll;
overflow-x: hidden;
flex: 1 1 auto;
@@ -4666,6 +4667,7 @@ a.status-card {
}
.column-header__wrapper {
container: column / inline-size;
position: relative;
flex: 0 0 auto;
z-index: 1;
@@ -591,7 +591,7 @@ class Status extends ImmutablePureComponent {
return (
<Hotkeys handlers={handlers} focusable={!unfocusable}>
<div className={classNames('status__wrapper', `status__wrapper-${status.get('visibility')}`, { 'status__wrapper-reply': !!status.get('in_reply_to_id'), unread, focusable: !this.props.muted })} tabIndex={this.props.muted || unfocusable ? null : 0} data-featured={featured ? 'true' : null} aria-label={textForScreenReader({intl, status, rebloggedByText, isQuote: isQuotedPost})} ref={this.handleRef} data-nosnippet={status.getIn(['account', 'noindex'], true) || undefined}>
<div className={classNames('status__wrapper', `status__wrapper-${status.get('visibility')}`, { 'status__wrapper-reply': !!status.get('in_reply_to_id'), 'status__wrapper--in-thread': !!rootId, unread, focusable: !this.props.muted })} tabIndex={this.props.muted || unfocusable ? null : 0} data-featured={featured ? 'true' : null} aria-label={textForScreenReader({intl, status, rebloggedByText, isQuote: isQuotedPost})} ref={this.handleRef} data-nosnippet={status.getIn(['account', 'noindex'], true) || undefined}>
{!skipPrepend && prepend}
<div
@@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/mastodon/api_types/custom_emoji';
import { openEmojiDB } from './db-schema';
import type { Database } from './db-schema';
import { importEmojiData } from './loader';
import { localeToSegmenter, toSupportedLocale } from './locale';
import {
extractTokens,
@@ -437,8 +438,6 @@ async function toLoadedLocale(localeString: string) {
}
if (!loadedLocales.has(locale)) {
log('Locale %s not loaded, importing...', locale);
// Ignore the INEFFECTIVE_DYNAMIC_IMPORT Vite warning, since the static import location is inside an inlined web worker.
const { importEmojiData } = await import(/* @vite-ignore */ './loader');
await importEmojiData(locale);
return locale;
}
@@ -72,6 +72,11 @@ export const Profile: React.FC<{
const intl = useIntl();
const history = useHistory();
const maxDisplayNameLength = useAppSelector(
(state) =>
state.server.server.item?.configuration.accounts.max_display_name_length,
);
const handleDisplayNameChange = useCallback(
(e: React.ChangeEvent<HTMLInputElement>) => {
setDisplayName(e.target.value);
@@ -218,7 +223,7 @@ export const Profile: React.FC<{
<div className='fields-group'>
<TextInputField
maxLength={30}
maxLength={maxDisplayNameLength ?? 40}
label={
<FormattedMessage
id='onboarding.profile.display_name'
@@ -24,7 +24,9 @@ export const HotkeyIndicator: React.FC<{
enter: [{ opacity: 1 }],
leave: [{ opacity: 0 }],
onRest: (_result, _ctrl, item) => {
onDismiss(item);
if (item) {
onDismiss(item);
}
},
});
+3
View File
@@ -1138,6 +1138,9 @@
"report.categories.spam": "ספאם",
"report.categories.violation": "התוכן מפר אחד או יותר מחוקי השרת",
"report.category.subtitle": "בחר/י את המתאים ביותר",
"report.category.title_account": "ספר/י לנו מה קורה עם הפרופיל הזה",
"report.category.title_collection": "ספר/י לנו מה קורה עם האוסף הזה",
"report.category.title_status": "ספר/י לנו מה קורה עם ההודעה הזו",
"report.close": "בוצע",
"report.comment.title": "האם יש דבר נוסף שלדעתך חשוב שנדע?",
"report.forward": "קדם ל-{target}",
+1 -1
View File
@@ -429,7 +429,7 @@
"collections.share_short": "Condividi",
"collections.sort_alphabetical": "Ordine alfabetico",
"collections.sort_by": "Ordina per:",
"collections.sort_date_added": "Data aggiunta",
"collections.sort_date_added": "Data di aggiunta",
"collections.sort_last_active": "Ultima attività",
"collections.sort_most_followers": "Più follower",
"collections.suggestions.can_not_add": "Non può essere aggiunto",
+14
View File
@@ -190,6 +190,7 @@
"account_edit.upload_modal.title_replace.avatar": "Semselsi tawlaft n umaɣnu",
"account_edit.upload_modal.title_replace.header": "Semselsi tawlaft n tduli",
"account_edit.verified_modal.invisible_link.summary": "Amek ara rreɣ aseɣwen-nni ur yettban ara?",
"account_edit.verified_modal.step2.header": "Rnu asemli-k web a urti udmawan",
"account_edit.verified_modal.title": "Amek ara ternuḍ aseɣwen yettuselknen",
"account_edit_tags.add_tag": "Rnu #{tagName}",
"account_edit_tags.column_title": "Asiẓreg n yihacṭagen",
@@ -261,6 +262,7 @@
"collections.accounts.empty_description": "Rnu alamma d {count} n imiḍanen",
"collections.accounts.empty_editor_title": "Ulac ula yiwen ɛad deg telkensit-a",
"collections.accounts.empty_title": "Talkensit-a d tilemt",
"collections.add_to_collection": "Rnu {name} ɣer tilkensa",
"collections.block_collection_owner": "Sewḥel amiḍan",
"collections.by_account": "sɣur {account_handle}",
"collections.collection_description": "Aglam",
@@ -284,6 +286,7 @@
"collections.hidden_accounts_link": "{count, plural, one {# n umiḍan uffir} other {# n imiḍanen yettwaffaren}}",
"collections.hints.accounts_counter": "{count}/{max} n imiḍanen",
"collections.last_updated_at": "Taẓrigt taneggarut: {date}",
"collections.list.collections_with_count": "{count, plural, one {# n telkensit} other {# n tilkensa}}",
"collections.list.created_by_author": "D-yesnulfa {name}",
"collections.list.created_by_you": "D-tesnulfaḍ",
"collections.list.featuring_you": "Yid-k⋅m",
@@ -295,6 +298,7 @@
"collections.revoke_collection_inclusion": "Kkes-iyi seg telkensit-a",
"collections.search_accounts_label": "Nadi ɣef umiḍan ara ternuḍ",
"collections.share_short": "Bḍu",
"collections.sort_alphabetical": "S ugemmay",
"collections.suggestions.can_not_add": "Ur tezmireḍ ara ad t-ternuḍt",
"collections.view_collection": "Wali talkensit",
"collections.visibility_public": "Azayaz",
@@ -414,6 +418,11 @@
"copy_icon_button.copy_this_text": "Nɣel aseɣwen ɣer tecwafit",
"copypaste.copied": "Yettwanɣel",
"copypaste.copy_to_clipboard": "Nɣel ɣer afus",
"custom_homepage.about": "Ɣef",
"custom_homepage.about_this_server": "Ɣef uqeddac-a",
"custom_homepage.administered_by": "Yettwadbel sɣur",
"custom_homepage.contact": "Anermis:",
"custom_homepage.latest_activity": "Armud aneggaru",
"directory.federated": "Deg fedivers yettwasnen",
"directory.local": "Seg {domain} kan",
"directory.new_arrivals": "Imaynuten id yewḍen",
@@ -520,6 +529,7 @@
"footer.source_code": "Wali tangalt taɣbalut",
"footer.status": "Addad",
"footer.terms_of_service": "Tiwtilin n useqdec",
"form_field.optional": "(d axetṛan)",
"getting_started.heading": "Bdu",
"hashtag.browse": "Snirem tisuffaɣ yesɛan #{hashtag}",
"hashtag.browse_from_account": "Snirem tisuffaɣ sɣur @{name} yesɛan #{hashtag}",
@@ -592,6 +602,7 @@
"keyboard_shortcuts.toggle_hidden": "i uskan/tuffra n uḍris deffir CW",
"keyboard_shortcuts.toggle_sensitivity": "i teskent/tuffra n yimidyaten",
"keyboard_shortcuts.toot": "i wakken attebdud tajewwaqt tamaynut",
"keyboard_shortcuts.translate": "I usuqel n yizen",
"keyboard_shortcuts.unfocus": "to un-focus compose textarea/search",
"keyboard_shortcuts.up": "i tulin ɣer d asawen n tebdart",
"learn_more_link.got_it": "Gziɣ-t",
@@ -703,6 +714,7 @@
"notifications.clear_title": "Sfeḍ ilɣa?",
"notifications.column_settings.admin.report": "Ineqqisen imaynuten:",
"notifications.column_settings.alert": "Ilɣa n tnarit",
"notifications.column_settings.collections": "Tilkensa:",
"notifications.column_settings.favourite": "Imenyafen:",
"notifications.column_settings.filter_bar.advanced": "Sken-d akk taggayin",
"notifications.column_settings.filter_bar.category": "Iri n usizdeg uzrib",
@@ -721,6 +733,7 @@
"notifications.column_settings.update": "Iẓreg:",
"notifications.filter.all": "Akk",
"notifications.filter.boosts": "Seǧhed",
"notifications.filter.collections": "Tilkensa",
"notifications.filter.favourites": "Imenyafen",
"notifications.filter.follows": "Yeṭafaṛ",
"notifications.filter.mentions": "Abdar",
@@ -849,6 +862,7 @@
"search_popout.user": "amseqdac",
"search_results.accounts": "Imeɣna",
"search_results.all": "Akk",
"search_results.collections": "Tilkensa",
"search_results.hashtags": "Ihacṭagen",
"search_results.no_results": "Ulac igemmaḍ.",
"search_results.no_search_yet": "Ɛreḍ ad d-tnadiḍ ɣef iznan, imaɣnuten neɣ ihacṭagen.",
+3 -3
View File
@@ -114,8 +114,8 @@
"account.name.copy": "Khóo-pih口座ê名",
"account.name.help.domain": "",
"account.name.help.domain_self": "{domain} 是管理lí ê個人資料hām PO文ê服侍器。",
"account.name.help.footer": "就像lí通寄電子phue予用無kâng電子批服務者ê儂kâng款,lí ē當hām佇無kâng Mastodon服侍器ê,kap佇其他聯邦宇宙ê lâng互動。",
"account.name.help.header": "@handle 親像電子批地址",
"account.name.help.footer": "就像lí通寄電子phue予用無kâng電子phue服務者ê儂kâng款,lí ē當hām佇無kâng Mastodon服侍器ê,kap佇其他聯邦宇宙ê lâng互動。",
"account.name.help.header": "@handle 親像電子phue地址",
"account.name.help.username": "{username} 是tsit ê口座佇in ê服侍器ê用者名。佇別ê服侍器可能有kâng名ê別lâng。",
"account.name.help.username_self": "{username} 是lí ê口座佇tsit ê服侍器ê用者名。佇別ê服侍器可能有kâng名ê別lâng。",
"account.name_info": "Tse是siánn?",
@@ -613,7 +613,7 @@
"email_subscriptions.form.action": "訂",
"email_subscriptions.form.bottom": "無開Mastodon ê口座,mā ē當佇收件箱收著PO文。不管時lóng ē當取消訂。其他資訊,請參考<a>隱私權政策</a>。",
"email_subscriptions.form.title": "訂 {name} ê電子phue更新",
"email_subscriptions.submitted.lead": "請檢查lí ê收件箱來完成訂電子批ê更新。",
"email_subscriptions.submitted.lead": "請檢查lí ê收件箱來完成訂電子phue ê更新。",
"email_subscriptions.submitted.title": "上尾步",
"email_subscriptions.validation.email.blocked": "封鎖ê電子phue箱提供者",
"email_subscriptions.validation.email.invalid": "無效ê電子phue地址",
+131 -41
View File
@@ -2,6 +2,7 @@
"about.blocks": "Модерируемые серверы",
"about.contact": "Связаться:",
"about.default_locale": "по умолчанию",
"about.disclaimer": "Mastodon — свободное программное обеспечение с открытым исходным кодом и торговая марка Mastodon GmbH.",
"about.domain_blocks.no_reason_available": "Причина не указана",
"about.domain_blocks.preamble": "Обычно Mastodon даёт вам возможность просматривать содержимое с любых других серверов в федивёрсе и взаимодействовать с их пользователями. Вот исключения, сделанные конкретно для этого сервера:",
"about.domain_blocks.silenced.explanation": "Как правило, вы не увидите профили и содержимое с этого сервера, если только вы не запросите их с помощью поиска или не подпишетесь на пользователя с этого сервера.",
@@ -85,6 +86,7 @@
"account.locked_info": "Это закрытая учётная запись. Её владелец вручную одобряет подписчиков.",
"account.media": "Медиа",
"account.mention": "Упомянуть @{name}",
"account.menu.add_to_collection": "Добавить в подборку…",
"account.menu.add_to_list": "Добавить в список…",
"account.menu.block": "Заблокировать",
"account.menu.block_domain": "Заблокировать {domain}",
@@ -127,7 +129,7 @@
"account.note.edit_button": "Редактировать",
"account.note.title": "Заметка для себя (никто, кроме вас, её не видит)",
"account.open_original_page": "Открыть исходную страницу",
"account.pending": "Ожидают одобрения",
"account.pending": "Не подтверждён",
"account.posts": "Посты",
"account.remove_from_followers": "Убрать {name} из подписчиков",
"account.report": "Пожаловаться на @{name}",
@@ -148,7 +150,7 @@
"account.unmute_short": "Не игнорировать",
"account_edit.advanced_settings.bot_hint": "Индикатор бота показывает, что с этой учётной записи выполняются автоматизированные действия и она не всегда может находиться под наблюдением владельца",
"account_edit.advanced_settings.bot_label": "Учётная запись бота",
"account_edit.advanced_settings.title": "Расширенные настройки",
"account_edit.advanced_settings.title": "Продвинутые настройки",
"account_edit.bio.add_label": "Добавить описание профиля",
"account_edit.bio.edit_label": "Редактировать описание профиля",
"account_edit.bio.placeholder": "Добавьте немного информации о себе, чтобы другие люди могли легче узнать вас.",
@@ -157,7 +159,7 @@
"account_edit.bio_modal.edit_title": "Редактировать описание профиля",
"account_edit.column_button": "Готово",
"account_edit.column_title": "Редактировать профиль",
"account_edit.custom_fields.add_label": "Создать",
"account_edit.custom_fields.add_label": "Создать поле профиля",
"account_edit.custom_fields.edit_label": "Редактировать поле профиля",
"account_edit.custom_fields.placeholder": "Добавьте свои местоимения, ссылки на сайты — всё, что посчитаете нужным указать в профиле.",
"account_edit.custom_fields.reorder_button": "Упорядочить",
@@ -169,7 +171,7 @@
"account_edit.display_name.edit_label": "Редактировать отображаемое имя",
"account_edit.display_name.placeholder": "Отображаемое имя — это то, как вы будете подписаны в профиле и лентах.",
"account_edit.display_name.title": "Отображаемое имя",
"account_edit.featured_hashtags.edit_label": "Добавить",
"account_edit.featured_hashtags.edit_label": "Добавить хештеги",
"account_edit.featured_hashtags.placeholder": "Укажите наиболее интересные для вас темы и предоставьте быстрый доступ к ним.",
"account_edit.featured_hashtags.title": "Рекомендации хештегов",
"account_edit.field_actions.delete": "Удалить поле профиля",
@@ -278,35 +280,59 @@
"alt_text_modal.describe_for_people_with_visual_impairments": "Добавьте описание для людей с нарушениями зрения…",
"alt_text_modal.done": "Готово",
"announcement.announcement": "Объявление",
"annual_report.announcement.action_build": "Сгенерировать свой Wrapstodon",
"annual_report.announcement.action_dismiss": "Нет, спасибо",
"annual_report.announcement.action_view": "Посмотреть мой Wrapstodon",
"annual_report.announcement.title": "Wrapstodon {year} уже здесь",
"annual_report.nav_item.badge": "Новый",
"annual_report.announcement.action_view": "Перейти к своему Wrapstodon",
"annual_report.announcement.description": "Узнайте больше о своей активности в Mastodon за прошедший год.",
"annual_report.announcement.title": "Пришло время Wrapstodon {year}!",
"annual_report.nav_item.badge": "New",
"annual_report.shared_page.donate": "Пожертвовать",
"annual_report.shared_page.footer": "Сгенерировано с {heart} командой Mastodon",
"annual_report.shared_page.footer_server_info": "{username} использует сервер {domain} — одно из множества сообществ на базе Mastodon.",
"annual_report.summary.archetype.booster.desc_public": "{name} весь год выслеживал(а) стоящие посты, продвигая их авторов метким нажатием кнопки.",
"annual_report.summary.archetype.booster.desc_self": "Вы весь год выслеживали стоящие посты, продвигая их авторов метким нажатием кнопки.",
"annual_report.summary.archetype.booster.name": "Репостер",
"annual_report.summary.archetype.die_drei_fragezeichen": "???",
"annual_report.summary.archetype.lurker.name": "Стоик",
"annual_report.summary.archetype.lurker.desc_public": "Мы знаем, что {name} был(а) где-то здесь, по-своему получая удовольствие от использования Mastodon.",
"annual_report.summary.archetype.lurker.desc_self": "Мы знаем, что вы были где-то здесь, по-своему получая удовольствие от использования Mastodon.",
"annual_report.summary.archetype.lurker.name": "Молчун",
"annual_report.summary.archetype.oracle.desc_public": "{name} чаще писал(а) новые посты, чем ответы, поддерживая Mastodon актуальным и обращённым в будущее.",
"annual_report.summary.archetype.oracle.desc_self": "Вы чаще писали новые посты, чем ответы, поддерживая Mastodon актуальным и обращённым в будущее.",
"annual_report.summary.archetype.oracle.name": "Гуру",
"annual_report.summary.archetype.pollster.desc_public": "{name} создал(а) много опросов по сравнению с другими видами постов, взращивая любопытство в Mastodon.",
"annual_report.summary.archetype.pollster.desc_self": "Вы создали много опросов по сравнению с другими видами постов, взращивая любопытство в Mastodon.",
"annual_report.summary.archetype.pollster.name": "Опросчик",
"annual_report.summary.archetype.replier.desc_public": "{name} часто писал(а) ответы на посты других людей, обогащая Mastodon новыми обсуждениями.",
"annual_report.summary.archetype.replier.desc_self": "Вы часто писали ответы на посты других людей, обогащая Mastodon новыми обсуждениями.",
"annual_report.summary.archetype.replier.name": "Душа компании",
"annual_report.summary.archetype.reveal": "Показать мой архетип",
"annual_report.summary.archetype.title_public": "Архетип {name}",
"annual_report.summary.archetype.title_self": "Ваш архетип",
"annual_report.summary.archetype.reveal": "Раскрыть мой архетип",
"annual_report.summary.archetype.reveal_description": "Спасибо за то, что были вместе с Mastodon! Пора узнать, какой архетип вы олицетворяли собой в {year} году.",
"annual_report.summary.archetype.title_public": "Архетип пользователя {name}",
"annual_report.summary.archetype.title_self": "Мой архетип",
"annual_report.summary.close": "Закрыть",
"annual_report.summary.copy_link": "Скопировать ссылку",
"annual_report.summary.copy_link": "Копировать ссылку",
"annual_report.summary.followers.new_followers": "{count, plural, one {новый подписчик} many {новых подписчиков} other {новых подписчика}}",
"annual_report.summary.highlighted_post.boost_count": "Этот пост был продвинут {count, plural, one {# раз} many {# раз} other {# раза}}.",
"annual_report.summary.highlighted_post.favourite_count": "Этот пост добавили в избранное {count, plural, one {# раз} many {# раз} other {# раза}}.",
"annual_report.summary.highlighted_post.reply_count": "Этот пост получил {count, plural, one {# ответ} many {# ответов} other {# ответа}}.",
"annual_report.summary.highlighted_post.title": "Самый популярный пост",
"annual_report.summary.most_used_app.most_used_app": "наиболее часто используемое приложение",
"annual_report.summary.most_used_hashtag.most_used_hashtag": "наиболее часто используемый хештег",
"annual_report.summary.most_used_hashtag.used_count": "Вы использовали этот хештег в {count, plural, one {# посте} other {# постах}}.",
"annual_report.summary.most_used_hashtag.used_count_public": "{name} использовал(а) этот хештег в {count, plural, one {# посте} other {# постах}}.",
"annual_report.summary.new_posts.new_posts": "новых постов",
"annual_report.summary.percentile.text": "<topLabel>Всё это помещает вас в топ</topLabel><percentage></percentage><bottomLabel>пользователей {domain}.</bottomLabel>",
"annual_report.summary.percentile.we_wont_tell_bernie": "Роскомнадзор об этом не узнает.",
"annual_report.summary.share_elsewhere": "Поделиться в…",
"annual_report.summary.share_message": "Мой архетип — {archetype}!",
"annual_report.summary.share_on_mastodon": "Поделиться в Mastodon",
"attachments_list.unprocessed": "(не обработан)",
"audio.hide": "Скрыть аудио",
"block_modal.no_collections": "Никто из вас не сможет добавлять друг друга в подборки. Вы и этот пользователь будете взаимно удалены из существующих подборок друг друга.",
"block_modal.remote_users_caveat": "Мы попросим сервер {domain} уважать ваше решение, однако нельзя гарантировать, что он будет соблюдать блокировку, поскольку некоторые серверы могут по-разному обрабатывать запросы. Публичные посты по-прежнему могут быть видны неавторизованным пользователям.",
"block_modal.show_less": "Показать меньше",
"block_modal.show_more": "Показать больше",
"block_modal.they_cant_mention": "Вы не сможете упоминать или цитировать друг друга. Вы не сможете подписаться на этого пользователя, а он не сможет подписаться на вас.",
"block_modal.they_cant_see_posts": "Он не сможет видеть ваши посты, а вы не будете видеть его посты.",
"block_modal.they_will_know": "Он будет знать, что вы его блокируете.",
"block_modal.title": "Заблокировать пользователя?",
@@ -341,10 +367,13 @@
"collection.share_modal.share_via_system": "Поделиться…",
"collection.share_modal.title": "Поделиться подборкой",
"collection.share_modal.title_new": "Поделитесь вашей новой подборкой!",
"collection.share_template_other": "Зацените эту замечательную подборку:",
"collection.share_template_own": "Зацените мою новую подборку:",
"collections.account_count": "{count, plural, one {# пользователь} few {# пользователя} other {# пользователей}}",
"collections.accounts.empty_description": "Вы можете добавить максимум {count} пользователей",
"collections.accounts.empty_editor_title": "В этой подборке пока никого нет",
"collections.accounts.empty_title": "В этой подборке пока никого нет",
"collections.add_to_collection": "Добавить {name} в подборки",
"collections.block_collection_owner": "Заблокировать пользователя",
"collections.by_account": "составил(а) {account_handle}",
"collections.collection_description": "Описание",
@@ -365,27 +394,55 @@
"collections.description_length_hint": "Не более 100 символов",
"collections.detail.author_added_you_on_date": "{author} добавил(а) вас {date}",
"collections.detail.loading": "Подборка загружается…",
"collections.detail.revoke_inclusion": "Удалить меня",
"collections.detail.sensitive_content": "Чувствительный контент",
"collections.detail.share": "Поделитесь этой коллекцией",
"collections.edit_details": "Изменить параметры",
"collections.detail.revoke_inclusion": "Выйти из подборки",
"collections.detail.sensitive_content": "Содержимое деликатного характера",
"collections.detail.sensitive_note": "Описание подборки и пользователи в ней могут подходить не для всех.",
"collections.detail.share": "Поделиться подборкой",
"collections.detail.you_are_in_this_collection": "Вас выбрали для этой подборки",
"collections.edit_details": "Редактировать",
"collections.error_loading_collections": "При загрузке подборок произошла ошибка.",
"collections.hidden_accounts_description": "Вы заблокировали либо игнорируете {count, plural, other {этих пользователей}}",
"collections.hidden_accounts_link": "{count, plural, one {# пользователь скрыт} few {# пользователя скрыто} many {# пользователей скрыто} other {# пользователя скрыто}}",
"collections.hints.accounts_counter": "{count}/{max} пользователей",
"collections.last_updated_at": "Последнее обновление: {date}",
"collections.manage_accounts": "Управление аккаунтами",
"collections.list.collections_with_count": "{count, plural, one {# подборка} few {# подборки} other {# подборок}}",
"collections.list.created_by_author": "Созданные пользователем",
"collections.list.created_by_you": "Созданные мной",
"collections.list.featuring_you": "С моим участием",
"collections.manage_accounts": "Добавить или исключить пользователей",
"collections.mark_as_sensitive": "Отметить как содержимое деликатного характера",
"collections.mark_as_sensitive_hint": "Описание этой подборки и пользователи в ней будут скрыты за предупреждением о содержании. Название подборки будет видно всем.",
"collections.maximum_collection_count_description": "Настройки вашего сервера позволяют создать максимум {count} подборок.",
"collections.maximum_collection_count_reached": "Вы достигли максимального количества подборок",
"collections.name_length_hint": "Не более 40 символов",
"collections.new_collection": "Новая подборка",
"collections.remove_account": "Удалить",
"collections.new_collection": "Создать подборку",
"collections.pending_accounts.message": "Пользователи могут отображаться как неподтверждённые, пока мы ожидаем ответа от пользователя или его сервера. Только вы можете видеть неподтверждённых пользователей.",
"collections.pending_accounts.title": "Почему некоторые пользователи отмечены как неподтверждённые?",
"collections.remove_account": "Исключить",
"collections.report_collection": "Пожаловаться на подборку",
"collections.revoke_collection_inclusion": "Исключить себя из этой подборки",
"collections.revoke_inclusion.confirmation": "Вы были исключены из подборки «{collection}»",
"collections.revoke_inclusion.error": "Произошла ошибка, повторите попытку позже.",
"collections.search_accounts_label": "Найти и добавить пользователя",
"collections.search_accounts_max_reached": "Вы добавили максимальное количество пользователей",
"collections.sensitive": "Чувствительный",
"collections.sensitive": "Содержимое деликатного характера",
"collections.share_short": "Поделиться",
"collections.suggestions.can_not_add": "Не может быть добавлено",
"collections.suggestions.must_follow": "Сначала нужно подписаться",
"collections.sort_alphabetical": "По алфавиту",
"collections.sort_by": "Сортировка:",
"collections.sort_date_added": "По дате добавления",
"collections.sort_last_active": "По последней активности",
"collections.sort_most_followers": "По количеству подписчиков",
"collections.suggestions.can_not_add": "Пользователи, которые не могут быть добавлены",
"collections.suggestions.can_not_add_desc": "Эти пользователи могли отказаться от обнаружения через рекомендации, либо их сервер не поддерживает подборки.",
"collections.suggestions.must_follow": "Необходимо сначала подписаться",
"collections.suggestions.must_follow_desc": "Эти пользователи вручную рассматривают все запросы на подписку. Подписчики могут добавлять их в подборки.",
"collections.topic_hint": "Добавьте хештег, чтобы помочь другим пользователям лучше понять главную тему этой подборки.",
"collections.unlisted_collections_with_count": "Неперечисленные коллекции ({count})",
"collections.view_collection": "Посмотреть коллекцию",
"collections.topic_special_chars_hint": "При сохранении специальные символы будут удалены",
"collections.unlisted_collections_description": "Эти подборки не будут показаны в вашем профиле другим людям. Просматривать их может любой, у кого есть ссылка.",
"collections.unlisted_collections_with_count": "Скрытые подборки ({count})",
"collections.view_collection": "Открыть подборку",
"collections.visibility_public": "Публичная",
"collections.visibility_public_hint": "Доступна в результатах поиска и других разделах, в которых появляются рекомендации.",
"collections.visibility_title": "Видимость",
"collections.visibility_unlisted": "Скрытая",
"collections.visibility_unlisted_hint": "Доступна всем, у кого есть ссылка. Скрыта из результатов поиска и рекомендаций.",
@@ -400,16 +457,18 @@
"column.edit_list": "Редактировать список",
"column.favourites": "Избранное",
"column.firehose": "Живая лента",
"column.firehose_local": "Живая лента этого сервера",
"column.firehose_singular": "Живая лента",
"column.firehose_local": "Локальная лента",
"column.firehose_singular": "Глобальная лента",
"column.follow_requests": "Запросы на подписку",
"column.home": "Главная",
"column.list_members": "Пользователи в списке",
"column.lists": "Списки",
"column.mutes": "Игнорируемые пользователи",
"column.notifications": "Уведомления",
"column.other_collections": "Подборки пользователя {name}",
"column.pins": "Закреплённые посты",
"column.public": "Глобальная лента",
"column.your_collections": "Мои подборки",
"column_back_button.label": "Назад",
"column_header.hide_settings": "Скрыть настройки",
"column_header.moveLeft_settings": "Передвинуть колонку влево",
@@ -458,7 +517,7 @@
"confirmations.delete.title": "Удалить пост?",
"confirmations.delete_collection.confirm": "Удалить",
"confirmations.delete_collection.message": "Это действие невозможно отменить.",
"confirmations.delete_collection.title": "Удалить «{name}»?",
"confirmations.delete_collection.title": "Удалить подборку «{name}»?",
"confirmations.delete_list.confirm": "Удалить",
"confirmations.delete_list.message": "Вы уверены, что хотите навсегда удалить этот список?",
"confirmations.delete_list.title": "Удалить список?",
@@ -521,6 +580,12 @@
"copy_icon_button.copy_this_text": "Копировать ссылку в буфер обмена",
"copypaste.copied": "Скопировано",
"copypaste.copy_to_clipboard": "Копировать в буфер обмена",
"custom_homepage.about": "Подробности",
"custom_homepage.about_this_server": "Об этом сервере",
"custom_homepage.administered_by": "Управляется",
"custom_homepage.contact": "Связаться:",
"custom_homepage.latest_activity": "Последняя активность",
"custom_homepage.these_are_the_latest_posts": "Здесь показаны 40 постов, недавно опубликованных пользователями на этом сервере.",
"directory.federated": "Со всего федивёрса",
"directory.local": "Только с {domain}",
"directory.new_arrivals": "Новички",
@@ -564,7 +629,7 @@
"emoji_button.symbols": "Символы",
"emoji_button.travel": "Путешествия и места",
"empty_column.account_featured.other": "{acct} ещё ничего не рекомендовал(а) в своём профиле.",
"empty_column.account_featured_self.no_collections_button": "Создать коллекцию",
"empty_column.account_featured_self.no_collections_button": "Создать подборку",
"empty_column.account_featured_unknown.other": "Этот пользователь ещё ничего не рекомендовал в своём профиле.",
"empty_column.account_hides_collections": "Пользователь предпочёл не раскрывать эту информацию",
"empty_column.account_suspended": "Учётная запись заблокирована",
@@ -651,7 +716,7 @@
"followers.title": "Подписчики",
"following.title": "Подписки",
"footer.about": "О проекте",
"footer.about_mastodon": "О Mastodon",
"footer.about_mastodon": "О проекте",
"footer.about_server": "О сервере {domain}",
"footer.about_this_server": "Об этом сервере",
"footer.directory": "Каталог профилей",
@@ -699,6 +764,7 @@
"home.pending_critical_update.link": "Посмотреть обновления",
"home.pending_critical_update.title": "Доступно критическое обновление безопасности",
"home.show_announcements": "Показать объявления",
"ignore_notifications_modal.bots_title": "Игнорировать уведомления от ботов?",
"ignore_notifications_modal.disclaimer": "Mastodon не может сообщить пользователям, что вы игнорируете их уведомления. Игнорирование уведомлений не остановит отправку самих сообщений.",
"ignore_notifications_modal.filter_instead": "Фильтровать",
"ignore_notifications_modal.filter_to_act_users": "Вы по-прежнему сможете принимать и отклонять запросы, а также отправлять жалобы на пользователей",
@@ -712,7 +778,8 @@
"ignore_notifications_modal.private_mentions_title": "Игнорировать уведомления о нежелательных личных упоминаниях?",
"info_button.label": "Помощь",
"info_button.what_is_alt_text": "<h1>Что это такое?</h1> <p>Альтернативный текст содержит описание изображения для людей с ограничениями зрения, медленным интернетом и для тех, кому нужен дополнительный контекст.</p> <p>Вы можете улучшить доступность и понимание для всех, написав чёткий, краткий и объективный альтернативный текст.</p> <ul> <li>Уловите важные элементы</li> <li>Перескажите текстовую информацию на изображении</li> <li>Используйте правильную структуру предложений</li> <li>Избегайте избыточной информации</li> <li>Сосредоточьтесь на тенденциях и ключевых выводах при описании сложных визуализаций, таких как диаграммы или карты</li> </ul>",
"interaction_modal.action": "Для взаимодействия с сообщением {name} необходимо войти в свою учетную запись на любом сервере Mastodon.",
"interaction_modal.action": "Войдите в учётную запись на своём сервере Mastodon, чтобы взаимодействовать с этим постом.",
"interaction_modal.action_follow": "Войдите в учётную запись на своём сервере Mastodon, чтобы подписаться на этого пользователя.",
"interaction_modal.go": "Вперёд!",
"interaction_modal.no_account_yet": "У вас нет никакой учётной записи?",
"interaction_modal.on_another_server": "На другом сервере",
@@ -731,12 +798,19 @@
"keyboard_shortcuts.direct": "перейти к личным упоминаниям",
"keyboard_shortcuts.down": "вниз по списку",
"keyboard_shortcuts.enter": "открыть пост",
"keyboard_shortcuts.explore": "перейти в раздел «Актуальное»",
"keyboard_shortcuts.favourite": "добавить пост в избранное",
"keyboard_shortcuts.favourites": "перейти к избранным постам",
"keyboard_shortcuts.federated": "перейти к глобальной ленте",
"keyboard_shortcuts.heading": "Сочетания клавиш",
"keyboard_shortcuts.home": "перейти к домашней ленте",
"keyboard_shortcuts.hotkey": "Горячая клавиша",
"keyboard_shortcuts.keys.alt": "Alt",
"keyboard_shortcuts.keys.backspace": "Backspace",
"keyboard_shortcuts.keys.enter": "Enter",
"keyboard_shortcuts.keys.esc": "Esc",
"keyboard_shortcuts.keys.page_down": "Page Down",
"keyboard_shortcuts.keys.page_up": "Page Up",
"keyboard_shortcuts.legend": "показать эту справку",
"keyboard_shortcuts.load_more": "фокус на кнопке «Загрузить ещё»",
"keyboard_shortcuts.local": "перейти к локальной ленте",
@@ -756,6 +830,8 @@
"keyboard_shortcuts.toggle_hidden": "показать/скрыть текст за предупреждением",
"keyboard_shortcuts.toggle_sensitivity": "показать/скрыть медиа",
"keyboard_shortcuts.toot": "начать писать новый пост",
"keyboard_shortcuts.top": "перейти в начало списка",
"keyboard_shortcuts.translate": "перевести пост",
"keyboard_shortcuts.unfocus": "убрать фокус с поля ввода/поиска",
"keyboard_shortcuts.up": "вверх по списку",
"learn_more_link.got_it": "Понятно",
@@ -766,6 +842,7 @@
"lightbox.zoom_in": "Масштаб до фактического размера",
"lightbox.zoom_out": "Масштаб по размеру экрана",
"limited_account_hint.action": "Всё равно показать",
"limited_account_hint.title": "Этот профиль либо его сервер были скрыты модераторами сервера {domain}.",
"link_preview.author": "Автор: {name}",
"link_preview.more_from_author": "Автор: {name}",
"link_preview.shares": "{count, plural, one {{counter} пост} few {{counter} поста} other {{counter} постов}}",
@@ -824,9 +901,10 @@
"navigation_bar.follows_and_followers": "Подписки и подписчики",
"navigation_bar.import_export": "Импорт и экспорт",
"navigation_bar.lists": "Списки",
"navigation_bar.live_feed_local": "Живая лента (локальная)",
"navigation_bar.live_feed_public": "Живая лента (глобальная)",
"navigation_bar.live_feed_local": "Локальная лента",
"navigation_bar.live_feed_public": "Глобальная лента",
"navigation_bar.logout": "Выйти",
"navigation_bar.main": "Главное меню",
"navigation_bar.moderation": "Модерирование",
"navigation_bar.more": "Ещё",
"navigation_bar.mutes": "Игнорируемые пользователи",
@@ -840,6 +918,7 @@
"navigation_panel.expand_followed_tags": "Развернуть меню подписок на хештеги",
"navigation_panel.expand_lists": "Развернуть меню списков",
"not_signed_in_indicator.not_signed_in": "Эта страница доступна только авторизованным пользователям.",
"notification.added_to_collection": "{name} добавил(а) вас в подборку",
"notification.admin.report": "{name} пожаловался (-лась) на {target}",
"notification.admin.report_account": "{name} пожаловался (-лась) на {count, plural, one {# пост} few {# поста} other {# постов}} пользователя {target}, выбрав категорию «{category}»",
"notification.admin.report_account_other": "{name} пожаловался (-лась) на {count, plural, one {# пост} few {# поста} other {# постов}} пользователя {target}",
@@ -910,6 +989,7 @@
"notifications.column_settings.admin.report": "Новые жалобы:",
"notifications.column_settings.admin.sign_up": "Новые регистрации:",
"notifications.column_settings.alert": "Уведомления на рабочем столе",
"notifications.column_settings.collections": "Подборки:",
"notifications.column_settings.favourite": "Ваш пост добавили в избранное:",
"notifications.column_settings.filter_bar.advanced": "Показывать все категории",
"notifications.column_settings.filter_bar.category": "Панель быстрых фильтров",
@@ -929,6 +1009,7 @@
"notifications.column_settings.update": "Пост был отредактирован:",
"notifications.filter.all": "Все",
"notifications.filter.boosts": "Продвижения",
"notifications.filter.collections": "Подборки",
"notifications.filter.favourites": "Избранное",
"notifications.filter.follows": "Новые подписчики",
"notifications.filter.mentions": "Упоминания",
@@ -945,6 +1026,8 @@
"notifications.policy.drop": "Игнорировать",
"notifications.policy.drop_hint": "Отправлять в пустоту, чтобы никогда больше не увидеть",
"notifications.policy.filter": "Фильтровать",
"notifications.policy.filter_bots_hint": "Отмеченные как выполняющие автоматизированные действия",
"notifications.policy.filter_bots_title": "Учётные записи ботов",
"notifications.policy.filter_hint": "Отправлять в раздел отфильтрованных уведомлений",
"notifications.policy.filter_limited_accounts_hint": "Ограниченные модераторами сервера",
"notifications.policy.filter_limited_accounts_title": "Модерируемые учётные записи",
@@ -1004,10 +1087,10 @@
"privacy_policy.last_updated": "Последнее обновление: {date}",
"privacy_policy.title": "Политика конфиденциальности",
"quote_error.edit": "Нельзя добавить цитирование к уже опубликованному посту.",
"quote_error.poll": "Цитирование не допускается при голосовании.",
"quote_error.poll": "Цитирование не позволяется, если к посту добавлен опрос.",
"quote_error.private_mentions": "Цитирование в личных упоминаниях не позволяется.",
"quote_error.quote": "Одновременно допускается только одна цитата.",
"quote_error.unauthorized": "Вы не имеете права цитировать этот пост.",
"quote_error.quote": "Нельзя добавить больше одного цитирования.",
"quote_error.unauthorized": "Вы не можете цитировать этот пост.",
"quote_error.upload": "Цитирование не позволяется, если к посту прикреплены медиавложения.",
"recommended": "Рекомендуется",
"refresh": "Обновить",
@@ -1037,6 +1120,9 @@
"report.categories.spam": "Спам",
"report.categories.violation": "Содержимое нарушает одно или несколько правил сервера",
"report.category.subtitle": "Выберите наиболее подходящий вариант",
"report.category.title_account": "Расскажите нам, что не так с этим профилем",
"report.category.title_collection": "Расскажите нам, что не так с этой подборкой",
"report.category.title_status": "Расскажите нам, что не так с этим постом",
"report.close": "Готово",
"report.comment.title": "Есть ли ещё подробности, о которых нам стоит знать?",
"report.forward": "Переслать в {target}",
@@ -1060,6 +1146,7 @@
"report.statuses.subtitle": "Отметьте все подходящие посты",
"report.statuses.title": "Выберите посты, которые относятся к вашей жалобе.",
"report.submission_error": "Не удалось отправить жалобу",
"report.submission_error_details": "Проверьте свое подключение к сети и повторите попытку позже.",
"report.submit": "Отправить",
"report.target": "Жалоба на {target}",
"report.thanks.take_action": "Вот несколько средств, с помощью которых можно контролировать, что вы видите в Mastodon:",
@@ -1097,6 +1184,7 @@
"search_popout.user": "пользователь",
"search_results.accounts": "Профили",
"search_results.all": "Все",
"search_results.collections": "Подборки",
"search_results.hashtags": "Хештеги",
"search_results.no_results": "Ничего не найдено.",
"search_results.no_search_yet": "Попробуйте поискать посты, профили или хештеги.",
@@ -1167,20 +1255,22 @@
"status.quote_error.muted_account_hint.title": "Этот пост был скрыт, поскольку вы игнорируете @{name}.",
"status.quote_error.not_available": "Пост недоступен",
"status.quote_error.pending_approval": "Пост ожидает подтверждения",
"status.quote_error.pending_approval_popout.body": "На Mastodon вы можете контролировать, будет ли кто-то цитировать вас. Этот пост находится на рассмотрении, пока мы не получим одобрение автора.",
"status.quote_error.pending_approval_popout.body": "Mastodon позволяет каждому контролировать, кто может цитировать его посты. Этот пост временно недоступен, пока мы запрашиваем подтверждение того, что его цитирование одобрено автором.",
"status.quote_error.revoked": "Пост удалён автором",
"status.quote_followers_only": "Только подписчики могут цитировать этот пост",
"status.quote_manual_review": "Автор будет проверять вручную",
"status.quote_manual_review": "Автор должен одобрить запрос вручную",
"status.quote_noun": "Цитата",
"status.quote_policy_change": "Изменить настройки цитирования",
"status.quote_post_author": "Процитировал(а) пост @{name}",
"status.quote_private": "Приватные посты не могут быть процитированы",
"status.quotes.empty": "Никто еще не процитировал этот пост. Все цитирования этого поста будут показаны здесь.",
"status.quotes.local_other_disclaimer": "Цитирования, не одобренные автором, не будут показаны.",
"status.quotes.remote_other_disclaimer": "Только цитирования с сервера {domain} гарантированно показаны здесь. Цитирования, не одобренные автором, не будут показаны.",
"status.quotes_count": "{count, plural, one {{counter} цитирование} few {{counter} цитирования} other {{counter} цитирований}}",
"status.read_more": "Читать далее",
"status.reblog": "Продвинуть",
"status.reblog_or_quote": "Продвинуть или процитировать",
"status.reblog_private": "Поделиться со своими подписчиками ещё раз",
"status.reblog_private": "Продвинуть пост для своих подписчиков",
"status.reblogged_by": "{name} продвинул(а)",
"status.reblogs.empty": "Никто ещё не продвинул этот пост. Все пользователи, которые продвинут этот пост, будут показаны здесь.",
"status.reblogs_count": "{count, plural, one {{counter} продвижение} few {{counter} продвижения} other {{counter} продвижений}}",
@@ -1193,7 +1283,7 @@
"status.reply": "Ответить",
"status.replyAll": "Ответить в обсуждении",
"status.report": "Пожаловаться на @{name}",
"status.request_quote": "Запрос на цитирование",
"status.request_quote": "Запросить цитирование",
"status.revoke_quote": "Убрать мой пост из поста @{name}",
"status.sensitive_warning": "Медиа деликатного характера",
"status.share": "Поделиться",
@@ -1258,7 +1348,7 @@
"video.volume_down": "Громкость уменьшена",
"video.volume_up": "Громкость увеличена",
"visibility_modal.button_title": "Настроить видимость",
"visibility_modal.direct_quote_warning.text": "Если вы сохраните эти настройки, вложенное цитирование будет преобразовано в ссылку.",
"visibility_modal.direct_quote_warning.text": "Если вы сохраните эти настройки, добавленное цитирование будет преобразовано в ссылку.",
"visibility_modal.direct_quote_warning.title": "Нельзя добавить цитирование к личным упоминаниям",
"visibility_modal.header": "Видимость и взаимодействие",
"visibility_modal.helper.direct_quoting": "Посты, созданные в Mastodon как личные упоминания, не могут быть процитированы другими пользователями.",
@@ -1266,7 +1356,7 @@
"visibility_modal.helper.privacy_private_self_quote": "Посты, которые цитируют ваши приватные посты, не могут быть публичными.",
"visibility_modal.helper.private_quoting": "Посты, созданные в Mastodon с видимостью только для подписчиков, не могут быть процитированы другими пользователями.",
"visibility_modal.helper.unlisted_quoting": "Если кто-нибудь процитирует вас, его пост тоже будет скрыт из алгоритмических лент.",
"visibility_modal.instructions": "Определите, кто сможет взаимодействовать с этим постом. Чтобы применить настройки ко всем будущим постам, перейдите в <link>Настройки > Предустановки для новых постов</link>.",
"visibility_modal.instructions": "Определите, кто сможет взаимодействовать с этим постом. Чтобы применить настройки ко всем будущим постам, перейдите в <link>Настройки → Предустановки для новых постов</link>.",
"visibility_modal.privacy_label": "Видимость",
"visibility_modal.quote_followers": "Только подписчики",
"visibility_modal.quote_label": "Кто может цитировать вас",
@@ -18,6 +18,10 @@ export async function cacheRoot() {
export function handleFetch(event: FetchEvent) {
const url = new URL(event.request.url);
if (url.protocol !== 'http:' && url.protocol !== 'https:') {
return;
}
if (url.pathname === '/auth/sign_out') {
event.respondWith(handleLogout(event));
} else if (/intl\/.*\.js$/.test(url.pathname)) {
@@ -1742,7 +1742,7 @@ body > [data-popper-placement] {
font-weight: 500;
color: var(--color-text-secondary);
.status__wrapper-reply & {
.status__wrapper-reply.status__wrapper--in-thread & {
--thread-margin: calc(46px + 8px);
margin-inline-start: var(--thread-margin);
@@ -3896,6 +3896,7 @@ a.account__display-name {
}
.scrollable {
container: column / inline-size;
overflow-y: scroll;
overflow-x: hidden;
flex: 1 1 auto;
@@ -4577,6 +4578,7 @@ a.status-card {
}
.column-header__wrapper {
container: column / inline-size;
position: relative;
flex: 0 0 auto;
z-index: 1;
+1 -1
View File
@@ -22,7 +22,7 @@ class ActivityPub::LinkedDataSignature
keypair = Keypair.from_keyid(creator_uri)
keypair = ActivityPub::FetchRemoteKeyService.new.call(creator_uri) if keypair&.public_key.blank?
return if keypair.nil? || !keypair.usable?
return if keypair.nil? || !keypair.usable? || keypair.type != 'rsa'
options_hash = hash(@json['signature'].without('type', 'id', 'signatureValue').merge('@context' => CONTEXT))
document_hash = hash(@json.without('signature'))
+6 -1
View File
@@ -171,7 +171,12 @@ class SignedRequest
end
def verified?(keypair)
key = Linzer.new_rsa_v1_5_sha256_public_key(keypair.public_key)
case keypair.type
when 'rsa'
key = Linzer.new_rsa_v1_5_sha256_public_key(keypair.public_key)
when 'ed25519'
key = Linzer.new_ed25519_public_key(keypair.public_key)
end
Linzer.verify(key, @message, @signature)
rescue Linzer::VerifyError
+6 -1
View File
@@ -25,7 +25,10 @@ class Keypair < ApplicationRecord
belongs_to :account
enum :type, { rsa: 0 }
enum :type, {
rsa: 0,
ed25519: 1,
}, validate: true
attr_accessor :require_private_key
@@ -46,6 +49,8 @@ class Keypair < ApplicationRecord
case type
when 'rsa'
OpenSSL::PKey::RSA.new(private_key || public_key)
when 'ed25519'
OpenSSL::PKey.read(private_key || public_key)
end
end
end
+1 -1
View File
@@ -110,7 +110,7 @@ class User < ApplicationRecord
scope :disabled, -> { where(disabled: true) }
scope :active, -> { confirmed.signed_in_recently.account_not_suspended }
scope :matches_email, ->(value) { where(arel_table[:email].matches("#{value}%")) }
scope :matches_ip, ->(value) { left_joins(:ips).merge(IpBlock.contained_by(value)).group(users: [:id]) }
scope :matches_ip, ->(value) { left_joins(:ips).merge(UserIp.contained_by(value)).group(users: [:id]) }
before_validation :sanitize_role
before_create :set_approved
@@ -341,6 +341,14 @@ class ActivityPub::ProcessAccountService < BaseService
case tag
when :'rsa-pub'
[:rsa, OpenSSL::PKey::RSA.new(key).to_pem]
when :'ed25519-pub'
asn1 = OpenSSL::ASN1::Sequence(
[
OpenSSL::ASN1::Sequence([OpenSSL::ASN1::ObjectId('ED25519')]),
OpenSSL::ASN1::BitString(key),
]
)
[:ed25519, OpenSSL::PKey.read(asn1.to_der).public_to_pem]
end
rescue ArgumentError
nil
@@ -11,6 +11,13 @@ class ActivityPub::ProcessCollectionService < BaseService
return unless @json.is_a?(Hash)
# Ideally, we should treat all ActivityPub payloads as proper JSON-LD.
# However, some implementations do not produce valid JSON-LD, and processing JSON-LD is pretty expensive.
# Therefore, we only process activities as JSON-LD if they make use of JSON-LD signatures.
# The reasons are that this is a strong indication that they are valid JSON-LD documents,
# and that Linked Data Signature verification requires JSON-LD processing to begin with.
# Doing JSON-LD compaction early ensures we know what we are working with, and avoids
# issues like attacks involving swapping external context documents between processing steps.
begin
@json = compact(@json) if @json['signature'].is_a?(Hash)
if unsupported_jsonld_features?(@json)
@@ -22,8 +29,19 @@ class ActivityPub::ProcessCollectionService < BaseService
@json = original_json.without('signature')
end
return if !supported_context? || (different_actor? && verify_account!.nil?) || suspended_actor? || @account.local?
return unless @account.is_a?(Account)
return unless supported_context?(@json)
if different_actor?
# This has been relayed by a different account.
# Record where it's coming from and try to verify proof of the activity.
@options[:relayed_through_actor] = @account
# TODO: handle FEP-8b32
@account = actor_from_verified_ld_signature
end
return if !@account.is_a?(Account) || different_actor? || suspended_actor? || @account.local?
if @json['signature'].present?
# We have verified the signature, but in the compaction step above, might
@@ -64,23 +82,16 @@ class ActivityPub::ProcessCollectionService < BaseService
items.reverse_each.filter_map { |item| process_item(item) }
end
def supported_context?
super(@json)
end
def process_item(item)
activity = ActivityPub::Activity.factory(item, @account, **@options)
activity&.perform
end
def verify_account!
def actor_from_verified_ld_signature
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)
@account
ActivityPub::LinkedDataSignature.new(@json).verify_actor!
rescue JSON::LD::JsonLdError, RDF::WriterError => e
Rails.logger.debug { "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}" }
nil
-13
View File
@@ -16,7 +16,6 @@ class FanOutOnWriteService < BaseService
return if @status.proper.account.suspended?
check_race_condition!
warm_payload_cache!
fan_out_to_local_recipients!
@@ -26,18 +25,6 @@ class FanOutOnWriteService < BaseService
private
def check_race_condition!
# I don't know why but at some point we had an issue where
# this service was being executed with status objects
# that had a null visibility - which should not be possible
# since the column in the database is not nullable.
#
# This check re-queues the service to be run at a later time
# with the full object, if something like it occurs
raise Mastodon::RaceConditionError if @status.visibility.nil?
end
def fan_out_to_local_recipients!
deliver_to_self!
@@ -0,0 +1,39 @@
# frozen_string_literal: true
# TODO: Remove in the next version
class Scheduler::RepairRemoteCollectionsScheduler
include Sidekiq::Worker
include JsonLdHelper
include Redisable
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 1.day.to_i
def perform
max_id = Collection.maximum(:id)
last_known_good = redis.get('remote_collection_repair:last_known_good')
affected_collections = Collection.joins(:account).where(local: false)
.where("substring(collections.uri from '/ap/users/\\d+/') != substring(accounts.collections_url from '/ap/users/\\d+/')")
affected_collections = affected_collections.where(id: last_known_good...) if last_known_good
successful = true
affected_collections.find_each do |collection|
json = fetch_resource(collection.uri, true)
if json.nil? || !json.is_a?(Hash) || !json.key?('attributedTo')
successful = false
next
end
account = Account.find_by(uri: json['attributedTo'])
account ||= ActivityPub::FetchRemoteAccountService.new.call(json['attributedTo'])
if account.nil?
successful = false
next
end
collection.update(account:)
end
redis.set('remote_collection_repair:last_known_good', max_id.to_s) if successful
end
end
+2
View File
@@ -730,6 +730,8 @@ fr-CA:
new:
title: Créer une nouvelle règle IP
no_ip_block_selected: Aucune règle IP n’a été modifiée car aucune n’a été sélectionnée
reset: Réinitialiser
search: Rechercher
title: Règles IP
relationships:
title: Relations de %{acct}
+2
View File
@@ -730,6 +730,8 @@ fr:
new:
title: Créer une nouvelle règle IP
no_ip_block_selected: Aucune règle IP n’a été modifiée car aucune n’a été sélectionnée
reset: Réinitialiser
search: Rechercher
title: Règles IP
relationships:
title: Relations de %{acct}
+2
View File
@@ -769,6 +769,8 @@ ga:
new:
title: Cruthaigh riail IP nua
no_ip_block_selected: Níor athraíodh aon rialacha IP mar níor roghnaíodh ceann ar bith
reset: Athshocraigh
search: Cuardaigh
title: Rialacha IP
relationships:
title: Caidrimh %{acct}
+2
View File
@@ -756,6 +756,8 @@ he:
new:
title: יצירת כלל IP
no_ip_block_selected: שום כלל IP לא שונה כי שום כלל IP לא נבחר
reset: איפוס
search: חיפוש
title: כללי IP
relationships:
title: היחסים של %{acct}
+2
View File
@@ -729,6 +729,8 @@ is:
new:
title: Búa til nýja IP-reglu
no_ip_block_selected: Engum IP-reglum var breytt því ekkert var valið
reset: Endurstilla
search: Leita
title: IP-reglur
relationships:
title: Vensl %{acct}
+7
View File
@@ -76,6 +76,7 @@ kab:
moderation:
active: Yermed
all: Akk
disabled: D arurmid
pending: Yettraǧu
suspended: Yettwaḥbes
title: Aseɣyed
@@ -291,6 +292,8 @@ kab:
accounts:
account: Amiḍan
last_email: Imayl aneggaru
show:
view_account: Wali amiḍan
status: Addad
compliance_settings:
additional_footer_text:
@@ -394,6 +397,7 @@ kab:
new:
title: Rnu alugen n IP amaynut
no_ip_block_selected: Ula yiwen n ulugen n IP ur yettwabeddel acku ula yiwen ur yettwafren
search: Nadi
title: Ilugan n IP
relationships:
title: Assaɣen n %{acct}
@@ -421,6 +425,7 @@ kab:
comment:
none: Ula yiwen
confirm: Sentem
delete_and_resolve: Kkes agbur
mark_as_resolved: Creḍ-it yefra
mark_as_unresolved: Creḍ-it ur yefra ara
no_one_assigned: Ula yiwen
@@ -741,6 +746,7 @@ kab:
disputes:
strikes:
status: 'Tasuffeɣt #%{id}'
title: "%{action} seg %{date}"
title_actions:
delete_statuses: Tukksa n tsuffeɣt
none: Ɣur-wat
@@ -836,6 +842,7 @@ kab:
types:
blocking: Tabdart n yimiḍanen iweḥlen
bookmarks: Ticraḍ
custom_filters: Imsizdigen
following: Tabdert n wid teṭṭafareḍ
lists: Tibdarin
muting: Tabdert n wid tesgugmeḍ
+78 -11
View File
@@ -4,6 +4,7 @@ nan-TW:
about_mastodon_html: 社交網路ê未來:Bô廣告、bô企業監控、設計有道德,兼非中心化!加入Mastodon,保有lí ê資料!
contact_missing: Iáu bē設定
contact_unavailable: 無開放
default_thumbnail_description: 兩隻笑微微ê bàng-gah奶齒象(看起來像象)互相擲紙飛行機。In予光光ê青天kap漂流ê,有樹仔kap koh較tsē ê奶齒象ê惑星所圍。
hosted_on: 佇 %{domain} 運作 ê Mastodon站
title: 關係本站
accounts:
@@ -328,7 +329,7 @@ nan-TW:
create: 加添公告
title: 新ê公告
preview:
disclaimer: 因為用者bē當退出,電子批ê通知應該限制tī重要ê公告,比論個人資料洩出,á是關掉服侍器ê通知。
disclaimer: 因為用者bē當退出,電子phue ê通知應該限制tī重要ê公告,比論個人資料洩出,á是關掉服侍器ê通知。
explanation_html: Tsit封email ē送hōo <strong>%{display_count} ê用者</strong>。Email ē包括下跤ê文字:
title: 先kā公告通知看māi
publish: 公開
@@ -497,7 +498,7 @@ nan-TW:
lead: 有啟用tsit ê功能koh有訂ê lâng ê口座ē展示佇下kha。
show:
confirm_disable_feature: Kám beh kā %{name} 停止電子報?電子phue更新ē buē koh對 tsit ê口座送出。Tsit ê用者猶原通佇in ê口座設定內底重啟用tsit ê功能。Beh永永禁止接近使用tsit ê功能,請佇角色內底編tsit ê口座ê權限。
confirm_remove_subscriber: "%{email} 會無法度收著uì %{name} 來ê電子批。Tsit ê功能bē當復原。"
confirm_remove_subscriber: "%{email} 會無法度收著uì %{name} 來ê電子phue。Tsit ê功能bē當復原。"
consent: 訂ê lâng kan-ta同意通過電子phue收著PO文。請毋通kā tsit ê列單用做別途。
date: 註冊日
disable_feature: Kā功能停止使用
@@ -507,6 +508,9 @@ nan-TW:
hint: Iáu無半个lâng訂tsit ê口座。
no_subscribers_yet: Iáu無訂ê lâng
enable_feature: 啟用功能
no_access_html: Tsit ê口座buē koh有需要ê權限來啟用tsit ê功能。請佇<a href="%{roles_path}">角色</a>內底改。
title: "%{name} ê電子報"
view_account: 看口座
status: 狀態
subscribers: 訂ê lâng
title: 電子phue列單
@@ -518,7 +522,7 @@ nan-TW:
action: 管理
hint: Kan-ta佇電子報ê phue ê註kha出現ê通選ê文字
title: 其他註kha ê文字
lead: 電子報ê phue可能hőng掠做行銷ê電子批,根據lí pháng ê服侍器ê司法管轄區決定。
lead: 電子報ê phue可能hőng掠做行銷ê電子phue,根據lí pháng ê服侍器ê司法管轄區決定。
privacy_policy:
action: 管理
hint: 逐封電子phue ê下kha lóng ē有連kàu tsit ê政策ê連結
@@ -534,7 +538,7 @@ nan-TW:
hint: 佇逐ê郵件列單內底ê逐封phue lóng永永thâi掉
title: 消除所有資料
title: 危險ê所在
disabled_msg: 停止使用訂電子批成功ah。
disabled_msg: 停止使用訂電子phue成功ah。
index:
disabled:
cannot_be_enabled: Lí ê技術提供者iáu buē替lí ê服侍器啟用tsit ê功能。
@@ -713,6 +717,8 @@ nan-TW:
new:
title: 建立新ê IP規則
no_ip_block_selected: 因為無揀任何IP規則,所以lóng無改變
reset: 重頭設
search: Tshiau-tshuē
title: IP規則
relationships:
title: "%{acct} ê關係"
@@ -953,6 +959,13 @@ nan-TW:
hints:
about_html: 關係tsit臺服侍器ê敘述、聯絡資訊、規則kap其他資訊ê頁。
local_feed_html: 展示tsit臺服侍器用者ê上新PO文ê即時內容。
overview_html: 展示lí ê服侍器ê描述,kap tsit臺服侍器ê用者最近所PO ê文ê頁。
trends_html: 展示tsit-má佇tsit臺服侍器啥物上流行ê頁。
values:
about: 關係本站
local_feed: 本地tsit-má ê動態
overview: 概要
trends: 趨勢
registrations:
moderation_recommandation: 佇開放hōo ta̍k ê lâng註冊進前,請確認lí有夠額koh主動反應ê管理團隊!
preamble: 控制ē當佇lí ê服侍器註冊ê人。
@@ -972,6 +985,7 @@ nan-TW:
site_uploads:
delete: Thâi掉傳上去ê檔案
destroyed_msg: 成功thâi掉傳上去kàu本站ê內容ah!
skip_to_content: 跳kàu內容
software_updates:
critical_update: 重要—請緊升級
description: 建議kā lí ê Mastodon安裝維持上新ê狀態,the̍h著上新ê修正kap功能。另外,隨時更新Mastodon有時陣真重要,ē當避免安全問題。因為tsiah-ê原因,Mastodon每30分鐘檢查更新,mā ē根據lí ê電子phue通知ê偏愛設定kā lí通知。
@@ -1482,21 +1496,22 @@ nan-TW:
your_appeal_rejected: Lí ê投訴已經受拒絕
edit_profile:
other: 其他
privacy_redesign_body: Tann通直接揀kám beh佇lí ê個人資料,展示lí所跟tuè ê kap跟tuè lí ê。
redesign_body: 編輯個人檔案tsit-má ē當直接對個人資料頁接近使用。
redesign_button: Kàu hia
redesign_title: 有新ê個人資料編輯ê體驗
email_subscription_mailer:
confirmation:
action: 確認電子phue地址
instructions_to_confirm: 請確認當 %{name}(@%{acct})發送新ê PO文ê時陣,lí想欲收in ê電子批。
instructions_to_confirm: 確認lí beh佇 %{name}(%{acct}) 貼新ê PO文ê時,收著對伊來ê電子phue。
instructions_to_ignore: Lí若無確定是án-tsuánn lí收著tsit張phue,lí ē當kā thâi,Lí若無tshi̍h頂懸ê連結,就buē kā lí訂。
subject: 確認lí ê電子phue地址
title: Kám beh對 %{name}收著電子批ê更新?
title: Kám beh對 %{name}收著電子phue ê更新?
notification:
create_account: 建立Mastodon ê口座
footer:
privacy_html: 電子批是由Mastodon ê服侍器 %{domain} 送出。Beh了解tsit台服侍器án-tsuánn處理lí ê個人資料,請參考<a href="%{privacy_policy_path}">隱私權政策</a>。
reason_for_email_html: 因為lí選擇收著對 %{name} 來ê電子phue更新,所以lí teh收著tsit張電子批。Kám無beh收著tsiah ê電子phue?<a href="%{unsubscribe_path}">取消訂</a>
privacy_html: 電子phue是由Mastodon ê服侍器 %{domain} 送出。Beh了解tsit台服侍器án-tsuánn處理lí ê個人資料,請參考<a href="%{privacy_policy_path}">隱私權政策</a>。
reason_for_email_html: 因為lí選擇收著對 %{name} 來ê電子phue更新,所以lí teh收著tsit張電子phue。Kám無beh收著tsiah ê電子phue?<a href="%{unsubscribe_path}">取消訂</a>
interact_with_this_post:
other: Kap tsit(tsiah)ê PO文互動,發現其他相siâng ê PO文。
subject:
@@ -1510,10 +1525,12 @@ nan-TW:
confirmations:
show:
changed_your_mind: Kám beh改變心意?
success_html: Lí對tsit-má開始,佇 %{name} 刊出新ê PO文ê時陣,ē收著電子批。加添 %{sender} kàu lí ê聯絡人,避免tsiah ê PO文hőng tàn kàu pùn-sò phue ê資料giap-á。
success_html: Lí佇 %{name} 貼新PO文ê時陣,ē開始收著電子phue。請加添 %{sender} kàu lí ê聯絡人,予tsiah ê PO文buē分kàu lí ê pùn-sò phue資料giap-á內。
title: Lí有註冊ah
unsubscribe: 取消訂
disabled: 停用ah
inactive: 停止使用ah
no_access: Bē當接近使用
status: 狀態
subscribers: 訂ê lâng
emoji_styles:
@@ -1549,7 +1566,9 @@ nan-TW:
blocks: Lí封鎖ê
bookmarks: 冊籤
csv: CSV
custom_filters: 過濾器
domain_blocks: 域名封鎖
json: JSON
lists: 列單
mutes: Lí消音ê
storage: 媒體儲存
@@ -1620,7 +1639,9 @@ nan-TW:
empty: 空ê CSV檔案
incompatible_type: Kap所揀ê輸入類型無配合
invalid_csv_file: 無效ê CSV檔案。錯誤:%{error}
invalid_json_file: 無效ê JSON檔案。錯誤:%{error}
over_rows_processing_limit: 包含超過 %{count} tsuā
status_not_found_warning: Lí ê一寡過濾器khàm掉tsit臺服侍器毋知ê特定PO文。若是tsit臺服侍器以後tsiah發現tsiah ê PO文,in bē當予伊自動過濾。
too_large: 檔案siunn大
failures: 失敗
imported: 輸入ah
@@ -1635,6 +1656,8 @@ nan-TW:
other: Lí teh-beh用 <strong>%{filename}</strong> ê <strong>%{count} ê口座</strong>,<strong>替換lí ê封鎖列單</strong>。
bookmarks_html:
other: Lí teh-beh用 <strong>%{filename}</strong> ê <strong>%{count} ê PO文</strong>,<strong>替換lí ê冊籤</strong>。
custom_filters_html:
other: Lí當beh用 <strong>%{filename}</strong> ê內容<strong>取代lí ê過濾器</strong>。<strong>%{count} ê過濾器</strong>會加添kàu新過濾器。
domain_blocking_html:
other: Lí teh-beh用 <strong>%{filename}</strong> ê <strong>%{count} ê域名</strong>,<strong>替換lí ê域名封鎖列單</strong>。
following_html:
@@ -1648,6 +1671,8 @@ nan-TW:
other: Lí teh-beh kā <strong>%{filename}</strong>內底ê<strong>%{count} ê口座</strong><strong>封鎖</strong>。
bookmarks_html:
other: Lí當beh對 <strong>%{filename}</strong> 加添 <strong>%{count} 篇PO文</strong>kàu lí ê <strong>冊籤</strong>。
custom_filters_html:
other: Lí當beh對 <strong>%{filename}</strong> 加添 <strong>%{count} 篇過濾器</strong>kàu lí ê <strong>過濾器</strong>。
domain_blocking_html:
other: Lí teh-beh kā <strong>%{filename}</strong>內底ê<strong>%{count} ê域名</strong><strong>封鎖</strong>。
following_html:
@@ -1680,6 +1705,7 @@ nan-TW:
types:
blocking: 封鎖ê列單
bookmarks: 冊籤
custom_filters: 過濾器
domain_blocking: 域名封鎖列單
following: Leh跟tuè ê ê列單
lists: 列單
@@ -1721,7 +1747,7 @@ nan-TW:
authentication_methods:
otp: 雙因素認證app
password: 密碼
sign_in_token: 電子批ê安全碼
sign_in_token: 電子phue ê安全碼
webauthn: 安全檢查
description_html: Nā lí看見認bē出ê活動,請考慮改lí ê密碼kap啟用雙因素認證。
empty: 無認證ê歷史
@@ -1773,6 +1799,26 @@ nan-TW:
copy_account_note_text: Tsit ê用者對 %{acct} suá過來,下kha是lí進前對伊ê註:
navigation:
toggle_menu: 切換目錄
notification_fallbacks:
added_to_collection:
title_html: "%{name} kā lí加kàu收藏"
admin_report:
title_html: "%{name} kā %{target} 檢舉ah"
admin_sign_up:
title_and_others_html:
other: "%{name} kap %{count} ê別lâng註冊ah"
title_html: "%{name} 註冊ah"
collection_update:
title_html: "%{name} 有更新lí有佇leh ê收藏"
generic:
sign_in: 登入kàu Mastodon ê網頁app
summary_html: Lí teh用無支援上新版ê Mastodon ê app。Beh用完整ê功能,請kàu %{link}。
moderation_warning:
summary_html: Lí teh用無支援上新版ê Mastodon ê app。%{link}。
title: Lí有收著管理ê警告。
severed_relationships:
summary_html: "%{from} ê管理員已經kā %{target} ê權限中止,意思是lí bē使koh收著in ê更新,á是hām in互動。Kàu %{link} the̍h著失去關係ê列單。"
title: Kap %{name} ê結連無去
notification_mailer:
admin:
report:
@@ -1866,7 +1912,7 @@ nan-TW:
public_timelines: 公共ê時間線
privacy:
email_subscriptions: 用電子phue寄PO文
email_subscriptions_hint_html: 佇lí ê個人資料內底加訂電子批ê表,予無登入ê用者看。訪客若輸入in ê電子phue地址,揀beh來訂,Mastodon會用電子批送予伊lí ê公開PO文ê更新。
email_subscriptions_hint_html: 佇lí ê個人資料內底加訂電子phue ê表,予無登入ê用者看。訪客若輸入in ê電子phue地址,揀beh來訂,Mastodon會用電子phue送予伊lí ê公開PO文ê更新。
hint_html: "<strong>自訂lí beh án-nuá hōo lí ê個人資料kap PO文受lâng發現。</strong>Mastodon ê tsē-tsē功能nā是拍開,通幫tsān lí接觸kàu較闊ê觀眾。請開一寡時間重看tsiah ê設定,確認in合lí ê使用例。"
privacy: 隱私權
privacy_hint_html: 控制lí想欲為別lâng ê利益,公開guā tsē內容。Lâng用瀏覽別lâng ê跟tuè koh看in用啥物應用程式PO文,來發現心適ê個人資料kap時行ê應用程式,但是lí凡勢beh保持khàm起來。
@@ -2119,6 +2165,27 @@ nan-TW:
generate_recovery_codes: 生成恢復碼
lost_recovery_codes: 恢復碼予lí會當佇拍毋見手機á ê時陣,koh通接近使用lí ê口座。若是lí有失去lí ê恢復碼,lí佇tsia會當koh產出,毋koh舊ê恢復碼會變無效。
methods: 雙因素驗證
otp: 驗證app
recovery_codes: 備份恢復碼
recovery_codes_regenerated: 恢復碼成功重頭產生
recovery_instructions_html: Nā準lí ê手機仔bē當用,lí通用下kha其中一个恢復碼來重頭the̍h著lí ê口座ê接近使用權。<strong>請kā恢復碼保存予好</strong>。比論講,lí通kā in印出來,kap其他ê重要文件kâng齊收khǹg。
resume_app_authorization: 恢復應用程式授權
role_requirement: "%{domain} 要求lí佇用Mastodon進前,設雙因素驗證。"
webauthn: 安全鎖匙
unsubscriptions:
create:
action: 行kàu服侍器ê頭頁
email_subscription:
confirmation_html: Lí bē當koh收著對%{name}來ê phue。
title: 汝取消訂ah
user:
confirmation_html: Lí bē koh收著對 %{domain} ê Mastodon ê %{type}。
notification_emails:
favourite: 收藏通知電子phue
follow: 跟tuè通知電子phue
follow_request: 跟tuè請求電子phue
mention: 提起通知電子phue
reblog: 轉送通知電子phue
user_mailer:
terms_of_service_changed:
description: Lí收著tsit張電子phue,是因為gún佇 %{domain} teh修改服務規定。Tsiah ê更新會佇 %{date} 施行。Gún鼓勵lí佇tsia讀kui篇更新ê規定:
+31 -6
View File
@@ -1370,12 +1370,12 @@ ru:
invalid_password: Неверный пароль
prompt: Введите пароль, чтобы продолжить
color_scheme:
auto: Авто
dark: Тёмный
light: Светлый
auto: Автоматически
dark: Тёмная
light: Светлая
contrast:
auto: Авто
high: Высоко
auto: Автоматически
high: Высококонтрастная
crypto:
errors:
invalid_key: должен быть действительным Ed25519- или Curve25519-ключом
@@ -1491,7 +1491,9 @@ ru:
blocks: Заблокированные пользователи
bookmarks: Закладки
csv: CSV
custom_filters: Фильтры
domain_blocks: Заблокированные домены
json: JSON
lists: Списки
mutes: Игнорируемые пользователи
storage: Хранилище медиа
@@ -1583,6 +1585,7 @@ ru:
empty: Файл CSV пуст
incompatible_type: Несовместим с выбранным типом данных для импорта
invalid_csv_file: 'Ошибка при чтении файла CSV: %{error}'
invalid_json_file: 'Ошибка при чтении файла JSON: %{error}'
over_rows_processing_limit: содержит более %{count} строк
too_large: Файл слишком большой
failures: Ошибки
@@ -1679,6 +1682,7 @@ ru:
types:
blocking: Заблокированные пользователи
bookmarks: Закладки
custom_filters: Фильтры
domain_blocking: Заблокированные домены
following: Подписки
lists: Списки
@@ -1761,6 +1765,7 @@ ru:
disabled_account: Переезд приведёт к тому, что вашу текущую учётную запись нельзя будет полноценно использовать. Тем не менее у вас останется доступ к экспорту данных и повторной активации учётной записи.
followers: В результате переезда все ваши подписчики будут перенесены с текущей учётной записи на новую
only_redirect_html: Также вы можете <a href="%{path}">настроить перенаправление без переноса подписчиков</a>.
other_data: Никакие другие данные, в том числе ваши посты и ваши подписки, не будут автоматически перенесены
redirect: Профиль текущей учётной записи будет исключён из поиска, а в нём появится объявление о переезде
moderation:
title: Модерация
@@ -1770,6 +1775,17 @@ ru:
copy_account_note_text: 'Этот пользователь переехал с %{acct}, вот ваша предыдущая заметка о нём:'
navigation:
toggle_menu: Переключить меню
notification_fallbacks:
added_to_collection:
title_html: "%{name} добавил(а) вас в подборку"
admin_report:
title_html: "%{name} пожаловался (-лась) на %{target}"
admin_sign_up:
title_html: "%{name} зарегистрировался (-лась) на сервере"
moderation_warning:
title: Модераторы вынесли вам предупреждение.
severed_relationships:
title: Разорвана связь с %{name}
notification_mailer:
admin:
report:
@@ -1794,12 +1810,16 @@ ru:
body: "%{name} упомянул(а) вас:"
subject: "%{name} упомянул(а) вас"
title: Новое упоминание
moderation_warning:
subject: Модераторы вынесли вам предупреждение
poll:
subject: Опрос %{name} завершился
quote:
body: 'Ваш пост был процитирован %{name}:'
subject: "%{name} процитировал(а) ваш пост"
title: Новая цитата
quoted_update:
subject: "%{name} отредактировал(а) процитированный вами пост"
reblog:
body: "%{name} продвинул(а) ваш пост:"
subject: "%{name} продвинул(а) ваш пост"
@@ -1809,7 +1829,7 @@ ru:
update:
subject: "%{name} отредактировал(а) пост"
notifications:
administration_emails: Email уведомления админа
administration_emails: Административные уведомления
email_events: События для уведомлений по электронной почте
email_events_hint: 'Выберите события, для которых вы хотели бы получать уведомления:'
number:
@@ -1850,6 +1870,8 @@ ru:
too_few_options: должны содержать не меньше двух опций
too_many_options: должны ограничиваться максимум %{max} опциями
vote: Проголосовать
posting_defaults:
explanation: Эти настройки будут применяться по умолчанию к новым постам, изменить их можно для каждого поста в отдельности при его создании.
preferences:
other: Разное
posting_defaults: Предустановки для новых постов
@@ -2032,6 +2054,7 @@ ru:
reblog: Нельзя закрепить продвижение
quote_error:
not_available: Пост недоступен
pending_approval: Пост ожидает подтверждения
revoked: Пост удален автором
quote_policies:
followers: Только подписчики
@@ -2049,9 +2072,11 @@ ru:
enabled: Автоматически удалять старые посты
enabled_hint: По истечении определённого срока с момента публикации ваши посты, кроме соответствующих отмеченным ниже исключениям, будут автоматически удалены
exceptions: Исключения
explanation: Удаление постов производится постепенно, с течением времени, когда сервер менее всего загружен. По этой причине посты могут удаляться не сразу по прошествии установленного срока, а спустя некоторое время.
ignore_favs: Не учитывать добавление в избранное
ignore_reblogs: Не учитывать продвижения
interaction_exceptions: Исключения на основе взаимодействий
interaction_exceptions_explanation: Если количество взаимодействий опустится ниже установленного значения после того, как оно однажды превысило его, то всё равно может случиться так, что пост не будет удалён.
keep_direct: Не удалять личные сообщения
keep_direct_hint: Те ваши посты, которые видны только упомянутым в них людям, не будут удалены
keep_media: Не удалять посты с вложениями
+13 -4
View File
@@ -4,6 +4,7 @@ ru:
hints:
account:
attribution_domains: По одному на строку. Защищает от ложных атрибуций.
discoverable: Отметьте флажок, чтобы другие пользователи могли включать вас в подборки, а ваш профиль и ваши публичные посты могли быть показаны пользователям в других рекомендательных функциях Mastodon.
display_name: Ваше полное имя или псевдоним.
fields: Домашняя страница, местоимения, возраст — всё что угодно.
indexable: Отметьте флажок, чтобы ваши публичные посты могли быть найдены при помощи поиска в Mastodon. Люди, которые взаимодействовали с вашими постами, смогут их найти вне зависимости от этой настройки.
@@ -60,8 +61,9 @@ ru:
setting_default_quote_policy_private: Посты, созданные в Mastodon с видимостью только для подписчиков, не могут быть процитированы другими пользователями.
setting_default_quote_policy_unlisted: Если кто-нибудь процитирует вас, его пост тоже будет скрыт из алгоритмических лент.
setting_default_sensitive: Медиа деликатного характера скрыты по умолчанию и могут быть показаны по нажатию на них
setting_display_media_default: Показывать предупреждение перед отображением контента, отмеченного как чувствительный
setting_display_media_hide_all: Показывать предупреждение перед отображением любого контента
setting_display_media_default: Скрывать медиа деликатного характера за предупреждением
setting_display_media_hide_all: Скрывать все медиа за предупреждением
setting_display_media_show_all: Показывать все медиа, в том числе медиа деликатного характера, без предупреждения
setting_emoji_style: Как отображать эмодзи. Если выбран вариант «Автоматически», то будут использованы системные эмодзи, а для устаревших браузеров — Twemoji.
setting_quick_boosting_html: Отметьте флажок, чтобы при нажатии на кнопку %{boost_icon} Продвинуть не выбирать между продвижением и цитированием, а сразу продвигать пост. Цитирование будет доступно из меню поста (%{options_icon}).
setting_use_blurhash: Градиенты основаны на цветах скрытых медиа, но размывают любые детали
@@ -149,6 +151,7 @@ ru:
jurisdiction: Впишите страну, где находится лицо, оплачивающее счета. Если это компания либо организация, впишите страну инкорпорации, включая город, регион, территорию или штат, если это необходимо.
min_age: Не меньше минимального возраста, требуемого по закону в вашей стране.
user:
chosen_languages: Отметьте языки, на которых вы желаете видеть посты в публичных лентах. Эта настройка не влияет на домашнюю ленту и списки.
date_of_birth:
few: Для регистрации на %{domain} нужно убедиться, что вам не меньше %{count} лет. Мы не храним введённые здесь данные.
many: Для регистрации на %{domain} нужно убедиться, что вам не меньше %{count} лет. Мы не храним введённые здесь данные.
@@ -161,6 +164,9 @@ ru:
name: Публичное имя роли, если роль настроена на отображение в виде значка
permissions_as_keys: Пользователи с этой ролью будут иметь доступ...
position: Повышение роли разрешают конфликты интересов в некоторых ситуациях. Некоторые действия могут выполняться только на ролях с более низким приоритетом
username_block:
allow_with_approval: Регистрация с совпадающим именем пользователя не будет полностью запрещена, но будет требовать вашего одобрения
comparison: При блокировке по частичному совпадению не забывайте о проблеме неадекватного вордфильтра
webhook:
events: Выберите события для отправки
template: Составьте собственную полезную нагрузку JSON с использованием интерполяции переменных. Оставьте поле пустым для стандартного JSON.
@@ -168,6 +174,7 @@ ru:
labels:
account:
attribution_domains: Веб-сайты, которым разрешено ссылаться на вас
discoverable: Разрешить находить меня через рекомендации
fields:
name: Свойство
value: Значение
@@ -215,6 +222,7 @@ ru:
email: Адрес электронной почты
expires_in: Срок действия
fields: Дополнительные поля
filter_action: Действие фильтра
header: Обложка профиля
honeypot: "%{label} (не заполнять)"
inbox_url: URL для входящих от ретрансляторов
@@ -231,8 +239,8 @@ ru:
setting_always_send_emails: Всегда отправлять уведомления по электронной почте
setting_auto_play_gif: Включить автовоспроизведение анимированных GIF-файлов
setting_boost_modal: Настроить видимость перед продвижением
setting_color_scheme: Цветовые тема
setting_contrast: Контрастность
setting_color_scheme: Вариант темы
setting_contrast: Контрастная тема
setting_default_language: Язык публикуемых постов
setting_default_privacy: Видимость поста
setting_default_quote_policy: Кто может цитировать вас
@@ -307,6 +315,7 @@ ru:
thumbnail: Обложка сервера
trendable_by_default: Отключить обязательную премодерацию трендов
trends: Включить тренды
wrapstodon: Включить Wrapstodon
interactions:
must_be_follower: Блокировать уведомления от людей, которые не подписаны на вас
must_be_following: Блокировать уведомления от людей, на которых вы не подписаны
+2
View File
@@ -730,6 +730,8 @@ tr:
new:
title: Yeni IP kuralı oluştur
no_ip_block_selected: Hiçbiri seçilmediğinden hiçbir IP kuralı değiştirilmedi
reset: Sıfırla
search: Ara
title: IP kuralları
relationships:
title: "%{acct} kişisinin ilişkileri"
+2 -2
View File
@@ -14,7 +14,7 @@ zh-CN:
other: 关注者
following:
other: 正在关注
instance_actor_flash: 该账号用来代表虚拟角色,并不代表个人用户,仅代表服务器本身。该账号用于联合目的,不应该被停用。
instance_actor_flash: 该账号代表服务器虚拟主体,专为联邦宇宙互联而生。请勿封禁。
last_active: 上次活跃时间
link_verified_on: 此链接的所有权已在 %{date} 验证
nothing_here: 空空如也!
@@ -2282,7 +2282,7 @@ zh-CN:
feature_action: 详细了解
feature_audience: Mastodon 为你提供了无需中间商即可管理受众的独特可能。Mastodon 可被部署在你自己的基础设施上,允许你关注其他任何 Mastodon 在线服务器的用户,或被任何其他在线 Mastodon 服务器的用户关注,并且不受你之外的任何人控制。
feature_audience_title: 自由吸引你的受众
feature_control: 你最清楚你想在你自己的主页中看到什么动态。没有算法或广告浪费你的时间。你可以用一个账号关注任何 Mastodon 服务器上的任何人,并按时间顺序获得他们发布的嘟文,让你的互联网的角落更合自己的心意。
feature_control: 主页想看什么,只有你说了算。告别浪费时间的算法与广告,只需一个账号,即可跨服关注 Mastodon 上的任何人。他们的动态按时间顺序严格呈现。让互联网的一隅,契合你的灵魂。
feature_control_title: 掌控自己的时间线
feature_creativity: Mastodon 支持音频、视频和图片、无障碍描述、投票、内容警告, 动画头像、自定义表情包、缩略图裁剪控制等功能,帮助你在网上尽情表达自己。无论你是要发布你的艺术作品、音乐还是播客,Mastodon 都能为你服务。
feature_creativity_title: 尽情发挥创造力
+4
View File
@@ -76,3 +76,7 @@
interval: 1 hour
class: Scheduler::CollectionItemCleanupScheduler
queue: scheduler
repair_remote_collections_scheduler:
every: ['24h', first_in: '1s']
class: Scheduler::RepairRemoteCollectionsScheduler
queue: scheduler
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@mastodon/mastodon",
"license": "AGPL-3.0-or-later",
"packageManager": "yarn@4.16.0",
"packageManager": "yarn@4.17.0",
"engines": {
"node": ">=22"
},
@@ -50,7 +50,7 @@
"@gamestdio/websocket": "^0.3.2",
"@github/webauthn-json": "^2.1.1",
"@optimize-lodash/rollup-plugin": "^6.0.0",
"@react-spring/web": "^9.7.5",
"@react-spring/web": "^10.1.1",
"@reduxjs/toolkit": "^2.0.1",
"@rolldown/plugin-babel": "^0.2.2",
"@unhead/react": "^3.1.0",
+26 -15
View File
@@ -65,22 +65,15 @@ RSpec.describe UserMailer do
.and match(Rails.configuration.x.local_domain)
end
it_behaves_like 'localized subject',
'devise.mailer.confirmation_instructions.subject',
instance: Rails.configuration.x.local_domain
it_behaves_like 'delivery to memorialized user'
end
context 'when the user needs to reconfirm' do
before { receiver.update!(email: 'new-email@example.com', locale: nil) }
describe '#reconfirmation_instructions' do
let(:mail) { described_class.confirmation_instructions(receiver, 'spec') }
it 'renders reconfirmation instructions' do
receiver.update!(email: 'new-email@example.com', locale: nil)
expect(mail.text_part.body)
.to match(I18n.t('devise.mailer.reconfirmation_instructions.title'))
.and match('spec')
.and match(Rails.configuration.x.local_domain)
it 'renders reconfirmation instructions' do
expect(mail.text_part.body)
.to match(I18n.t('devise.mailer.reconfirmation_instructions.title'))
.and match('spec')
.and match(Rails.configuration.x.local_domain)
end
end
it_behaves_like 'localized subject',
@@ -210,6 +203,15 @@ RSpec.describe UserMailer do
expect(mail.text_part.body)
.to match(I18n.t('user_mailer.appeal_approved.title'))
end
context 'when user is missing' do
let(:mail) { described_class.appeal_approved(nil, appeal) }
it 'handles missing value without sending' do
expect { mail.deliver }
.to_not send_email
end
end
end
describe '#appeal_rejected' do
@@ -222,6 +224,15 @@ RSpec.describe UserMailer do
expect(mail.text_part.body)
.to match(I18n.t('user_mailer.appeal_rejected.title'))
end
context 'when user is missing' do
let(:mail) { described_class.appeal_rejected(nil, appeal) }
it 'handles missing value without sending' do
expect { mail.deliver }
.to_not send_email
end
end
end
describe '#two_factor_enabled' do
+1
View File
@@ -4,6 +4,7 @@ require 'rails_helper'
RSpec.describe IpBlock do
it_behaves_like 'Expireable'
it_behaves_like 'InetContainer'
describe 'Validations' do
subject { Fabricate.build :ip_block }
+28
View File
@@ -0,0 +1,28 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe UserIp do
describe 'Scopes' do
describe '.by_latest_used' do
let!(:user) { Fabricate :user, sign_up_ip: '192.168.0.1', created_at: 15.days.ago }
let!(:other_user) { Fabricate :user, sign_up_ip: '10.0.10.0', created_at: 10.days.ago }
it 'returns records ordered by most recent usage' do
expect(described_class.by_latest_used)
.to eq([other_user.ips.last, user.ips.last])
end
end
describe '.contained_by' do
let!(:user) { Fabricate :user, sign_up_ip: '192.168.0.1' }
let!(:other_user) { Fabricate :user, sign_up_ip: '10.0.10.0' }
it 'returns records ordered by rank' do
expect(described_class.contained_by('192.168.0.0/24'))
.to include(user.ips.last)
.and not_include(other_user.ips.last)
end
end
end
end
@@ -693,6 +693,48 @@ RSpec.describe 'signature verification concern' do
end
end
context 'with a Ed25519 key' do
# Include the private key so the tests can be easily adjusted and reviewed
let(:actor_keypair) do
OpenSSL::PKey.read(<<~PEM_TEXT)
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIE4+t/Xnl3lEh/Uw72qW2IWlMQJOHaLuFUipMUHPfO2M
-----END PRIVATE KEY-----
PEM_TEXT
end
context 'with a known account' do
let!(:actor) { Fabricate(:account, domain: 'remote.domain', uri: 'https://remote.domain/users/bob', private_key: nil, public_key: '') }
before do
Fabricate(:keypair, account: actor, type: :ed25519, public_key: actor_keypair.public_to_pem, uri: 'https://remote.domain/users/bob#main-key')
end
context 'with a valid signature on a GET request' do
let(:signature_input) do
'sig1=("@method" "@target-uri");created=1703066400;keyid="https://remote.domain/users/bob#main-key"'
end
let(:signature_header) do
'sig1=:o5DKH6Bge3pkaSs4UHqa1lMmbzTyBKOrDkILRA7OQ4La2d1HgM2CbIhi30KwemP+Jd5tgSv8NL65/H+57QbwDQ==:'
end
it 'successfully verifies signature', :aggregate_failures do
get '/activitypub/success', headers: {
'Host' => 'www.example.com',
'Signature-Input' => signature_input,
'Signature' => signature_header,
}
expect(response).to have_http_status(200)
expect(response.parsed_body).to match(
signed_request: true,
signature_actor_id: actor.id.to_s
)
end
end
end
end
context 'with an inaccessible key' do
let(:signature_input) do
'sig1=("@method" "@target-uri");created=1703066400;keyid="https://remote.domain/users/alice#main-key"'
@@ -110,7 +110,7 @@ RSpec.describe ActivityPub::FetchRemoteKeyService do
stub_request(:get, public_key_id).to_return(body: key_json.merge({ '@context': ['https://www.w3.org/ns/activitystreams', 'https://w3id.org/security/v1'] }).to_json, headers: { 'Content-Type': 'application/activity+json' })
end
it 'returns the nil' do
it 'returns nil' do
expect(keypair).to be_nil
end
end
@@ -127,6 +127,13 @@ RSpec.describe ActivityPub::FetchRemoteKeyService do
publicKeyMultibase: 'z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK',
}
end
let(:ed25519_key_pem) do
<<~TEXT
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEALm/M42cB3HkUiODQsXRcweM6TByfzEHGO9ND274JcOY=
-----END PUBLIC KEY-----
TEXT
end
let(:rsa_key_id) { 'https://example.com/alice#rsa-key' }
let(:actor_rsa_key) { rsa_multikey }
@@ -218,10 +225,63 @@ RSpec.describe ActivityPub::FetchRemoteKeyService do
stub_request(:get, rsa_key_id).to_return(body: rsa_multikey.merge({ '@context': ['https://www.w3.org/ns/cid/v1'] }).to_json, headers: { 'Content-Type': 'application/activity+json' })
end
it 'returns the nil' do
it 'returns nil' do
expect(keypair).to be_nil
end
end
context 'with an Ed25519 key' do
let(:keypair) { subject.call(ed25519_key_id) }
context 'when the key is a sub-object from the actor' do
before do
stub_request(:get, ed25519_key_id).to_return(body: actor.to_json, headers: { 'Content-Type': 'application/activity+json' })
end
it 'returns the expected account' do
expect(keypair.account.uri).to eq 'https://example.com/alice'
expect(keypair)
.to have_attributes(
uri: ed25519_key_id,
type: 'ed25519',
public_key: ed25519_key_pem
)
end
end
context 'when the key is a separate document' do
let(:ed25519_key_id) { 'https://example.com/alice-public-key.json' }
let(:actor_ed25519_key) { ed25519_key_id }
before do
stub_request(:get, ed25519_key_id).to_return(body: ed25519_multikey.merge({ '@context': ['https://www.w3.org/ns/cid/v1'] }).to_json, headers: { 'Content-Type': 'application/activity+json' })
end
it 'returns the expected account' do
expect(keypair.account.uri).to eq 'https://example.com/alice'
expect(keypair)
.to have_attributes(
uri: ed25519_key_id,
type: 'ed25519',
public_key: ed25519_key_pem
)
end
end
context 'when the key and owner do not match' do
let(:ed25519_key_id) { 'https://example.com/fake-public-key.json' }
let(:actor_ed25519_key) { 'https://example.com/alice-public-key.json' }
before do
stub_request(:get, ed25519_key_id).to_return(body: ed25519_multikey.merge({ '@context': ['https://www.w3.org/ns/cid/v1'] }).to_json, headers: { 'Content-Type': 'application/activity+json' })
end
it 'returns nil' do
expect(keypair).to be_nil
end
end
end
end
end
end
@@ -0,0 +1,44 @@
# frozen_string_literal: true
RSpec.shared_examples 'InetContainer' do
describe 'Scopes' do
describe '.containing' do
let!(:contained) { Fabricate factory_name, ip: '192.168.0.0/24' }
let!(:uncontained) { Fabricate factory_name, ip: '10.0.0.0/16' }
it 'returns records containing the value' do
expect(described_class.containing('192.168.0.1'))
.to include(contained)
.and not_include(uncontained)
end
end
describe '.contained_by' do
let!(:contained) { Fabricate factory_name, ip: '192.168.0.1' }
let!(:uncontained) { Fabricate factory_name, ip: '10.0.10.0' }
it 'returns records contained by the value' do
expect(described_class.contained_by('192.168.0.0/24'))
.to include(contained)
.and not_include(uncontained)
end
end
describe '.overlapping_with' do
let!(:contained) { Fabricate factory_name, ip: '192.168.0.0/16' }
let!(:contained_also) { Fabricate factory_name, ip: '192.168.0.1' }
let!(:uncontained) { Fabricate factory_name, ip: '10.0.10.0' }
it 'returns records containing or contained by the value' do
expect(described_class.overlapping_with('192.168.0.0/24'))
.to include(contained)
.and include(contained_also)
.and not_include(uncontained)
end
end
end
def factory_name
described_class.name.underscore.to_sym
end
end
@@ -0,0 +1,56 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'auth/registrations/_status.html.haml' do
subject { render 'auth/registrations/status', user:, strikes: }
let(:user) { Fabricate.build :user }
let(:strikes) { [] }
context 'with an unconfirmed user' do
let(:user) { Fabricate.build :user, confirmed_at: nil }
it { is_expected.to include(I18n.t('auth.status.confirming')) }
end
context 'with an unapproved user' do
let(:user) { Fabricate.build :user, confirmed_at: 2.days.ago, approved: false }
it { is_expected.to include(I18n.t('auth.status.pending')) }
end
context 'with a moved user account' do
let(:user) { Fabricate.build :user, confirmed_at: 2.days.ago, approved: true, account: }
let(:account) { Fabricate :account, moved_to_account: }
let(:moved_to_account) { Fabricate :account, username: 'hello' }
it { is_expected.to include(I18n.t('auth.status.redirecting_to', acct: 'hello')) }
end
context 'with a suspended user account' do
let(:user) { Fabricate.build :user, account: Fabricate(:account, suspended_at: 2.days.ago) }
it { is_expected.to include(I18n.t('user_mailer.warning.explanation.suspend')) }
end
context 'with a disabled user' do
let(:user) { Fabricate.build :user, disabled: true }
it { is_expected.to include(I18n.t('user_mailer.warning.explanation.disable')) }
end
context 'with a silenced user account' do
let(:user) { Fabricate.build :user, account: Fabricate(:account, silenced_at: 2.days.ago) }
it { is_expected.to include(I18n.t('user_mailer.warning.explanation.silence')) }
end
context 'when strikes targeting user account exist' do
let(:user) { Fabricate.build :user }
before { Fabricate :account_warning, target_account: user.account }
it { is_expected.to include(I18n.t('auth.status.view_strikes')) }
end
end
@@ -0,0 +1,106 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Scheduler::RepairRemoteCollectionsScheduler do
include Redisable
let(:worker) { described_class.new }
describe 'perform' do
let(:owner) do
Fabricate(:remote_account, uri: 'https://example.com/accounts/123', collections_url: 'https://example.com/ap/users/123/featured_collections')
end
let(:other_account) do
Fabricate(:remote_account, collections_url: 'https://example.com/ap/users/234/featured_collections')
end
let(:collection) do
Fabricate(:remote_collection,
uri: 'https://example.com/ap/users/123/collections/1',
account: other_account,
created_at: 2.hours.ago)
end
let(:response) do
{
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => collection.uri,
'type' => 'FeaturedCollection',
'name' => collection.name,
'summary' => collection.description_html,
'attributedTo' => 'https://example.com/accounts/123',
'sensitive' => false,
'discoverable' => true,
'totalItems' => 0,
}
end
before do
stub_request(:get, collection.uri)
.to_return_json(
status: 200,
body: response,
headers: { 'Content-Type' => 'application/activity+json' }
)
end
after do
redis.del('remote_collection_repair:last_known_good')
end
context 'without flag in redis set' do
context 'when the proper account is known' do
before { owner }
it 'fixes the wrong attribution and sets the flag in redis' do
worker.perform
expect(collection.reload.account).to eq owner
expect(redis.get('remote_collection_repair:last_known_good')).to_not be_nil
end
end
context 'when the proper account is unknown' do
let(:stubbed_service) { instance_double(ActivityPub::FetchRemoteAccountService) }
before do
allow(stubbed_service).to receive(:call).with('https://example.com/accounts/123') { service_result }
allow(ActivityPub::FetchRemoteAccountService).to receive(:new).and_return(stubbed_service)
end
context 'when the service can fetch the account' do
let(:service_result) { owner }
it 'fixes the wrong attribution and sets the flag in redis' do
worker.perform
expect(collection.reload.account).to eq owner
expect(redis.get('remote_collection_repair:last_known_good')).to_not be_nil
end
end
context 'when the service cannot fetch the account' do
let(:service_result) { nil }
it 'does not fix the collection and does not set the flag in redis' do
worker.perform
expect(collection.reload.account).to eq other_account
expect(redis.get('remote_collection_repair:last_known_good')).to be_nil
end
end
end
end
context 'with flag in redis set' do
before do
redis.set('remote_collection_repair:last_known_good', collection.id + 1)
end
it 'does nothing with collections older than the last known good time' do
worker.perform
expect(collection.reload.account).to eq other_account
end
end
end
end
@@ -6,8 +6,37 @@ RSpec.describe VerifyAccountLinksWorker do
let(:worker) { described_class.new }
describe 'perform' do
it 'runs without error for missing record' do
expect { worker.perform(nil) }.to_not raise_error
subject { worker.perform(account_id) }
context 'with invalid account' do
let(:account_id) { 123_123_123 }
it 'runs without error for missing record' do
expect { subject }
.to_not raise_error
end
end
context 'with an account that has fields' do
let(:account) { Fabricate :account }
let(:account_id) { account.id }
let(:url) { ActivityPub::TagManager.instance.url_for(account) }
before do
stub_request(:get, 'https://linkedin.com/user')
.to_return(status: 200, body: <<~HTML)
<a rel="me" href="#{url}">me</a>
HTML
account.fields = [{ name: 'GitHub', value: 'https://github.com/user', verified_at: 2.days.ago }, { name: 'LinkedIn', value: 'https://linkedin.com/user' }]
account.save!
end
it 'verifies the fields and updates the account' do
expect { subject }
.to(change { account.reload.updated_at })
expect(account.fields)
.to include(have_attributes(name: 'LinkedIn', verified_at: be_present))
end
end
end
end
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@mastodon/streaming",
"license": "AGPL-3.0-or-later",
"packageManager": "yarn@4.16.0",
"packageManager": "yarn@4.17.0",
"engines": {
"node": ">=22"
},
+61 -85
View File
@@ -2905,7 +2905,7 @@ __metadata:
"@gamestdio/websocket": "npm:^0.3.2"
"@github/webauthn-json": "npm:^2.1.1"
"@optimize-lodash/rollup-plugin": "npm:^6.0.0"
"@react-spring/web": "npm:^9.7.5"
"@react-spring/web": "npm:^10.1.1"
"@reduxjs/toolkit": "npm:^2.0.1"
"@rolldown/plugin-babel": "npm:^0.2.2"
"@storybook/addon-a11y": "npm:^10.3.0"
@@ -3846,69 +3846,70 @@ __metadata:
languageName: node
linkType: hard
"@react-spring/animated@npm:~9.7.5":
version: 9.7.5
resolution: "@react-spring/animated@npm:9.7.5"
"@react-spring/animated@npm:~10.1.1":
version: 10.1.1
resolution: "@react-spring/animated@npm:10.1.1"
dependencies:
"@react-spring/shared": "npm:~9.7.5"
"@react-spring/types": "npm:~9.7.5"
"@react-spring/shared": "npm:~10.1.1"
"@react-spring/types": "npm:~10.1.1"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10c0/f8c2473c60f39a878c7dd0fdfcfcdbc720521e1506aa3f63c9de64780694a0a73d5ccc535a5ccec3520ddb70a71cf43b038b32c18e99531522da5388c510ecd7
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: 10c0/8cdad804109ab76e800949ecf7b01bc6378d5e60149f794b172f22e6c4d4ae67b3db345033c88be2bdb12c7485160812e10545b68aad4059c73092ff5cc6ddee
languageName: node
linkType: hard
"@react-spring/core@npm:~9.7.5":
version: 9.7.5
resolution: "@react-spring/core@npm:9.7.5"
"@react-spring/core@npm:~10.1.1":
version: 10.1.1
resolution: "@react-spring/core@npm:10.1.1"
dependencies:
"@react-spring/animated": "npm:~9.7.5"
"@react-spring/shared": "npm:~9.7.5"
"@react-spring/types": "npm:~9.7.5"
"@react-spring/animated": "npm:~10.1.1"
"@react-spring/shared": "npm:~10.1.1"
"@react-spring/types": "npm:~10.1.1"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10c0/5bfd83dfe248cd91889f215f015d908c7714ef445740fd5afa054b27ebc7d5a456abf6c309e2459d9b5b436e78d6fda16b62b9601f96352e9130552c02270830
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: 10c0/908b9ef1d2d3ac2172dac91151a278a7fa8ca84b049c13402fee9f5727309926711d455879ecbf5c3fd325692050d566a0945ffa63adbb3be9c9e7f58da75ade
languageName: node
linkType: hard
"@react-spring/rafz@npm:~9.7.5":
version: 9.7.5
resolution: "@react-spring/rafz@npm:9.7.5"
checksum: 10c0/8bdad180feaa9a0e870a513043a5e98a4e9b7292a9f887575b7e6fadab2677825bc894b7ff16c38511b35bfe6cc1072df5851c5fee64448d67551559578ca759
"@react-spring/rafz@npm:~10.1.1":
version: 10.1.1
resolution: "@react-spring/rafz@npm:10.1.1"
checksum: 10c0/517c6e923a4e54943719865806ea831383ebb47c2c452290a7082ce868cf23042a766bf54bc753437c5e6826aedd19628ceaade5016ebb72ef2f890005cf1793
languageName: node
linkType: hard
"@react-spring/shared@npm:~9.7.5":
version: 9.7.5
resolution: "@react-spring/shared@npm:9.7.5"
"@react-spring/shared@npm:~10.1.1":
version: 10.1.1
resolution: "@react-spring/shared@npm:10.1.1"
dependencies:
"@react-spring/rafz": "npm:~9.7.5"
"@react-spring/types": "npm:~9.7.5"
"@react-spring/rafz": "npm:~10.1.1"
"@react-spring/types": "npm:~10.1.1"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10c0/0207eacccdedd918a2fc55e78356ce937f445ce27ad9abd5d3accba8f9701a39349b55115641dc2b39bb9d3a155b058c185b411d292dc8cc5686bfa56f73b94f
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: 10c0/1021cf0618a9cf4691bae914f03e1a387ce834d4265438a87c9c1adf4180348b07d22d06aedd4deaaddd12921f48a17dff717f9f0d495119e442631fd17420f7
languageName: node
linkType: hard
"@react-spring/types@npm:~9.7.5":
version: 9.7.5
resolution: "@react-spring/types@npm:9.7.5"
checksum: 10c0/85c05121853cacb64f7cf63a4855e9044635e1231f70371cd7b8c78bc10be6f4dd7c68f592f92a2607e8bb68051540989b4677a2ccb525dba937f5cd95dc8bc1
"@react-spring/types@npm:~10.1.1":
version: 10.1.1
resolution: "@react-spring/types@npm:10.1.1"
checksum: 10c0/dd490cbcb7b5ef6c74e97691c1f0c9881bcd6672c39a6622ccb85402298c78d13a478874dbc268346672bee1b697578fb35c45bef863a2419536217afa4565bf
languageName: node
linkType: hard
"@react-spring/web@npm:^9.7.5":
version: 9.7.5
resolution: "@react-spring/web@npm:9.7.5"
"@react-spring/web@npm:^10.1.1":
version: 10.1.1
resolution: "@react-spring/web@npm:10.1.1"
dependencies:
"@react-spring/animated": "npm:~9.7.5"
"@react-spring/core": "npm:~9.7.5"
"@react-spring/shared": "npm:~9.7.5"
"@react-spring/types": "npm:~9.7.5"
"@react-spring/animated": "npm:~10.1.1"
"@react-spring/core": "npm:~10.1.1"
"@react-spring/shared": "npm:~10.1.1"
"@react-spring/types": "npm:~10.1.1"
csstype: "npm:^3.2.3"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10c0/bcd1e052e1b16341a12a19bf4515f153ca09d1fa86ff7752a5d02d7c4db58e8baf80e6283e64411f1e388c65340dce2254b013083426806b5dbae38bd151e53e
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: 10c0/86bd8f47f88ade34bb9790b30d80256da25dd58370582d7c5f44472db00b62ad267796e43c661d89fc4c8c4cc8775a8cae21e36e85b973972cd381c0cf5a6320
languageName: node
linkType: hard
@@ -6780,7 +6781,7 @@ __metadata:
languageName: node
linkType: hard
"csstype@npm:^3.0.2, csstype@npm:^3.2.2":
"csstype@npm:^3.0.2, csstype@npm:^3.2.2, csstype@npm:^3.2.3":
version: 3.2.3
resolution: "csstype@npm:3.2.3"
checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce
@@ -11180,10 +11181,10 @@ __metadata:
languageName: node
linkType: hard
"pg-connection-string@npm:^2.13.0, pg-connection-string@npm:^2.6.0":
version: 2.13.0
resolution: "pg-connection-string@npm:2.13.0"
checksum: 10c0/870f83a8fca06d0340fc522653471d9c7081efbadf25c7f5801fcfb58104ef527138bb5d0546b21498ff4df75a742469622f657911a3b74034a1e94e59f34e31
"pg-connection-string@npm:^2.14.0, pg-connection-string@npm:^2.6.0":
version: 2.14.0
resolution: "pg-connection-string@npm:2.14.0"
checksum: 10c0/c26d85970f782de72b90aa45b4acfa34df90242fc08bc676e8827297164044dbfb40a2cf20b0646bd02662a6b14c5ed27f322db627e41e582f2b705bc41e8b47
languageName: node
linkType: hard
@@ -11203,10 +11204,10 @@ __metadata:
languageName: node
linkType: hard
"pg-protocol@npm:*, pg-protocol@npm:^1.14.0":
version: 1.14.0
resolution: "pg-protocol@npm:1.14.0"
checksum: 10c0/dccb29b30f5cee8f2ca7dfd17da9eb957174f7a1a25e987e0bfc9fe7640f53dc9fd05c7f3635e7db0c5eefcd41716fffe625f3c1ea9789634d438851b9ce90ae
"pg-protocol@npm:*, pg-protocol@npm:^1.15.0":
version: 1.15.0
resolution: "pg-protocol@npm:1.15.0"
checksum: 10c0/f1acad1e693d23ce70f8a5fec108cb960d6b8546b3a3fb2cf9113211069ef0f8890e2cc26b5f94e11bf81ff6d851b11c0643de12327cd07e0d1127ae1cb80791
languageName: node
linkType: hard
@@ -11224,13 +11225,13 @@ __metadata:
linkType: hard
"pg@npm:^8.5.0":
version: 8.21.0
resolution: "pg@npm:8.21.0"
version: 8.22.0
resolution: "pg@npm:8.22.0"
dependencies:
pg-cloudflare: "npm:^1.4.0"
pg-connection-string: "npm:^2.13.0"
pg-connection-string: "npm:^2.14.0"
pg-pool: "npm:^3.14.0"
pg-protocol: "npm:^1.14.0"
pg-protocol: "npm:^1.15.0"
pg-types: "npm:2.2.0"
pgpass: "npm:1.0.5"
peerDependencies:
@@ -11241,7 +11242,7 @@ __metadata:
peerDependenciesMeta:
pg-native:
optional: true
checksum: 10c0/6b46ae867a3838bf3bb720ef5a3d877bd85de19d90c6f3422e772f56443fc04a4f5b1fa44c9e8544a0f44454971e653d98f4040096e92c378a5aa5a7b07fa0f1
checksum: 10c0/f26fe81c8146b802ac58b2a67570ab4f64cbd57d0752d0a6d1b2b1d12168adb241948e6129301b771a359bede6767181c5ac1a584a36bcfcd38ffe955237ee26
languageName: node
linkType: hard
@@ -12115,18 +12116,7 @@ __metadata:
languageName: node
linkType: hard
"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0":
version: 19.1.0
resolution: "react-dom@npm:19.1.0"
dependencies:
scheduler: "npm:^0.26.0"
peerDependencies:
react: ^19.1.0
checksum: 10c0/3e26e89bb6c67c9a6aa86cb888c7a7f8258f2e347a6d2a15299c17eb16e04c19194e3452bc3255bd34000a61e45e2cb51e46292392340432f133e5a5d2dfb5fc
languageName: node
linkType: hard
"react-dom@npm:^19.2.0":
"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0, react-dom@npm:^19.2.0":
version: 19.2.7
resolution: "react-dom@npm:19.2.7"
dependencies:
@@ -12355,14 +12345,7 @@ __metadata:
languageName: node
linkType: hard
"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0":
version: 19.1.0
resolution: "react@npm:19.1.0"
checksum: 10c0/530fb9a62237d54137a13d2cfb67a7db6a2156faed43eecc423f4713d9b20c6f2728b026b45e28fcd72e8eadb9e9ed4b089e99f5e295d2f0ad3134251bdd3698
languageName: node
linkType: hard
"react@npm:^19.2.0":
"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0, react@npm:^19.2.0":
version: 19.2.7
resolution: "react@npm:19.2.7"
checksum: 10c0/0bd0e2f1bbd4ba97561c6597bf8a5fec05e6476fe61e165c1065598d16668efc6715205599c94d3ddd49d36cb0f21cbf1b9bcc18ee840b805ce222c3e8d558ac
@@ -12933,13 +12916,6 @@ __metadata:
languageName: node
linkType: hard
"scheduler@npm:^0.26.0":
version: 0.26.0
resolution: "scheduler@npm:0.26.0"
checksum: 10c0/5b8d5bfddaae3513410eda54f2268e98a376a429931921a81b5c3a2873aab7ca4d775a8caac5498f8cbc7d0daeab947cf923dbd8e215d61671f9f4e392d34356
languageName: node
linkType: hard
"scheduler@npm:^0.27.0":
version: 0.27.0
resolution: "scheduler@npm:0.27.0"
@@ -14668,11 +14644,11 @@ __metadata:
linkType: hard
"uuid@npm:^14.0.0":
version: 14.0.0
resolution: "uuid@npm:14.0.0"
version: 14.0.1
resolution: "uuid@npm:14.0.1"
bin:
uuid: dist-node/bin/uuid
checksum: 10c0/a57ae7794c45005c1a9208989196c5baf79a7679c30f43c1bee9033a2c4d113a2cea216fa6fcc9663b08b0d55635df1a7c6eb7e7f3d21c3e50688c698fa39a50
checksum: 10c0/2d961289097cb68c37d93d1da0b5c3aafc1eb9948a455cca8d0ae53a099b2fe583b8933254a84097f700e6bac2e23033364904df0467c22551d5d9611febcaf6
languageName: node
linkType: hard