Merge commit 'c5b3651e1f992baf87f478205c8f21fab662247e' into glitch-soc/merge-4.7
This commit is contained in:
commit
ca37348b7e
50 files changed
+2041
-2849
No files matched your search
@@ -13,6 +13,7 @@ runs:
|
||||
- name: Install system dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
sudo sed -i s:azure\.archive\.ubuntu\.com:archive.ubuntu.com:g /etc/apt/apt-mirrors.txt
|
||||
sudo apt-get update
|
||||
sudo apt-get install --no-install-recommends -y \
|
||||
libicu-dev \
|
||||
|
||||
+13
-1
@@ -8,7 +8,8 @@
|
||||
':enableVulnerabilityAlertsWithLabel(security)',
|
||||
],
|
||||
rebaseWhen: 'conflicted',
|
||||
minimumReleaseAge: '3', // Wait 3 days after the package has been published before upgrading it
|
||||
minimumReleaseAge: '3 days', // Wait 3 days after the package has been published before upgrading it
|
||||
prCreation: 'not-pending',
|
||||
// packageRules order is important, they are applied from top to bottom and are merged,
|
||||
// meaning the most important ones must be at the bottom, for example grouping rules
|
||||
// If we do not want a package to be grouped with others, we need to set its groupName
|
||||
@@ -24,7 +25,18 @@
|
||||
},
|
||||
// The types are now included in recent versions,we ignore them here until we upgrade and remove the dependency
|
||||
ignoreDeps: ['@types/emoji-mart'],
|
||||
lockFileMaintenance: {
|
||||
enabled: true,
|
||||
schedule: ['before 8am on monday'],
|
||||
},
|
||||
packageRules: [
|
||||
{
|
||||
// Disable lock file maintenance for bundler for now, as we do not yet pin gems to their exact versions
|
||||
matchManagers: ['bundler'],
|
||||
lockFileMaintenance: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
// Require Dependency Dashboard Approval for major version bumps of these node packages
|
||||
matchManagers: ['npm'],
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
|
||||
- name: Archive asset artifacts
|
||||
run: |
|
||||
tar --exclude={"*.br","*.gz"} -zcf artifacts.tar.gz public/assets public/packs* tmp/cache/vite/last-build*.json
|
||||
tar --exclude={"*.br","*.gz"} -zcf artifacts.tar.gz public/assets public/packs*
|
||||
|
||||
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
|
||||
if: matrix.mode == 'test'
|
||||
|
||||
+5
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [4.7.0] - UNRELEASED
|
||||
## [4.7.0] - 2026-08-20
|
||||
|
||||
### Added
|
||||
|
||||
@@ -39,6 +39,10 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix autosuggestions overstaying their welcome in languages that don't use spaces (#40217 by @Gargron)
|
||||
- Fix error when processing remote actors with `null` public keys (#40194 by @ClearlyClaire)
|
||||
- Fix various off-by-one errors in statistics time ranges (#40193 by @ClearlyClaire)
|
||||
- Fix `/deck` being removed from path when resizing window (#40180 by @ClearlyClaire)
|
||||
- Fix error in `tootctl media refresh` when cleaning some incompletely processed files (#40056 by @shleeable)
|
||||
- Fix plain-text formatter not treating `<BR>` as newline (#40079 by @shleeable)
|
||||
- Fix performance of listing follow requests by adding appropriate index (#40033 by @ClearlyClaire)
|
||||
|
||||
+8
-8
@@ -135,7 +135,7 @@ GEM
|
||||
blurhash (0.1.8)
|
||||
bootsnap (1.25.0)
|
||||
msgpack (~> 1.5)
|
||||
brakeman (8.0.5)
|
||||
brakeman (8.0.6)
|
||||
racc
|
||||
browser (6.2.0)
|
||||
builder (3.3.0)
|
||||
@@ -592,7 +592,7 @@ GEM
|
||||
pastel (0.8.0)
|
||||
tty-color (~> 0.5)
|
||||
pg (1.6.3)
|
||||
pghero (4.0.0)
|
||||
pghero (4.0.1)
|
||||
activerecord (>= 7.2)
|
||||
playwright-ruby-client (1.62.0)
|
||||
base64
|
||||
@@ -623,7 +623,7 @@ GEM
|
||||
activesupport (>= 3.0.0)
|
||||
raabro (1.5.0)
|
||||
racc (1.8.1)
|
||||
rack (3.2.6)
|
||||
rack (3.2.7)
|
||||
rack-attack (6.8.0)
|
||||
rack (>= 1.0, < 4)
|
||||
rack-cors (3.0.0)
|
||||
@@ -774,15 +774,15 @@ GEM
|
||||
rubocop-i18n (3.3.0)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (>= 1.72.1)
|
||||
rubocop-performance (1.26.1)
|
||||
rubocop-performance (1.27.0)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (>= 1.75.0, < 2.0)
|
||||
rubocop (>= 1.89.0, < 2.0)
|
||||
rubocop-ast (>= 1.47.1, < 2.0)
|
||||
rubocop-rails (2.36.0)
|
||||
rubocop-rails (2.37.0)
|
||||
activesupport (>= 4.2.0)
|
||||
lint_roller (~> 1.1)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 1.75.0, < 2.0)
|
||||
rubocop (>= 1.89.0, < 2.0)
|
||||
rubocop-ast (>= 1.44.0, < 2.0)
|
||||
rubocop-rspec (3.10.2)
|
||||
lint_roller (~> 1.1)
|
||||
@@ -838,7 +838,7 @@ GEM
|
||||
simple_form (5.4.1)
|
||||
actionpack (>= 7.0)
|
||||
activemodel (>= 7.0)
|
||||
simplecov (1.1.0)
|
||||
simplecov (1.1.1)
|
||||
simplecov-lcov (0.9.0)
|
||||
ssrf_filter (1.5.0)
|
||||
stackprof (0.2.28)
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@ A "vulnerability in Mastodon" is a vulnerability in the code distributed through
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ---------------- |
|
||||
| 4.7.0 | Yes |
|
||||
| 4.6.0 | Yes |
|
||||
| 4.5.x | Yes |
|
||||
| 4.5.x | Until 2027-02-20 |
|
||||
| 4.4.x | Until 2026-12-17 |
|
||||
| < 4.4 | No |
|
||||
@@ -12,7 +12,7 @@ module Admin
|
||||
@pending_tags_count = pending_tags.async_count
|
||||
@pending_users_count = User.pending.async_count
|
||||
@system_checks = Admin::SystemCheck.perform(current_user)
|
||||
@time_period = (29.days.ago.to_date...Time.now.utc.to_date)
|
||||
@time_period = (29.days.ago.to_date..Time.now.utc.to_date)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -13,7 +13,7 @@ class Admin::Instances::ModerationNotesController < Admin::BaseController
|
||||
redirect_to admin_instance_path(@instance.domain, anchor: helpers.dom_id(@instance_moderation_note)), notice: I18n.t('admin.instances.moderation_notes.created_msg')
|
||||
else
|
||||
@instance_moderation_notes = @instance.moderation_notes.includes(:account).chronological
|
||||
@time_period = (6.days.ago.to_date...Time.now.utc.to_date)
|
||||
@time_period = (6.days.ago.to_date..Time.now.utc.to_date)
|
||||
@action_logs = Admin::ActionLogFilter.new(target_domain: @instance.domain).results.limit(5)
|
||||
|
||||
render 'admin/instances/show'
|
||||
|
||||
@@ -17,7 +17,7 @@ module Admin
|
||||
|
||||
@instance_moderation_note = @instance.moderation_notes.new
|
||||
@instance_moderation_notes = @instance.moderation_notes.includes(:account).chronological
|
||||
@time_period = (6.days.ago.to_date...Time.now.utc.to_date)
|
||||
@time_period = (6.days.ago.to_date..Time.now.utc.to_date)
|
||||
@action_logs = Admin::ActionLogFilter.new(target_domain: @instance.domain).results.limit(LOGS_LIMIT)
|
||||
end
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ module Admin
|
||||
end
|
||||
|
||||
def report_range
|
||||
(PERIOD_DAYS.ago.to_date...Time.now.utc.to_date)
|
||||
(PERIOD_DAYS.ago.to_date..Time.now.utc.to_date)
|
||||
end
|
||||
|
||||
def tag_params
|
||||
|
||||
@@ -6,6 +6,14 @@ describe('textAtCursorMatchesToken', () => {
|
||||
['#hashtag', 7, ['#']],
|
||||
[1, '#hashtag'],
|
||||
],
|
||||
[
|
||||
['@alice', 6, ['@']],
|
||||
[1, '@alice'],
|
||||
],
|
||||
[
|
||||
['@alice', 6, ['@']],
|
||||
[1, '@alice'],
|
||||
],
|
||||
[
|
||||
['#hash tag', 8, ['#']],
|
||||
[1, '#hash tag'],
|
||||
@@ -24,7 +32,35 @@ describe('textAtCursorMatchesToken', () => {
|
||||
],
|
||||
[
|
||||
['#ハッシュ タグ', 7, ['#']],
|
||||
[1, '#ハッシュ タグ'],
|
||||
[null, null],
|
||||
],
|
||||
[
|
||||
['@alice reply', 12, ['@']],
|
||||
[1, '@alice reply'],
|
||||
],
|
||||
[
|
||||
['@alice 这是我输入的回复内容', 17, ['@']],
|
||||
[null, null],
|
||||
],
|
||||
[
|
||||
['@alice これは本文', 12, ['@']],
|
||||
[null, null],
|
||||
],
|
||||
[
|
||||
['@alice 이것은답변입니다', 15, ['@']],
|
||||
[null, null],
|
||||
],
|
||||
[
|
||||
['@alice これは本文', 12, ['@']],
|
||||
[null, null],
|
||||
],
|
||||
[
|
||||
['@алиса', 6, ['@']],
|
||||
[1, '@алиса'],
|
||||
],
|
||||
[
|
||||
['@алиса пример', 13, ['@']],
|
||||
[1, '@алиса пример'],
|
||||
],
|
||||
] as const)(
|
||||
'textAtCursorMatchesToken(%s) is %o',
|
||||
|
||||
@@ -8,7 +8,7 @@ export const textAtCursorMatchesToken = (
|
||||
let word: string;
|
||||
|
||||
const regex = new RegExp(
|
||||
`[${searchTokens.join('')}${WORD}+-]+(\\s[${WORD}]+)?$`,
|
||||
`[${searchTokens.join('')}${WORD}+-]+(\\s[\\p{Script=Latin}\\p{Script=Cyrillic}\\p{M}]+)?$`,
|
||||
'iu',
|
||||
);
|
||||
const left = str.slice(0, caretPosition).search(regex);
|
||||
|
||||
@@ -11,9 +11,10 @@ import type {
|
||||
} from 'history';
|
||||
import { createBrowserHistory } from 'history';
|
||||
|
||||
import { layoutFromWindow } from 'mastodon/is_mobile';
|
||||
import { isDevelopment } from 'mastodon/utils/environment';
|
||||
|
||||
import { forceSingleColumn, hasMultiColumnPath } from '../initial_state';
|
||||
|
||||
import type { FocusTarget } from './navigation_focus_target';
|
||||
|
||||
interface MastodonLocationState {
|
||||
@@ -63,7 +64,8 @@ function normalizePath(
|
||||
}
|
||||
|
||||
if (
|
||||
layoutFromWindow() === 'multi-column' &&
|
||||
!forceSingleColumn &&
|
||||
hasMultiColumnPath &&
|
||||
location.pathname &&
|
||||
!location.pathname.startsWith('/deck')
|
||||
) {
|
||||
|
||||
@@ -21,7 +21,7 @@ import { Hotkeys } from 'mastodon/components/hotkeys';
|
||||
import { HoverCardController } from 'mastodon/components/hover_card_controller';
|
||||
import { PictureInPicture } from 'mastodon/features/picture_in_picture';
|
||||
import { identityContextPropShape, withIdentity } from 'mastodon/identity_context';
|
||||
import { layoutFromWindow } from 'mastodon/is_mobile';
|
||||
import { layoutFromWindow, transientSingleColumn } from 'mastodon/is_mobile';
|
||||
import { WithRouterPropTypes } from 'mastodon/utils/react_router';
|
||||
import { checkAnnualReport } from '@/mastodon/reducers/slices/annual_report';
|
||||
|
||||
@@ -29,7 +29,7 @@ import { uploadCompose, resetCompose, changeComposeSpoilerness } from '../../act
|
||||
import { clearHeight } from '../../actions/height_cache';
|
||||
import { fetchServer, fetchServerTranslationLanguages } from '../../actions/server';
|
||||
import { expandHomeTimeline } from '../../actions/timelines';
|
||||
import { initialState, me, owner, singleUserMode, trendsEnabled, landingPage, localLiveFeedAccess, disableHoverCards, domain } from '../../initial_state';
|
||||
import { initialState, forceSingleColumn, me, owner, singleUserMode, trendsEnabled, landingPage, localLiveFeedAccess, disableHoverCards, domain } from '../../initial_state';
|
||||
|
||||
import BundleColumnError from './components/bundle_column_error';
|
||||
import { NavigationBar } from './components/navigation_bar';
|
||||
@@ -190,8 +190,8 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
<WrappedSwitch>
|
||||
<Redirect from='/' to={{pathname: rootRedirect, state: {...this.props.location.state, focusTarget: false}}} exact />
|
||||
|
||||
{singleColumn ? <Redirect from='/deck' to='/home' exact /> : null}
|
||||
{singleColumn && pathName.startsWith('/deck/') ? <Redirect from={pathName} to={{...this.props.location, pathname: pathName.slice(5)}} /> : null}
|
||||
{forceSingleColumn || transientSingleColumn ? <Redirect from='/deck' to='/home' exact /> : null}
|
||||
{(forceSingleColumn || transientSingleColumn) && pathName.startsWith('/deck/') ? <Redirect from={pathName} to={{...this.props.location, pathname: pathName.slice(5)}} /> : null}
|
||||
{/* Redirect old bookmarks (without /deck) with home-like routes to the advanced interface */}
|
||||
{!singleColumn && pathName === '/home' ? <Redirect from='/home' to='/deck/getting-started' exact /> : null}
|
||||
{pathName === '/getting-started' ? <Redirect from='/getting-started' to={singleColumn ? '/home' : '/deck/getting-started'} exact /> : null}
|
||||
|
||||
@@ -8,12 +8,13 @@ import StackTrace from 'stacktrace-js';
|
||||
import Bundle from '../components/bundle';
|
||||
import BundleColumnError from '../components/bundle_column_error';
|
||||
import { ColumnLoading } from '../components/column_loading';
|
||||
import { forceSingleColumn, hasMultiColumnPath } from '@/mastodon/initial_state';
|
||||
|
||||
// Small wrapper to pass multiColumn to the route components
|
||||
export const WrappedSwitch = ({ multiColumn, children }) => {
|
||||
const location = useLocation();
|
||||
|
||||
const decklessLocation = multiColumn && location.pathname.startsWith('/deck')
|
||||
const decklessLocation = !forceSingleColumn && hasMultiColumnPath && location.pathname.startsWith('/deck')
|
||||
? {...location, pathname: location.pathname.slice(5)}
|
||||
: location;
|
||||
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Асноўныя звесткі",
|
||||
"collections.create.steps": "Крок {step}/{total}",
|
||||
"collections.create_collection": "Стварыць калекцыю",
|
||||
"collections.create_new_collection": "Стварыць новую калекцыю",
|
||||
"collections.delete_collection": "Выдаліць калекцыю",
|
||||
"collections.description_length_hint": "Максімум 100 сімвалаў",
|
||||
"collections.detail.author_added_you_on_date": "{author} дадаў(-ла) Вас {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Βασικά στοιχεία",
|
||||
"collections.create.steps": "Βήμα {step}/{total}",
|
||||
"collections.create_collection": "Δημιουργία συλλογής",
|
||||
"collections.create_new_collection": "Δημιουργία νέας συλλογής",
|
||||
"collections.delete_collection": "Διαγραφή συλλογής",
|
||||
"collections.description_length_hint": "Όριο 100 χαρακτήρων",
|
||||
"collections.detail.author_added_you_on_date": "Ο χρήστης {author} σας πρόσθεσε στις {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Datos básicos",
|
||||
"collections.create.steps": "Paso {step}/{total}",
|
||||
"collections.create_collection": "Crear colección",
|
||||
"collections.create_new_collection": "Crear nueva colección",
|
||||
"collections.delete_collection": "Eliminar colección",
|
||||
"collections.description_length_hint": "Limitado a 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} te agregó el {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Põhiandmed",
|
||||
"collections.create.steps": "Samm {step}/{total}",
|
||||
"collections.create_collection": "Koosta kogumik",
|
||||
"collections.create_new_collection": "Koosta uus kogumik",
|
||||
"collections.delete_collection": "Kustuta kogumik",
|
||||
"collections.description_length_hint": "Kuni 100 tähemärki",
|
||||
"collections.detail.author_added_you_on_date": "{author} lisas sind {date}",
|
||||
@@ -675,7 +676,7 @@
|
||||
"error.no_hashtag_feed_access": "Selle teemaviite jälgimiseks liitu teenusega või logi sisse oma kasutajakontoga.",
|
||||
"error.unexpected_crash.explanation": "Meie poolse probleemi või veebilehitseja ühilduvusprobleemi tõttu ei suutnud me seda lehekülge korrektselt näidata.",
|
||||
"error.unexpected_crash.explanation_addons": "Seda lehte ei suudetud õigesti kuvada. Selle vea põhjustas arvatavasti mõni lehitseja lisand või automaattõlke tööriist.",
|
||||
"error.unexpected_crash.next_steps": "Proovi lehekülge uuesti avada. Kui see ei aita, võib proovida kasutada Mastodoni mõne muu veebilehitseja või äpi kaudu.",
|
||||
"error.unexpected_crash.next_steps": "Proovi lehekülge uuesti avada. Kui see ei aita, võib proovida kasutada Mastodoni mõne muu veebilehitseja või rakenduse kaudu.",
|
||||
"error.unexpected_crash.next_steps_addons": "Proovi need välja lülitada ja leht uuesti laadida. Kui sellest pole abi, võib siiski võimalik olla Mastodoni kasutada mõne teise lehitseja või rakendusega.",
|
||||
"errors.unexpected_crash.copy_stacktrace": "Kopeeri stacktrace lõikelauale",
|
||||
"errors.unexpected_crash.report_issue": "Teavita veast",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"account.follows.empty": "Chan eil an cleachdaiche seo a’ leantainn neach sam bith fhathast.",
|
||||
"account.follows_you": "’Gad leantainn",
|
||||
"account.go_to_profile": "Tadhail air a’ phròifil",
|
||||
"account.hame.invalid_handle": "Chan eil an t-aithnichear ri fhaighinn",
|
||||
"account.hide_reblogs": "Falaich na brosnachaidhean o @{name}",
|
||||
"account.in_memoriam": "Mar chuimhneachan.",
|
||||
"account.join_modal.day": "Latha",
|
||||
@@ -98,6 +99,7 @@
|
||||
"account.menu.mute": "Mùch an cunntas",
|
||||
"account.menu.note.description": "Chan fhaic ach thu fhèin seo",
|
||||
"account.menu.open_original_page": "Seall air {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Seall air an fhrithealaiche tùsail",
|
||||
"account.menu.remove_follower": "Thoir an neach-leantainn air falbh",
|
||||
"account.menu.report": "Dèan gearan mun chunntas",
|
||||
"account.menu.share": "Co-roinn…",
|
||||
@@ -116,6 +118,8 @@
|
||||
"account.name.help.domain_self": "Is {domain} am frithealaiche agad-sa a tha ag òstadh pròifil ’s postaichean agad-sa.",
|
||||
"account.name.help.footer": "Air an aon dòigh ’s a chuireas tu puist-d gu daoine le solaraichean puist-d eadar-dhealaichte, ’s urrainn dhut conaltradh le daoine air frithealaichean Mastodon eile ’s air aplacaidean eile a’ cho-shaoghail.",
|
||||
"account.name.help.header": "Tha aithnichear coltach ri seòladh puist-d",
|
||||
"account.name.help.invalid_explanation": "Faodaidh seo tachairt nuair a dh’atharraicheas cuideigin ainm-cleachdaiche ’s cha mhair e sann fharsaingeachd. Ma mhaireas e, dh’fhaoidte gu cheil frithealaiche ann nach eil ri fhaighinn no droch-rèiteachadh ud thall.",
|
||||
"account.name.help.invalid_header": "Tha aithnichear a’ chleachdaiche seo ’ga ùrachadh.",
|
||||
"account.name.help.username": "Is {username} ainm-cleachdaiche a’ chunntais seo air an fhrithealaiche aca-san. Dh’fhaoidte gu bheil an t-aon ainm-cleachdaiche le cuideigin air frithealaiche eile.",
|
||||
"account.name.help.username_self": "Is {username} d’ ainm-cleachdaiche air an fhrithealaiche seo. Dh’fhaoidte gu bheil an t-aon ainm-cleachdaiche le cuideigin air frithealaiche eile.",
|
||||
"account.name_info": "Dè ’s ciall dha seo?",
|
||||
@@ -267,6 +271,7 @@
|
||||
"admin.impact_report.instance_followers": "An luchd-leantainn a chailleadh na cleachdaichean againn",
|
||||
"admin.impact_report.instance_follows": "An luchd-leantainn a chailleadh na cleachdaichean aca-san",
|
||||
"admin.impact_report.title": "Geàrr-chunntas na buaidhe",
|
||||
"alert.need_reload.message": "Chaidh Mastodon ùrachadh. Dh’fhaoidte nach obraich a h-uile càil mar bu chòir gus an ath-luchdaich thu an duilleag.",
|
||||
"alert.rate_limited.message": "Feuch ris a-rithist às dèidh {retry_time, time, medium}.",
|
||||
"alert.rate_limited.title": "Cuingeachadh ùine",
|
||||
"alert.unexpected.message": "Thachair mearachd ris nach robh dùil.",
|
||||
@@ -390,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Bun-fhiosrachadh",
|
||||
"collections.create.steps": "Ceum {step}/{total}",
|
||||
"collections.create_collection": "Cruthaich cruinneachadh",
|
||||
"collections.create_new_collection": "Cruthaich cruinneachadh ùr",
|
||||
"collections.delete_collection": "Sguab an cruinneachadh às",
|
||||
"collections.description_length_hint": "Crìoch de 100 caractar",
|
||||
"collections.detail.author_added_you_on_date": "Chuir {author} ris thu {date}",
|
||||
@@ -485,7 +491,7 @@
|
||||
"community.column_settings.local_only": "Feadhainn ionadail a-mhàin",
|
||||
"community.column_settings.media_only": "Meadhanan a-mhàin",
|
||||
"community.column_settings.remote_only": "Feadhainn chèin a-mhàin",
|
||||
"compose.error.blank_post": "Chan urrrainn dho phost a bhith bàn.",
|
||||
"compose.error.blank_post": "Chan urrainn dho phost a bhith bàn.",
|
||||
"compose.language.change": "Atharraich an cànan",
|
||||
"compose.language.search": "Lorg cànan…",
|
||||
"compose.published.body": "Chaidh am post fhoillseachadh.",
|
||||
@@ -1230,6 +1236,7 @@
|
||||
"status.block": "Bac @{name}",
|
||||
"status.bookmark": "Cuir ris na comharran-lìn",
|
||||
"status.cancel_reblog_private": "Na brosnaich tuilleadh",
|
||||
"status.cannot_edit": "Chan fhaod thu am post seo a dheasachadh",
|
||||
"status.cannot_quote": "Chan fhaod thu am post seo a luaidh",
|
||||
"status.cannot_reblog": "Cha ghabh am post seo brosnachadh",
|
||||
"status.contains_quote": "Tha luaidh na bhroinn",
|
||||
@@ -1263,8 +1270,10 @@
|
||||
"status.more": "Barrachd",
|
||||
"status.mute": "Mùch @{name}",
|
||||
"status.mute_conversation": "Mùch an còmhradh",
|
||||
"status.not_quoted": "Cha deach do luaidh sa phost seo",
|
||||
"status.open": "Leudaich am post seo",
|
||||
"status.pin": "Prìnich ris a’ phròifil",
|
||||
"status.public_only": "Tha am post seo prìobhaideach",
|
||||
"status.quote": "Luaidh",
|
||||
"status.quote.cancel": "Sguir dhen luaidh",
|
||||
"status.quote_error.blocked_account_hint.title": "Tha am post seo falaichte on a bhac thu @{name}.",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Alapvető részletek",
|
||||
"collections.create.steps": "{step}. lépés/{total}",
|
||||
"collections.create_collection": "Gyűjtemény létrehozása",
|
||||
"collections.create_new_collection": "Új gyűjtemény létrehozása",
|
||||
"collections.delete_collection": "Gyűjtemény törlése",
|
||||
"collections.description_length_hint": "100 karakteres korlát",
|
||||
"collections.detail.author_added_you_on_date": "{author} hozzáadott ekkor: {date}",
|
||||
|
||||
@@ -735,7 +735,7 @@
|
||||
"follow_suggestions.who_to_follow": "Chi seguire",
|
||||
"followed_tags": "Hashtag seguiti",
|
||||
"followers.hide_other_followers": "Questo/a utente ha scelto di non rendere visibili gli altri suoi follower",
|
||||
"followers.title": "Stai seguendo {name}",
|
||||
"followers.title": "Follower di {name}",
|
||||
"following.hide_other_following": "Questo/a utente ha scelto di non rendere visibile il resto dei profili che segue",
|
||||
"following.title": "Seguiti da {name}",
|
||||
"footer.about": "Info",
|
||||
|
||||
@@ -436,7 +436,7 @@
|
||||
"explore.trending_links": "ニュース",
|
||||
"explore.trending_statuses": "投稿",
|
||||
"explore.trending_tags": "ハッシュタグ",
|
||||
"featured_carousel.header": "{count, plural, other {固定された投稿}}",
|
||||
"featured_carousel.header": "{count, plural, other {ピン留めされた投稿}}",
|
||||
"filter_modal.added.context_mismatch_explanation": "このフィルターカテゴリーはあなたがアクセスした投稿のコンテキストには適用されません。この投稿のコンテキストでもフィルターを適用するにはフィルターを編集する必要があります。",
|
||||
"filter_modal.added.context_mismatch_title": "コンテキストが一致しません!",
|
||||
"filter_modal.added.expired_explanation": "このフィルターカテゴリーは有効期限が切れています。適用するには有効期限を更新してください。",
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
{
|
||||
"about.blocks": "മോഡറേറ്റഡ് സെർവറുകൾ",
|
||||
"about.contact": "ബന്ധപ്പെടുക:",
|
||||
"about.default_locale": "ഡിഫോൾട്ട്",
|
||||
"about.disclaimer": "മാസ്റ്റോഡൺ ഒരു സ്വതന്ത്ര ഓപ്പൺ സോഴ്സ് സോഫ്റ്റ്വെയറും മാസ്റ്റോഡൺ ജിഎംബിഎച്ചിന്റെ വ്യാപാരമുദ്രയുമാണ്.",
|
||||
"about.domain_blocks.no_reason_available": "കാരണം ലഭ്യമല്",
|
||||
"about.domain_blocks.preamble": "ഫെഡിവേഴ്സിലെ മറ്റേതൊരു സെർവറിൽ നിന്നുമുള്ള ഉള്ളടക്കം കാണാനും ഉപയോക്താക്കളുമായി സംവദിക്കാനും മാസ്റ്റോഡൺ സാധാരണയായി നിങ്ങളെ അനുവദിക്കുന്നു. ഈ പ്രത്യേക സെർവറിൽ വരുത്തിയിട്ടുള്ള ഒഴിവാക്കലുകൾ ഇവയാണ്.",
|
||||
"about.domain_blocks.silenced.explanation": "നിങ്ങൾ വ്യക്തമായി നോക്കുകയോ പിന്തുടരുകയോ ചെയ്താൽ മാത്രമേ ഈ സെർവറിൽ നിന്നുള്ള പ്രൊഫൈലുകളോ ഉള്ളടക്കമോ നിങ്ങൾക്ക് സാധാരണയായി കാണാൻ കഴിയൂ.",
|
||||
"about.domain_blocks.silenced.title": "പരിമിതമായത്",
|
||||
"about.domain_blocks.suspended.explanation": "ഈ സെർവറിൽ നിന്നുള്ള ഒരു ഡാറ്റയും പ്രോസസ്സ് ചെയ്യുകയോ സംഭരിക്കുകയോ കൈമാറ്റം ചെയ്യുകയോ ചെയ്യില്ല, ഇത് ഈ സെർവറിൽ നിന്നുള്ള ഉപയോക്താക്കളുമായി ഏതെങ്കിലും തരത്തിലുള്ള ഇടപെടലോ ആശയവിനിമയമോ അസാധ്യമാക്കുന്നു.",
|
||||
"about.domain_blocks.suspended.title": "താൽക്കാലികമായി നിർത്തിവെച്ചിരിക്കുന്നു",
|
||||
"about.language_label": "ഭാഷ",
|
||||
"about.not_available": "ഈ വിവരങ്ങൾ ഈ സെർവറിൽ ലഭ്യമാക്കിയിട്ടില്ല.",
|
||||
"about.powered_by": "{mastodon} നൽകുന്ന വികേന്ദ്രീകൃത സോഷ്യൽ മീഡിയ",
|
||||
"about.rules": "സെർവ്വർ നിയമങ്ങൾ",
|
||||
"account.account_note_header": "സ്വകാര്യ കുറിപ്പു്",
|
||||
"account.add_or_remove_from_list": "പട്ടികയിൽ ചേർക്കുകയോ/മാറ്റുകയോ ചെയ്യുക",
|
||||
|
||||
@@ -202,18 +202,18 @@
|
||||
"account_edit.field_reorder_modal.drag_start": "有揀框á「{item}」。",
|
||||
"account_edit.field_reorder_modal.handle_label": "Giú框á「{item}」",
|
||||
"account_edit.field_reorder_modal.title": "重整理框á",
|
||||
"account_edit.image_alt_modal.add_title": "加添說明文字",
|
||||
"account_edit.image_alt_modal.add_title": "加添替代文字",
|
||||
"account_edit.image_alt_modal.details_content": "著愛:<ul> <li>照圖描述家kī</li> <li>用第三人稱(比如用「阿明」,毋是「我」)</li> <li>束結,幾个詞就夠ah</li> </ul> 毋通:<ul> <li>用「……ê相片」結束,這對讀螢幕程式是加講ê</li> </ul> 例:<ul> <li>「阿明穿青ê siá-tsuh,koh掛眼鏡」</li> </ul>",
|
||||
"account_edit.image_alt_modal.details_title": "撇步:個人資料ê相片 ê 說明文字",
|
||||
"account_edit.image_alt_modal.edit_title": "編說明文字",
|
||||
"account_edit.image_alt_modal.text_hint": "ALT說明文字通幫tsān讀螢幕程式ê用者知影lí ê內容。",
|
||||
"account_edit.image_alt_modal.details_title": "撇步:個人資料ê相片ê替代文字",
|
||||
"account_edit.image_alt_modal.edit_title": "編替代文字",
|
||||
"account_edit.image_alt_modal.text_hint": "ALT替代文字通幫tsān讀螢幕程式ê用者知影lí ê內容。",
|
||||
"account_edit.image_alt_modal.text_label": "替代文字",
|
||||
"account_edit.image_delete_modal.confirm": "Lí敢確定beh thâi掉tsit幅圖?Tsit ê動作bē當改倒轉。",
|
||||
"account_edit.image_delete_modal.delete_button": "Thâi掉",
|
||||
"account_edit.image_delete_modal.title": "Kám beh thâi掉影像?",
|
||||
"account_edit.image_edit.add_button": "加圖片",
|
||||
"account_edit.image_edit.alt_add_button": "加添說明文字",
|
||||
"account_edit.image_edit.alt_edit_button": "編說明文字",
|
||||
"account_edit.image_edit.alt_add_button": "加添替代文字",
|
||||
"account_edit.image_edit.alt_edit_button": "編替代文字",
|
||||
"account_edit.image_edit.remove_button": "Suá掉圖片",
|
||||
"account_edit.image_edit.replace_button": "取代圖片",
|
||||
"account_edit.item_list.delete": "Thâi {name}",
|
||||
@@ -277,8 +277,8 @@
|
||||
"alert.unexpected.message": "發生意外ê錯誤。.",
|
||||
"alert.unexpected.title": "Ai-ioh!",
|
||||
"alt_text_badge.title": "替代文字",
|
||||
"alt_text_modal.add_alt_text": "加添說明文字",
|
||||
"alt_text_modal.add_text_from_image": "Tuì圖加說明文字",
|
||||
"alt_text_modal.add_alt_text": "加添替代文字",
|
||||
"alt_text_modal.add_text_from_image": "對圖加替代文字",
|
||||
"alt_text_modal.cancel": "取消",
|
||||
"alt_text_modal.change_thumbnail": "改縮小圖",
|
||||
"alt_text_modal.describe_for_people_with_hearing_impairments": "請替聽有困難ê敘述tsit ê內容…",
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "基本ê資料",
|
||||
"collections.create.steps": "第 {step} 步,總共 {total} 步",
|
||||
"collections.create_collection": "建立收藏",
|
||||
"collections.create_new_collection": "建立新ê收藏",
|
||||
"collections.delete_collection": "Thâi掉收藏",
|
||||
"collections.description_length_hint": "限制 100 字",
|
||||
"collections.detail.author_added_you_on_date": "{author} 佇 {date} kā lí加入",
|
||||
@@ -545,10 +546,10 @@
|
||||
"confirmations.logout.confirm": "登出",
|
||||
"confirmations.logout.message": "Lí kám確定beh登出?",
|
||||
"confirmations.logout.title": "Lí kám beh登出?",
|
||||
"confirmations.missing_alt_text.confirm": "加添說明文字",
|
||||
"confirmations.missing_alt_text.confirm": "加添替代文字",
|
||||
"confirmations.missing_alt_text.message": "Lí ê PO文包含無說明文字ê媒體。加添敘述,ē幫tsān lí ê內容hōo khah tsē lâng接近使用。",
|
||||
"confirmations.missing_alt_text.secondary": "就按呢PO出去",
|
||||
"confirmations.missing_alt_text.title": "Kám beh加添說明文字?",
|
||||
"confirmations.missing_alt_text.title": "Kám beh加添替代文字?",
|
||||
"confirmations.mute.confirm": "消音",
|
||||
"confirmations.private_quote_notify.cancel": "轉去編輯",
|
||||
"confirmations.private_quote_notify.confirm": "發布PO文",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"account.follows.empty": "Nada aqui.",
|
||||
"account.follows_you": "Segue você",
|
||||
"account.go_to_profile": "Ir ao perfil",
|
||||
"account.hame.invalid_handle": "Nome de usuário indisponível",
|
||||
"account.hide_reblogs": "Ocultar impulsos de @{name}",
|
||||
"account.in_memoriam": "In Memoriam.",
|
||||
"account.join_modal.day": "Dia",
|
||||
@@ -98,6 +99,7 @@
|
||||
"account.menu.mute": "Silenciar conta",
|
||||
"account.menu.note.description": "Visível somente para você",
|
||||
"account.menu.open_original_page": "Ver em {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Visualizar no servidor original",
|
||||
"account.menu.remove_follower": "Remover seguidor",
|
||||
"account.menu.report": "Denunciar conta",
|
||||
"account.menu.share": "Compartilhar…",
|
||||
@@ -116,6 +118,8 @@
|
||||
"account.name.help.domain_self": "{domain} é o seu servidor, que hospeda seu perfil e publicações.",
|
||||
"account.name.help.footer": "Assim como pode enviar e-mails para pessoas usando diferentes provedores de e-mail, você pode interagir com pessoas em outros servidor do Mastodon, e com qualquer um em outros apps da Fediverse.",
|
||||
"account.name.help.header": "Um nome de usuário é como um endereço de email",
|
||||
"account.name.help.invalid_explanation": "Isso pode ocorrer quando um usuário altera seu nome, e geralmente é temporário. Caso persistir, pode ser devido a um servidor indisponível ou uma má configuração da conta deles.",
|
||||
"account.name.help.invalid_header": "O nome deste usuário está sendo atualizado",
|
||||
"account.name.help.username": "{username} é o nome de usuário desta conta no servidor dela. Alguém em outro servidor pode ter o mesmo nome de usuário.",
|
||||
"account.name.help.username_self": "{username} é seu nome de usuário neste servidor. Alguém em outro servidor pode ter o mesmo nome de usuário.",
|
||||
"account.name_info": "O que isso quer dizer?",
|
||||
@@ -391,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Detalhes básicos",
|
||||
"collections.create.steps": "Passo {step}/{total}",
|
||||
"collections.create_collection": "Criar coleção",
|
||||
"collections.create_new_collection": "Criar nova coleção",
|
||||
"collections.delete_collection": "Excluir coleção",
|
||||
"collections.description_length_hint": "Limite de 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} te adicionou em {date}",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"account.follows.empty": "Este utilizador ainda não segue ninguém.",
|
||||
"account.follows_you": "Segue-te",
|
||||
"account.go_to_profile": "Ir para o perfil",
|
||||
"account.hame.invalid_handle": "Nome de utilizador indisponível",
|
||||
"account.hide_reblogs": "Esconder partilhas de @{name}",
|
||||
"account.in_memoriam": "Em Memória.",
|
||||
"account.join_modal.day": "Dia",
|
||||
@@ -98,6 +99,7 @@
|
||||
"account.menu.mute": "Silenciar conta",
|
||||
"account.menu.note.description": "Visível apenas para ti",
|
||||
"account.menu.open_original_page": "Ver em {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Ver no servidor original",
|
||||
"account.menu.remove_follower": "Remover seguidor",
|
||||
"account.menu.report": "Denunciar conta",
|
||||
"account.menu.share": "Partilhar…",
|
||||
@@ -116,6 +118,8 @@
|
||||
"account.name.help.domain_self": "{domain} é o servidor que hospeda o teu perfil e publicações.",
|
||||
"account.name.help.footer": "Tal como pode enviar e-mails para pessoas que utilizam diferentes serviços de e-mail, pode interagir com pessoas noutros servidores do Mastodon e com qualquer pessoa noutras aplicações do Fediverso.",
|
||||
"account.name.help.header": "Um identificador é como um endereço de correio eletrónico",
|
||||
"account.name.help.invalid_explanation": "Isto pode acontecer quando um utilizador altera o nome de utilizador, e é geralmente temporário. Se persistir, pode dever-se a um servidor indisponível ou a alguma configuração incorreta da parte deles.",
|
||||
"account.name.help.invalid_header": "O nome de utilizador deste utilizador está a ser atualizado",
|
||||
"account.name.help.username": "{username} é o nome de utilizador desta conta no seu servidor. Alguém pode ter o mesmo nome de utilizador noutro servidor.",
|
||||
"account.name.help.username_self": "{username} é o teu nome de utilizador neste servidor. Alguém pode ter o mesmo nome de utilizador noutro servidor.",
|
||||
"account.name_info": "O que significa isto?",
|
||||
@@ -391,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Informações básicas",
|
||||
"collections.create.steps": "Passo {step}/{total}",
|
||||
"collections.create_collection": "Criar coleção",
|
||||
"collections.create_new_collection": "Criar nova coleção",
|
||||
"collections.delete_collection": "Eliminar coleção",
|
||||
"collections.description_length_hint": "Limite de 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} adicionou-o em {date}",
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
"account.menu.open_original_page": "Visa på {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Visa på originalservern",
|
||||
"account.menu.remove_follower": "Ta bort följare",
|
||||
"account.menu.report": "Rapportera konto",
|
||||
"account.menu.report": "Anmäl konto",
|
||||
"account.menu.share": "Dela…",
|
||||
"account.menu.show_reblogs": "Visa boostar i tidslinjen",
|
||||
"account.menu.unblock": "Avblockera konto",
|
||||
@@ -169,7 +169,7 @@
|
||||
"account_edit.custom_fields.reorder_button": "Ändra ordning för fält",
|
||||
"account_edit.custom_fields.tip_content": "Du kan enkelt lägga till trovärdighet till ditt Mastodon-konto genom att verifiera länkar till alla webbplatser du äger.",
|
||||
"account_edit.custom_fields.tip_title": "Tips: Lägga till verifierade länkar",
|
||||
"account_edit.custom_fields.title": "Tilläggsfält",
|
||||
"account_edit.custom_fields.title": "Anpassade fält",
|
||||
"account_edit.custom_fields.verified_hint": "Hur lägger jag till en verifierad länk?",
|
||||
"account_edit.display_name.add_label": "Lägg till visningsnamn",
|
||||
"account_edit.display_name.edit_label": "Redigera visningsnamn",
|
||||
@@ -182,9 +182,9 @@
|
||||
"account_edit.field_actions.edit": "Redigera fält",
|
||||
"account_edit.field_delete_modal.confirm": "Är du säker på att du vill ta bort detta tilläggsfält? Denna åtgärd kan inte ångras.",
|
||||
"account_edit.field_delete_modal.delete_button": "Radera",
|
||||
"account_edit.field_delete_modal.title": "Radera tilläggsfält?",
|
||||
"account_edit.field_edit_modal.add_title": "Lägg till tilläggsfält",
|
||||
"account_edit.field_edit_modal.discard_confirm": "Ta bort",
|
||||
"account_edit.field_delete_modal.title": "Radera anpassat fält?",
|
||||
"account_edit.field_edit_modal.add_title": "Lägg till anpassad fält",
|
||||
"account_edit.field_edit_modal.discard_confirm": "Släng",
|
||||
"account_edit.field_edit_modal.discard_message": "Du har osparade ändringar. Är du säker på att du vill ta bort dem?",
|
||||
"account_edit.field_edit_modal.edit_title": "Redigera tilläggsfält",
|
||||
"account_edit.field_edit_modal.length_warning": "Rekommenderad teckengräns överskrids. Mobilanvändare kanske inte ser ditt fält i sin helhet.",
|
||||
@@ -332,7 +332,7 @@
|
||||
"annual_report.summary.share_message": "Jag fick {archetype}-arketypen!",
|
||||
"annual_report.summary.share_on_mastodon": "Dela på Mastodon",
|
||||
"attachments_list.unprocessed": "(obehandlad)",
|
||||
"audio.hide": "Dölj audio",
|
||||
"audio.hide": "Dölj ljud",
|
||||
"block_modal.no_collections": "Varken av er kan lägga till varandra i samlingar. Ni kommer automatiskt att tas bort från varandras befintliga samlingar, om de finns.",
|
||||
"block_modal.remote_users_caveat": "Vi kommer att be servern {domain} att respektera ditt beslut. Dock garanteras inte efterlevnad eftersom vissa servrar kan hantera blockeringar på olika sätt. Offentliga inlägg kan fortfarande vara synliga för icke-inloggade användare.",
|
||||
"block_modal.show_less": "Visa mindre",
|
||||
@@ -366,7 +366,7 @@
|
||||
"closed_registrations_modal.description": "Det är för närvarande inte möjligt att skapa ett konto på {domain} men kom ihåg att du inte behöver ett konto specifikt på {domain} för att använda Mastodon.",
|
||||
"closed_registrations_modal.find_another_server": "Hitta en annan server",
|
||||
"closed_registrations_modal.preamble": "Mastodon är decentraliserat så oavsett var du skapar ditt konto kommer du att kunna följa och interagera med någon på denna server. Du kan också köra din egen server!",
|
||||
"closed_registrations_modal.title": "Registrera sig på Mastodon",
|
||||
"closed_registrations_modal.title": "Registrera dig på Mastodon",
|
||||
"collection.share_modal.share_link_label": "Dela länk",
|
||||
"collection.share_modal.share_via_post": "Publicera på Mastodon",
|
||||
"collection.share_modal.share_via_system": "Dela med…",
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Grundläggande detaljer",
|
||||
"collections.create.steps": "Steg {step}/{total}",
|
||||
"collections.create_collection": "Skapa samling",
|
||||
"collections.create_new_collection": "Skapa ny samling",
|
||||
"collections.delete_collection": "Radera samling",
|
||||
"collections.description_length_hint": "Begränsat till 100 tecken",
|
||||
"collections.detail.author_added_you_on_date": "{author} lade till dig {date}",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const HASHTAG_SEPARATORS = '_\\u00b7\\u200c';
|
||||
const ALPHA = '\\p{L}\\p{M}';
|
||||
export const ALPHA = '\\p{L}\\p{M}';
|
||||
export const WORD = '\\p{L}\\p{M}\\p{N}\\p{Pc}';
|
||||
|
||||
const buildHashtagPatternRegex = () => {
|
||||
|
||||
@@ -39,7 +39,7 @@ class ActivityTracker
|
||||
end
|
||||
|
||||
def sum(start_at, end_at = Time.now.utc)
|
||||
keys = (start_at.to_date...end_at.to_date).flat_map { |date| [key_at(date.to_time(:utc)), legacy_key_at(date)] }.uniq
|
||||
keys = (start_at.to_date..end_at.to_date).flat_map { |date| [key_at(date.to_time(:utc)), legacy_key_at(date)] }.uniq
|
||||
|
||||
case @type
|
||||
when :basic
|
||||
|
||||
@@ -97,7 +97,7 @@ class Admin::Metrics::Measure::BaseMeasure
|
||||
end
|
||||
|
||||
def previous_time_period
|
||||
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
|
||||
((@start_at.to_date - (length_of_period + 1))..(@end_at.to_date - (length_of_period + 1)))
|
||||
end
|
||||
|
||||
def length_of_period
|
||||
|
||||
@@ -406,6 +406,8 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
next unless value['owner'] == @account.uri
|
||||
|
||||
key = value['publicKeyPem']
|
||||
next if key.nil?
|
||||
|
||||
{ type: :rsa, public_key: key, uri: key_id }
|
||||
end
|
||||
end
|
||||
@@ -433,7 +435,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
next unless value['type'] == 'Multikey' && value['controller'] == @account.uri
|
||||
|
||||
key_type, key = key_from_multikey(value['publicKeyMultibase'])
|
||||
next if key_type.nil?
|
||||
next if key_type.nil? || key.nil?
|
||||
|
||||
{ type: key_type, public_key: key, uri: key_id }
|
||||
end
|
||||
|
||||
@@ -17,9 +17,9 @@ sv:
|
||||
errors:
|
||||
attributes:
|
||||
domain:
|
||||
invalid: är inte ett giltigt domännamn
|
||||
invalid: är inget giltigt domännamn
|
||||
messages:
|
||||
invalid_domain_on_line: "%{value} Är inte ett giltigt domännamn"
|
||||
invalid_domain_on_line: "%{value} Är inget giltigt domännamn"
|
||||
models:
|
||||
account:
|
||||
attributes:
|
||||
@@ -31,17 +31,17 @@ sv:
|
||||
admin/webhook:
|
||||
attributes:
|
||||
url:
|
||||
invalid: är inte en giltig URL
|
||||
invalid: är ingen giltig URL
|
||||
collection:
|
||||
attributes:
|
||||
collection_items:
|
||||
too_many: är för många, fler än %{count} är inte tillåtet
|
||||
tag:
|
||||
unusable: får inte användas
|
||||
unusable: får ej användas
|
||||
doorkeeper/application:
|
||||
attributes:
|
||||
website:
|
||||
invalid: är inte en giltig URL
|
||||
invalid: är ingen giltig URL
|
||||
import:
|
||||
attributes:
|
||||
data:
|
||||
|
||||
@@ -20,7 +20,7 @@ sv:
|
||||
applications:
|
||||
buttons:
|
||||
authorize: Godkänn
|
||||
cancel: Ångra
|
||||
cancel: Avbryt
|
||||
destroy: Förstör
|
||||
edit: Redigera
|
||||
submit: Skicka
|
||||
@@ -60,7 +60,7 @@ sv:
|
||||
error:
|
||||
title: Ett fel har uppstått
|
||||
new:
|
||||
prompt_html: "%{client_name} vill ha behörighet att komma åt ditt konto. <strong>Godkänn bara denna begäran om du känner igen och litar på källan.</strong>"
|
||||
prompt_html: "%{client_name} vill ha behörighet att komma åt ditt konto. <strong>Godkänn endast den här begäran om du känner igen och litar på källan.</strong>"
|
||||
review_permissions: Granska behörigheter
|
||||
title: Godkännande krävs
|
||||
show:
|
||||
|
||||
@@ -1792,7 +1792,7 @@ et:
|
||||
invalid: See kutse pole kehtiv
|
||||
invited_by: 'Sind kutsus:'
|
||||
max_uses:
|
||||
one: 1 kasutus
|
||||
one: 1 kasutaja
|
||||
other: "%{count} kasutust"
|
||||
max_uses_prompt: Piiranguteta
|
||||
prompt: Loo ja jaga linke teistega, et lubada neil liituda selle serveriga
|
||||
|
||||
@@ -70,6 +70,8 @@ gd:
|
||||
custom: Gnàthaichte
|
||||
delete: Sguab às an dàta
|
||||
deleted: Chaidh a sguabadh às
|
||||
deletion_irreversible: Chaidh dàta a’ chunntais seo a sguabadh às gu buan.
|
||||
deletion_reversible_hint_html: Tha sinn gu bhith sguabadh às a’ chunntais seo ’s thèid an dàta aige a sguabadh às gu buan %{date}.
|
||||
demote: Ìslich
|
||||
destroyed_msg: Chaidh an dàta aig %{username} a chur air a’ chiutha ach an dèid a sguabadh às an ceann greis bheag
|
||||
disable: Reòth
|
||||
@@ -297,7 +299,11 @@ gd:
|
||||
enable_relay_html: Chuir %{name} an t-ath-sheachadan %{target} an comas
|
||||
enable_sign_in_token_auth_user_html: Chuir %{name} an comas dearbhadh le tòcan puist-d dha %{target}
|
||||
enable_user_html: Chuir %{name} an clàradh a-steach an comas dhan chleachdaiche %{target}
|
||||
listable_tag_html: faodar a mholadh
|
||||
memorialize_account_html: Rinn %{name} duilleag cuimhneachain dhen chunntas aig %{target}
|
||||
not_listable_tag_html: cha dèid a mholadh
|
||||
not_trendable_tag_html: cha nochd e am measg nan treandaichean
|
||||
not_usable_tag_html: chan fhaodar a chleachdadh
|
||||
promote_user_html: Dh’àrdaich %{name} an cleachdaiche %{target}
|
||||
publish_terms_of_service_html: Dh’fhoillsich %{name} ùrachadh air teirmichean na seirbheise
|
||||
reject_appeal_html: Dhiùlt %{name} an t-ath-thagradh air co-dhùnadh na maorsainneachd o %{target}
|
||||
@@ -310,6 +316,7 @@ gd:
|
||||
sensitive_account_html: Chuir %{name} comharra gu bheil e frionasach ri meadhan aig %{target}
|
||||
silence_account_html: Chuingich %{name} an cunntas aig %{target}
|
||||
suspend_account_html: Chuir %{name} an cunntas aig %{target} à rèim
|
||||
trendable_tag_html: faodaidh e nochdadh am measg nan treandaichean
|
||||
unassigned_report_html: Neo-iomruin %{name} an gearan %{target}
|
||||
unblock_email_account_html: Dhì-bhac %{name} an seòladh puist-d aig %{target}
|
||||
unsensitive_account_html: Chuir %{name} comharra nach eil e frionasach ri meadhan aig %{target}
|
||||
@@ -322,8 +329,10 @@ gd:
|
||||
update_ip_block_html: Sguab %{name} às riaghailt dhan IP %{target}
|
||||
update_report_html: Dh’ùraich %{name} an gearan %{target}
|
||||
update_status_html: Dh’ùraich %{name} post le %{target}
|
||||
update_tag_html: 'Dh’atharraich %{name} roghainnean %{target} gu: '
|
||||
update_user_role_html: Dh’atharraich %{name} an dreuchd %{target}
|
||||
update_username_block_html: Dh’ùraich %{name} an riaghailt airson ainmean-cleachdaidh sa bheil %{target}
|
||||
usable_tag_html: faodar a chleachdadh;
|
||||
deleted_account: chaidh an cunntas a sguabadh às
|
||||
empty: Cha deach loga a lorg.
|
||||
filter_by_action: Criathraich a-rèir gnìomha
|
||||
@@ -1038,13 +1047,17 @@ gd:
|
||||
critical_update: Èiginneach – ùraich cho luath ’s a ghabhas
|
||||
description: Mholamaid gun cùm thu an stàladh agad de Mhastodon ùraichte ach am faigh thu buannachd às na càraidhean ’s gleusan as ùire. A bharrachd air sin, bidh e èiginneach aig amannan gun ùraich thu Mastodon gun dàil airson duilgheadasan tèarainteachd a sheachnadh. Seo as adhbhar gun doir Mastodon sùil airson ùrachaidhean gach leth-uair a thìde ’s gun cuir e brath thugad a-rèir nan roghainnean puist-d agad.
|
||||
documentation_link: Barrachd fiosrachaidh
|
||||
nearing_eol: Chan fhaigh am branch a tha thu a’ cleachdadh taic tuilleadh on %{date} a-mach, beachdaich air ùrachadh.
|
||||
release_notes: Nòtaichean sgaoilidh
|
||||
supported_until: Thig an taic gu crìoch %{date}
|
||||
title: Ùrachaidhean a tha ri fhaighinn
|
||||
type: Seòrsa
|
||||
types:
|
||||
major: Sgaoileadh mòr
|
||||
minor: Sgaoileadh beag
|
||||
patch: Sgaoileadh brèide – càraidhean aig bugaichean ’s atharraichean a tha furasta a chur an sàs
|
||||
unsupported_branch: Chan eil taic ris a’ branch a tha thu a’ ruith, ùraich cho luath ’s a ghabhas.
|
||||
unsupported_since: Chan eil taic ris os cionn %{date}
|
||||
version: Tionndadh
|
||||
statuses:
|
||||
account: Ùghdar
|
||||
@@ -1268,6 +1281,7 @@ gd:
|
||||
two: Chaidh a chleachdadh le %{count} rè na seachdain seo chaidh
|
||||
title: Molaidhean ⁊ treandaichean
|
||||
trending: A’ treandadh
|
||||
update_available: Tha ùrachadh ri fhaighinn
|
||||
username_blocks:
|
||||
add_new: Cuir tè ùr ris
|
||||
block_registrations: Bac clàradh
|
||||
@@ -1319,6 +1333,15 @@ gd:
|
||||
auto_close_registrations:
|
||||
body: Ri linn dìth gnìomhachd nam maor o chionn goirid, dh’atharraich Mastodon modh nan clàraidhean aig %{instance} ach am feum cunntasan ùra aontachadh a làimh leis an amas gun dèid %{instance} a dhìon o chleachdadh air dòighean droch-rùnach. ’S urrainn dhut na clàraidhean fhosgladh a-rithist uair sam bith.
|
||||
subject: Feumaidh clàradh le %{instance} aontachadh a-nis
|
||||
end_of_support_out_of_support_warning:
|
||||
body: Chan eil taic tuilleadh ris an tionndadh de Mhastodon a tha am frithealaiche agad a chleachdadh. Mholamaid gun dèan thu ùrachadh cho luath ’s a ghabhas!
|
||||
subject: Chan eil taic tuilleadh ri Mastodon %{branch} a tha ’ga chleachdadh air %{instance}!
|
||||
end_of_support_three_months_warning:
|
||||
body: Cha bhi taic tuilleadh ris an tionndadh de Mhastodon a tha am frithealaiche a’ cleachdadh an ceann 3 mìosan. Mholamaid gun dèan thu ùrachadh gu branch nas ùire roimhe sin.
|
||||
subject: Thig an taic ri Mastodon %{branch} a tha ’ga chleachdadh air %{instance} gu crìch an ceann 3 mìosan.
|
||||
end_of_support_two_weeks_warning:
|
||||
body: Cha bhi taic tuilleadh ris an tionndadh de Mhastodon a tha am frithealaiche a’ cleachdadh an ceann 2 mhìos. Mholamaid gun dèan thu ùrachadh gu branch nas ùire roimhe sin.
|
||||
subject: Thig an taic ri Mastodon %{branch} a tha ’ga chleachdadh air %{instance} gu crìch an ceann 2 mhìos.
|
||||
new_appeal:
|
||||
actions:
|
||||
delete_statuses: sguabadh às nam postaichean aca
|
||||
@@ -2002,6 +2025,7 @@ gd:
|
||||
administration_emails: Brathan puist-d na rianachd
|
||||
email_events: Tachartasan nam brathan puist-d
|
||||
email_events_hint: 'Tagh na tachartasan dhan a bheil thu airson brathan fhaighinn:'
|
||||
moderation_emails: Brathan puist-d na maorsainneachd
|
||||
number:
|
||||
human:
|
||||
decimal_units:
|
||||
@@ -2025,6 +2049,7 @@ gd:
|
||||
next: Air adhart
|
||||
older: Nas sine
|
||||
prev: Air ais
|
||||
truncate_html: "…"
|
||||
polls:
|
||||
errors:
|
||||
already_voted: Chuir thu bhòt sa chunntas-bheachd seo mu thràth
|
||||
|
||||
@@ -1464,9 +1464,9 @@ it:
|
||||
invalid_password: Password non valida
|
||||
prompt: Conferma la tua password per continuare
|
||||
color_scheme:
|
||||
auto: Automatica
|
||||
dark: Scura
|
||||
light: Chiara
|
||||
auto: Automatico
|
||||
dark: Scuro
|
||||
light: Chiaro
|
||||
contrast:
|
||||
auto: Automatico
|
||||
high: Alto
|
||||
@@ -2089,7 +2089,7 @@ it:
|
||||
aliases: Alias dell'account
|
||||
appearance: Interfaccia
|
||||
authorized_apps: Applicazioni autorizzate
|
||||
back: Torna a Mastodon
|
||||
back: Torna su Mastodon
|
||||
delete: Cancellazione account
|
||||
development: Sviluppo
|
||||
edit_profile: Modifica profilo
|
||||
|
||||
@@ -2310,4 +2310,5 @@ nan-TW:
|
||||
feature_control_title: 掌握lí家己ê時間線
|
||||
feature_creativity: Mastodon支持聲音、影kap圖片êPO文、容易使用性ê描述、投票、內容ê警告、動畫ê標頭、自訂ê繪文字kap裁縮小圖ê控制等等,幫tsān lí展現家己。無論beh發表藝術作品、音樂,á是podcast,Mastodon佇tsia為lí服務。
|
||||
feature_creativity_title: 無比ê創造力
|
||||
feature_moderation: Mastodon kā決定權交轉予lí。逐台服侍器建立in ê規定kap規範,佇本地執行,毋是像大企業社交媒體自頂kàu底實施,予伊佇回應無kâng陣lâng ê需求siōng通融。加入規則lí同意ê服侍器,iah是家己pháng一ê。
|
||||
sign_in_action: 登入
|
||||
@@ -85,7 +85,7 @@ et:
|
||||
warn: Varja filtreeritud sisu hoiatusega, nimetades filtri pealkirja
|
||||
form_admin_settings:
|
||||
activity_api_enabled: Kohalike postituste, aktiivsete kasutajate ja uute registreerumistr arv nädala kaupa grupeeritult
|
||||
app_icon: WEBP, PNG, GIF või JPG. Asendab mobiilsel seadmel äpi vaikeikooni kohandatud ikooniga.
|
||||
app_icon: WEBP, PNG, GIF või JPG. Asendab mobiilses seadmes rakenduse vaikeikooni kohandatud ikooniga.
|
||||
backups_retention_period: Kasutajatel on võimalus genereerida oma postitustest hiljem allalaaditav arhiiv. Kui määrad positiivse arvu, siis kustutatakse need arhiivid serveri andmeruumist määratud arvu päevade järel automaatselt.
|
||||
bootstrap_timeline_accounts: Järgnevad kasutajakontod kinnitatakse vaate ülaossa ning on mõeldud jälgitavate kontode soovituseks uutele kasutajatele. Sisend peab olema komadega eraldatud kasutajakontode loend.
|
||||
closed_registrations_message: Kuvatakse, kui liitumised pole võimalikud
|
||||
@@ -225,7 +225,7 @@ et:
|
||||
data: Andmed
|
||||
display_name: Kuvanimi
|
||||
email: E-posti aadress
|
||||
expires_in: Aegu pärast
|
||||
expires_in: Aegumine
|
||||
fields: Veebiviited
|
||||
filter_action: Filtritoimingud
|
||||
header: Päis
|
||||
@@ -233,7 +233,7 @@ et:
|
||||
inbox_url: Sõnumivahendusserveri sisendkausta võrguaadress
|
||||
irreversible: Kustuta selle asemel, et peita
|
||||
locale: Kasutajaliidese keel
|
||||
max_uses: Maksimum kasutajate arv
|
||||
max_uses: Kasutajate arvu ülempiir
|
||||
new_password: Uus salasõna
|
||||
note: Elulugu
|
||||
otp_attempt: Kaheastmeline kood
|
||||
@@ -288,7 +288,7 @@ et:
|
||||
warn: Peida hoiatusega
|
||||
form_admin_settings:
|
||||
activity_api_enabled: Avalda agregeeritud statistika kasutajaaktiivsuse kohta API-s
|
||||
app_icon: Äpi ikoon
|
||||
app_icon: Rakenduse ikoon
|
||||
backups_retention_period: Kasutajate arhiivi talletusperiood
|
||||
bootstrap_timeline_accounts: Alati soovita neid kontosid uutele kasutajatele
|
||||
closed_registrations_message: Kohandatud teade, kui liitumine pole võimalik
|
||||
@@ -367,7 +367,7 @@ et:
|
||||
settings:
|
||||
email_subscriptions: Luba e-posti aadressiga liitumised
|
||||
indexable: Kaasa profiilileht otsimootoritesse
|
||||
show_application: Näita, millisest äpist postituse saatsid
|
||||
show_application: Näita, millisest rakendusest sa postitasid
|
||||
tag:
|
||||
listable: Luba sellel teemaviitel ilmuda profiilide kataloogis
|
||||
name: Teemaviide
|
||||
|
||||
@@ -347,6 +347,7 @@ gd:
|
||||
notification_emails:
|
||||
appeal: Tha cuideigin ag ath-thagradh co-dhùnadh na maorsainneachd
|
||||
digest: Cuir puist-d le geàrr-chunntas
|
||||
end_of_support: Tha an taic ris an tionndadh làithreach de Mhastodon gu bhith tighinn gu crìch
|
||||
favourite: Is annsa le cuideigin am post agad
|
||||
follow: Lean cuideigin thu
|
||||
follow_request: Dh’iarr cuideigin ’gad leantainn
|
||||
|
||||
@@ -3,6 +3,7 @@ nan-TW:
|
||||
simple_form:
|
||||
hints:
|
||||
account:
|
||||
discoverable: Lí可能予別ê用者收佇in建立ê收藏內底。Lí kap lí ê公開PO文可能mā ē佇Mastodon ê別ê探索功能經驗,推薦予用者。
|
||||
display_name: Lí ê全名á是別號。
|
||||
fields: Lí ê頭頁、代名詞、年歲,kap其他beh分享ê。
|
||||
defaults:
|
||||
|
||||
+3
-3
@@ -59,7 +59,7 @@ services:
|
||||
web:
|
||||
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
||||
# build: .
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.7.0-rc.1
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.7.0
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: bundle exec puma -C config/puma.rb
|
||||
@@ -83,7 +83,7 @@ services:
|
||||
# build:
|
||||
# dockerfile: ./streaming/Dockerfile
|
||||
# context: .
|
||||
image: ghcr.io/glitch-soc/mastodon-streaming:v4.7.0-rc.1
|
||||
image: ghcr.io/glitch-soc/mastodon-streaming:v4.7.0
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: node ./streaming/index.js
|
||||
@@ -102,7 +102,7 @@ services:
|
||||
sidekiq:
|
||||
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
||||
# build: .
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.7.0-rc.1
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.7.0
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: bundle exec sidekiq
|
||||
|
||||
@@ -17,7 +17,7 @@ module Mastodon
|
||||
end
|
||||
|
||||
def default_prerelease
|
||||
'rc.1'
|
||||
''
|
||||
end
|
||||
|
||||
def prerelease
|
||||
|
||||
+7
-8
@@ -47,7 +47,7 @@
|
||||
"@dnd-kit/utilities": "3.2.2",
|
||||
"@floating-ui/react-dom": "2.1.9",
|
||||
"@formatjs/intl-pluralrules": "6.3.13",
|
||||
"@formatjs/unplugin": "1.2.3",
|
||||
"@formatjs/unplugin": "1.2.4",
|
||||
"@gamestdio/websocket": "0.3.2",
|
||||
"@github/webauthn-json": "2.1.1",
|
||||
"@optimize-lodash/rollup-plugin": "6.0.0",
|
||||
@@ -55,7 +55,7 @@
|
||||
"@react-spring/web": "10.1.2",
|
||||
"@reduxjs/toolkit": "2.12.0",
|
||||
"@rolldown/plugin-babel": "0.2.3",
|
||||
"@unhead/react": "3.3.1",
|
||||
"@unhead/react": "3.3.2",
|
||||
"@use-gesture/react": "10.3.1",
|
||||
"@vitejs/plugin-legacy": "8.2.3",
|
||||
"@vitejs/plugin-react": "6.0.5",
|
||||
@@ -87,12 +87,12 @@
|
||||
"idb": "8.0.3",
|
||||
"immutable": "4.3.9",
|
||||
"intl-messageformat": "11.2.13",
|
||||
"js-yaml": "5.2.3",
|
||||
"js-yaml": "5.3.0",
|
||||
"lande": "1.0.10",
|
||||
"lodash": "4.18.1",
|
||||
"marky": "1.3.0",
|
||||
"path-complete-extname": "1.0.0",
|
||||
"postcss-preset-env": "11.3.2",
|
||||
"postcss-preset-env": "11.4.0",
|
||||
"prop-types": "15.8.1",
|
||||
"punycode": "2.3.1",
|
||||
"react": "19.2.8",
|
||||
@@ -112,13 +112,13 @@
|
||||
"regenerator-runtime": "0.14.1",
|
||||
"requestidlecallback": "0.3.0",
|
||||
"rollup-plugin-gzip": "4.2.0",
|
||||
"rollup-plugin-visualizer": "7.0.1",
|
||||
"rollup-plugin-visualizer": "7.1.1",
|
||||
"sass": "1.102.0",
|
||||
"scroll-behavior": "0.11.0",
|
||||
"stacktrace-js": "2.0.2",
|
||||
"stringz": "2.1.0",
|
||||
"substring-trie": "1.0.2",
|
||||
"terser": "5.49.2",
|
||||
"terser": "5.50.0",
|
||||
"tesseract.js": "7.0.0",
|
||||
"tiny-queue": "0.2.1",
|
||||
"twitter-text": "3.1.0",
|
||||
@@ -166,7 +166,7 @@
|
||||
"eslint-import-resolver-typescript": "4.4.5",
|
||||
"eslint-plugin-formatjs": "6.4.20",
|
||||
"eslint-plugin-import": "2.32.0",
|
||||
"eslint-plugin-jsdoc": "63.3.3",
|
||||
"eslint-plugin-jsdoc": "64.1.0",
|
||||
"eslint-plugin-jsx-a11y": "6.10.2",
|
||||
"eslint-plugin-promise": "7.3.0",
|
||||
"eslint-plugin-react": "7.37.5",
|
||||
@@ -186,7 +186,6 @@
|
||||
"type-fest": "5.7.0",
|
||||
"typescript": "npm:@typescript/typescript6@6.0.2",
|
||||
"typescript-eslint": "8.66.0",
|
||||
"typescript-plugin-css-modules": "5.2.0",
|
||||
"vitest": "4.1.10"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Admin::Disputes::AppealsController do
|
||||
render_views
|
||||
|
||||
before do
|
||||
sign_in current_user, scope: :user
|
||||
|
||||
target_account.suspend!
|
||||
end
|
||||
|
||||
let(:target_account) { Fabricate(:account) }
|
||||
let(:strike) { Fabricate(:account_warning, target_account: target_account, action: :suspend) }
|
||||
let(:appeal) { Fabricate(:appeal, strike: strike, account: target_account) }
|
||||
|
||||
describe 'GET #index' do
|
||||
let(:current_user) { Fabricate(:admin_user) }
|
||||
|
||||
before { appeal }
|
||||
|
||||
it 'returns a page that lists details of appeals' do
|
||||
get :index
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(:success)
|
||||
expect(response.parsed_body)
|
||||
.to have_css('span.username', text: strike.account.username)
|
||||
.and have_css('span.target', text: appeal.account.username)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'POST #approve' do
|
||||
subject { post :approve, params: { id: appeal.id } }
|
||||
|
||||
let(:current_user) { Fabricate(:admin_user) }
|
||||
|
||||
it 'redirects back to the strike page and notifies target account about approved appeal', :inline_jobs do
|
||||
emails = capture_emails { subject }
|
||||
|
||||
expect(response)
|
||||
.to redirect_to(admin_disputes_strike_path(appeal.strike))
|
||||
|
||||
expect(target_account.reload)
|
||||
.to_not be_suspended
|
||||
|
||||
expect(emails.size)
|
||||
.to eq(1)
|
||||
expect(emails.first)
|
||||
.to have_attributes(
|
||||
to: contain_exactly(target_account.user.email),
|
||||
subject: eq(I18n.t('user_mailer.appeal_approved.subject', date: I18n.l(appeal.created_at)))
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'POST #reject' do
|
||||
subject { post :reject, params: { id: appeal.id } }
|
||||
|
||||
let(:current_user) { Fabricate(:admin_user) }
|
||||
|
||||
it 'redirects back to the strike page and notifies target account about rejected appeal', :inline_jobs do
|
||||
emails = capture_emails { subject }
|
||||
|
||||
expect(response)
|
||||
.to redirect_to(admin_disputes_strike_path(appeal.strike))
|
||||
|
||||
expect(emails.size)
|
||||
.to eq(1)
|
||||
|
||||
expect(emails.first)
|
||||
.to have_attributes(
|
||||
to: contain_exactly(target_account.user.email),
|
||||
subject: eq(I18n.t('user_mailer.appeal_rejected.subject', date: I18n.l(appeal.created_at)))
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -17,6 +17,10 @@ RSpec.describe Admin::Metrics::Measure::TagUsesMeasure do
|
||||
let(:bob) { Fabricate(:account, domain: 'bob.example') }
|
||||
|
||||
before do
|
||||
2.times do
|
||||
travel_to(3.days.ago) { add_tag_history(alice) }
|
||||
end
|
||||
|
||||
3.times do
|
||||
travel_to(2.days.ago) { add_tag_history(alice) }
|
||||
end
|
||||
@@ -40,6 +44,8 @@ RSpec.describe Admin::Metrics::Measure::TagUsesMeasure do
|
||||
include(date: 1.day.ago.midnight.to_time, value: '4'),
|
||||
include(date: 0.days.ago.midnight.to_time, value: '1')
|
||||
)
|
||||
expect(subject.previous_total)
|
||||
.to eq 2
|
||||
end
|
||||
|
||||
def add_tag_history(account)
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Admin Disputes Appeals' do
|
||||
before do
|
||||
sign_in(user)
|
||||
|
||||
target_account.suspend!
|
||||
end
|
||||
|
||||
let(:user) { Fabricate(:admin_user) }
|
||||
let(:target_account) { Fabricate(:account) }
|
||||
let(:strike) { Fabricate(:account_warning, target_account: target_account, action: :suspend) }
|
||||
let!(:appeal) { Fabricate(:appeal, strike: strike, account: target_account) }
|
||||
|
||||
describe 'Viewing the disputed appeals list' do
|
||||
it 'returns a page that lists details of appeals' do
|
||||
visit admin_disputes_appeals_path
|
||||
|
||||
expect(page)
|
||||
.to have_css('span.username', text: strike.account.username)
|
||||
.and have_css('span.target', text: appeal.account.username)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Approving an appeal' do
|
||||
it 'redirects back to the strike page and notifies target account about approved appeal', :inline_jobs do
|
||||
visit admin_disputes_strike_path(strike)
|
||||
|
||||
expect { click_on I18n.t('disputes.strikes.approve_appeal') }
|
||||
.to send_email(to: target_account.user.email, subject: approve_subject)
|
||||
|
||||
expect(page)
|
||||
.to have_title(strike_title)
|
||||
|
||||
expect(target_account.reload)
|
||||
.to_not be_suspended
|
||||
end
|
||||
|
||||
def approve_subject
|
||||
I18n.t('user_mailer.appeal_approved.subject', date: I18n.l(appeal.created_at))
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Rejecting an appeal' do
|
||||
it 'redirects back to the strike page and notifies target account about rejected appeal', :inline_jobs do
|
||||
visit admin_disputes_strike_path(strike)
|
||||
|
||||
expect { click_on I18n.t('disputes.strikes.reject_appeal') }
|
||||
.to send_email(to: target_account.user.email, subject: reject_subject)
|
||||
|
||||
expect(page)
|
||||
.to have_title(strike_title)
|
||||
|
||||
expect(target_account.reload)
|
||||
.to be_suspended
|
||||
end
|
||||
|
||||
def reject_subject
|
||||
I18n.t('user_mailer.appeal_rejected.subject', date: I18n.l(appeal.created_at))
|
||||
end
|
||||
end
|
||||
|
||||
def strike_title
|
||||
I18n.t('disputes.strikes.title', action: I18n.t(strike.action, scope: 'disputes.strikes.title_actions'), date: I18n.l(strike.created_at.to_date))
|
||||
end
|
||||
end
|
||||
@@ -22,7 +22,7 @@
|
||||
"express": "5.2.1",
|
||||
"ioredis": "5.11.1",
|
||||
"jsdom": "30.0.1",
|
||||
"pg": "8.22.0",
|
||||
"pg": "8.23.0",
|
||||
"pg-connection-string": "2.14.0",
|
||||
"pino": "10.3.1",
|
||||
"pino-http": "11.0.0",
|
||||
|
||||
+1
-2
@@ -22,8 +22,7 @@
|
||||
"flavours/glitch/*": ["./app/javascript/flavours/glitch/*"],
|
||||
"images/*": ["./app/javascript/images/*"],
|
||||
"styles/*": ["./app/javascript/styles/*"]
|
||||
},
|
||||
"plugins": [{ "name": "typescript-plugin-css-modules" }]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"vite.config.mts",
|
||||
|
||||
Reference in new issue
Block a user