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

Merge upstream changes up to 35251ee167
This commit is contained in:
Claire authored and GitHub committed 2026-07-02 07:44:11 +02:00
commit 5afebac173
83 files changed
+1815 -422

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ runs:
shell: bash
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
- uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
+1 -1
View File
@@ -55,7 +55,7 @@ jobs:
run: yarn build-storybook
- name: Run Chromatic
uses: chromaui/action@7804f34e4e59c0d9b3c856848f46ad96d7897429 # v17
uses: chromaui/action@98132da0fca2211fb41b3af7b49ce85176007851 # v17
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
+3 -3
View File
@@ -44,7 +44,7 @@ jobs:
onlyProduction: 'true'
- name: Cache assets from compilation
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: |
public/assets
@@ -154,7 +154,7 @@ jobs:
bin/flatware fan bin/rails db:test:prepare
- name: Cache RSpec persistence file
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: |
tmp/rspec/examples.txt
@@ -252,7 +252,7 @@ jobs:
- name: Cache Playwright Chromium browser
id: playwright-cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
+1
View File
@@ -6,6 +6,7 @@ AllCops:
- Vagrantfile
- config/initializers/json_ld*
- lib/mastodon/migration_helpers.rb
- lib/json-canonicalization/floats_fix.rb
ExtraDetails: true
NewCops: enable
TargetRubyVersion: 3.3 # Oldest supported ruby version
+1
View File
@@ -96,6 +96,7 @@ gem 'webauthn', '~> 3.0'
gem 'webpush', github: 'mastodon/webpush', ref: '9631ac63045cfabddacc69fc06e919b4c13eb913'
gem 'json'
gem 'json-canonicalization', '~> 1.0'
gem 'json-ld'
gem 'json-ld-preloaded', '~> 3.2'
gem 'rdf-normalize', '~> 0.5'
+1
View File
@@ -1002,6 +1002,7 @@ DEPENDENCIES
irb (~> 1.8)
jd-paperclip-azure (~> 3.0)
json
json-canonicalization (~> 1.0)
json-ld
json-ld-preloaded (~> 3.2)
json-schema (~> 6.0)
+2 -2
View File
@@ -94,12 +94,12 @@ If you would like to help with translations 🌐 you can do so on [Crowdin](http
## LICENSE
Copyright (c) 2016-2025 Eugen Rochko (+ [`mastodon authors`](AUTHORS.md))
Copyright (c) 2016-2026 Eugen Rochko (+ [`mastodon authors`](AUTHORS.md))
Licensed under GNU Affero General Public License as stated in the [LICENSE](LICENSE):
```text
Copyright (c) 2016-2025 Eugen Rochko & other Mastodon contributors
Copyright (c) 2016-2026 Eugen Rochko & other Mastodon contributors
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
+1 -1
View File
@@ -38,8 +38,8 @@ module Admin
def log_action_from_change
action_log = current_account.action_logs.new(action: 'update', target: @tag)
action_log.recorded_changes = @tag.saved_changes.slice('usable', 'trendable', 'listable').transform_values(&:last)
action_log.recorded_changes_format = 'tags_format_1.0'
action_log.save
end
+1
View File
@@ -55,6 +55,7 @@ module Admin::ActionLogsHelper
end
def permutation_of_key(log, key)
# we're utilizing the store_accessors here, to get the values from the jsonb like: log.listable => true
return if log.public_send(key).nil?
log.public_send(key) ? key : :"not_#{key}"
+16
View File
@@ -17,6 +17,22 @@ module JsonLdHelper
value.is_a?(Array) ? value.first : value
end
# Some attributes we read can be either `xsd:string` or `rdf:langString`
# and will lead to different compacted forms depending on which they are.
# Furthermore, we don't unconditionally compact to our context, so we
# may also find non-compacted forms.
# This is the case of `summary`, `name` and `content` as defined in ActivityStreams.
def first_lang_string(json, name)
if json[name]
value = first_of_value(json[name])
return value if value.is_a?(String)
value['@value'] if value.is_a?(Hash)
elsif json["#{name}Map"]
json["#{name}Map"].values.first
end
end
def uri_from_bearcap(str)
if str&.start_with?('bear:')
Addressable::URI.parse(str).query_values['u']
@@ -30,7 +30,7 @@ export const SpoilerButton: React.FC<Props> = ({
action = (
<FormattedMessage id='status.media.open' defaultMessage='Click to open' />
);
} else if (matchedFilters) {
} else if (matchedFilters?.length) {
warning = (
<FormattedMessage
id='filter_warning.matches_filter'
@@ -80,7 +80,7 @@ export const SpoilerButton: React.FC<Props> = ({
disabled={uncached}
>
<span className='spoiler-button__overlay__label'>
{warning}
<span className='spoiler-button__overlay__text'>{warning}</span>
<span className='spoiler-button__overlay__action'>{action}</span>
</span>
</button>
@@ -0,0 +1,190 @@
import { List, Map } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import {
accountFactoryImmutable,
cardFactoryAPI,
collectionFactoryAPI,
statusFactoryAPI,
statusFactoryImmutable,
statusQuotedFactoryAPI,
} from '@/testing/factories';
import { StatusAttachments } from './attachments';
import type { AttachmentArgs } from './testing';
import { attachmentArgTypes, attachmentFactory } from './testing';
interface StatusAttachmentsStoryProps extends AttachmentArgs {
isFiltered: boolean;
isSensitive: boolean;
isPictureInPicture: boolean;
isQuote: boolean;
}
const meta = {
title: 'Components/Status/StatusAttachments',
render() {
return (
<div style={{ width: 'min(600px, 80vw)' }}>
<StatusAttachments statusId='1' contextType='home' />
</div>
);
},
args: {
attachment1: 'image',
attachment2: undefined,
attachment3: undefined,
isFiltered: false,
isSensitive: false,
isPictureInPicture: false,
isQuote: false,
},
argTypes: {
...attachmentArgTypes,
isFiltered: {
control: 'boolean',
},
isSensitive: {
control: 'boolean',
},
isPictureInPicture: {
control: 'boolean',
},
isQuote: {
control: 'boolean',
},
},
parameters: {
state: {
filters: {
'1': Map({
id: '1',
title: 'Test',
context: List(['home']),
expires_at: null,
filter_action: 'blur',
}),
},
accounts: {
'1': accountFactoryImmutable(),
},
server: {
translationLanguages: {
item: {
xx: ['en', 'de', 'fr'],
},
},
},
},
stateFn(args: StatusAttachmentsStoryProps) {
const status = statusFactoryAPI();
if (args.isFiltered) {
status.filtered = [
{
filter: {
id: '1',
title: 'Test',
context: 'home',
expires_at: '',
filter_action: 'warn',
},
keyword_matches: [],
status_matches: [],
},
];
}
if (args.isSensitive) {
status.sensitive = true;
}
if (args.isQuote) {
status.quote = {
state: 'accepted',
quoted_status: statusQuotedFactoryAPI({ id: '2' }),
};
}
if (args.attachment1 === 'card') {
status.card = cardFactoryAPI({
image:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
});
} else if (args.attachment1 === 'collection') {
status.tagged_collections = [collectionFactoryAPI()];
} else if (args.attachment1) {
status.media_attachments.push(
...attachmentFactory(
args.attachment1,
args.attachment2,
args.attachment3,
),
);
}
return {
statuses: {
'1': statusFactoryImmutable(status),
},
picture_in_picture: args.isPictureInPicture
? {
statusId: '1',
accountId: '1',
type: args.attachment1 === 'audio' ? 'audio' : 'video',
}
: undefined,
};
},
},
} as Meta<StatusAttachmentsStoryProps>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Image: Story = {};
export const Video: Story = {
args: {
attachment1: 'video',
},
};
export const Audio: Story = {
args: {
attachment1: 'audio',
},
};
export const Card: Story = {
args: {
attachment1: 'card',
},
};
export const Collection: Story = {
args: {
attachment1: 'collection',
},
};
export const Sensitive: Story = {
args: {
isSensitive: true,
},
};
export const Filtered: Story = {
args: {
isFiltered: true,
},
};
export const PictureInPicture: Story = {
args: {
attachment1: 'video',
isPictureInPicture: true,
},
};
@@ -121,13 +121,12 @@ const MediaAttachments: React.FC<{
const description =
attachment.translation?.description ?? attachment.description;
const immutableAttachments = useAppSelector(
(state) =>
state.statuses.getIn(
statusId,
'media_attachments',
) as Immutable.List<MediaAttachment>,
);
const immutableAttachments = useAppSelector((state) => {
return state.statuses.getIn([
statusId,
'media_attachments',
]) as Immutable.List<MediaAttachment>;
});
const mediaFilters = useAppSelector((state) =>
selectMediaMatchFilters(state, { statusId, contextType }),
);
@@ -6,16 +6,16 @@ import { Map as ImmutableMap } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import { fn } from 'storybook/test';
import type { ApiMediaAttachmentJSON } from '@/flavours/glitch/api_types/media_attachments';
import type { StatusVisibility } from '@/flavours/glitch/api_types/statuses';
import {
accountFactoryImmutable,
mediaAttachmentFactoryAPI,
pollFactoryImmutable,
statusFactoryAPI,
statusFactoryImmutable,
} from '@/testing/factories';
import type { AttachmentArgs } from './testing';
import { attachmentArgTypes, attachmentFactory } from './testing';
import { TypedStatus } from './types';
type ContextTypes =
@@ -29,16 +29,7 @@ type ContextTypes =
| 'search'
| 'thread';
type AttachmentTypes =
| 'image-1'
| 'image-2'
| 'image-3'
| 'video'
| 'audio'
| 'gifv'
| 'unknown';
interface StatusStoryProps {
interface StatusStoryProps extends AttachmentArgs {
// Contents
text: string;
visibility: StatusVisibility;
@@ -46,7 +37,6 @@ interface StatusStoryProps {
isReply?: boolean;
isPoll?: boolean;
isQuote?: boolean;
attachments?: AttachmentTypes;
contentWarning?: string;
// Interactions
@@ -84,7 +74,9 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
isReply,
isPoll,
isQuote,
attachments,
attachment1,
attachment2,
attachment3,
contentWarning,
hasFavourited,
@@ -108,107 +100,17 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
const { account, status } = useMemo(() => {
const account = accountFactoryImmutable();
const media_attachments: ApiMediaAttachmentJSON[] = [];
switch (attachments) {
// Use fall through add attachments depending on count.
case 'image-3':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '2',
url: 'https://cataas.com/cat/EbVq9zMc4Xxv7s73',
meta: {
original: {
width: 960,
height: 1280,
size: '960x1280',
aspect: 0.75,
},
},
}),
);
// eslint-disable-next-line no-fallthrough
case 'image-2':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '3',
url: 'https://cataas.com/cat/YFaQ4xWYoWURSz37',
meta: {
original: {
width: 964,
height: 1280,
size: '964x1280',
aspect: 0.753125,
},
},
}),
);
// eslint-disable-next-line no-fallthrough
case 'image-1':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '4',
url: 'https://cataas.com/cat/bYBTjiFUqjUPIBUD',
meta: {
original: {
width: 1280,
height: 964,
size: '1280x964',
aspect: 1.32780083,
},
},
}),
);
break;
case 'video':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'video',
url: 'https://www.pexels.com/download/video/11760787/',
meta: {
original: {
width: 2160,
height: 4096,
},
},
}),
);
break;
case 'audio':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'audio',
url: 'https://upload.wikimedia.org/wikipedia/commons/4/40/Elephant_voice_-_trumpeting.ogg',
}),
);
break;
case 'gifv':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'gifv',
url: 'https://www.pexels.com/download/video/11760787/',
meta: {
original: {
width: 2160,
height: 4096,
},
},
}),
);
break;
case 'unknown':
media_attachments.push(
mediaAttachmentFactoryAPI({ type: attachments }),
);
break;
}
return {
account,
status: statusFactoryImmutable({
text,
spoiler_text: contentWarning,
visibility,
media_attachments,
media_attachments: attachmentFactory(
attachment1,
attachment2,
attachment3,
),
reblogged: hasReblogged,
favourited: hasFavourited,
bookmarked: hasBookmarked,
@@ -247,10 +149,12 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
}),
};
}, [
attachments,
text,
contentWarning,
visibility,
attachment1,
attachment2,
attachment3,
hasReblogged,
hasFavourited,
hasBookmarked,
@@ -367,27 +271,17 @@ const meta = {
isPoll: categoryContents,
isQuote: categoryContents,
text: categoryContents,
attachments: {
attachment1: {
...categoryContents,
control: 'select',
options: [
'One image',
'Two images',
'Three images',
'Video',
'Audio',
'GIF',
'Other',
],
mapping: {
'One image': 'image-1',
'Two images': 'image-2',
'Three images': 'image-3',
Video: 'video',
Audio: 'audio',
GIF: 'gifv',
Other: 'unknown',
} satisfies Record<string, AttachmentTypes>,
...attachmentArgTypes.attachment1,
},
attachment2: {
...categoryContents,
...attachmentArgTypes.attachment2,
},
attachment3: {
...categoryContents,
...attachmentArgTypes.attachment3,
},
contentWarning: categoryContents,
@@ -445,7 +339,9 @@ const meta = {
isPoll: false,
isQuote: false,
contentWarning: '',
attachments: undefined,
attachment1: undefined,
attachment2: undefined,
attachment3: undefined,
hasFavourited: false,
hasReblogged: false,
@@ -518,19 +414,21 @@ export const LongText: Story = {
export const Images: Story = {
args: {
attachments: 'image-3',
attachment1: 'image',
attachment2: 'image',
attachment3: 'image',
},
};
export const Video: Story = {
args: {
attachments: 'video',
attachment1: 'video',
},
};
export const Audio: Story = {
args: {
attachments: 'audio',
attachment1: 'audio',
},
};
@@ -0,0 +1,163 @@
import type { ArgTypes } from '@storybook/react-vite';
import type { MediaAttachmentType } from '@/flavours/glitch/api_types/media_attachments';
import { mediaAttachmentFactoryAPI } from '@/testing/factories';
export type MainAttachmentType = MediaAttachmentType | 'collection' | 'card';
export type ExtraAttachmentType = Exclude<
MediaAttachmentType,
'video' | 'audio'
>;
export interface AttachmentArgs {
attachment1?: MainAttachmentType;
attachment2?: ExtraAttachmentType;
attachment3?: ExtraAttachmentType;
}
export const attachmentArgTypes = {
attachment1: {
control: 'select',
options: [
'image',
'gifv',
'video',
'unknown',
'audio',
'collection',
'card',
] satisfies MainAttachmentType[],
},
attachment2: {
control: 'select',
options: ['image', 'gifv', 'unknown'] satisfies ExtraAttachmentType[],
},
attachment3: {
control: 'select',
options: ['image', 'gifv', 'unknown'] satisfies ExtraAttachmentType[],
},
} as const satisfies ArgTypes<AttachmentArgs>;
export function attachmentFactory(
attachment1?: MainAttachmentType,
attachment2?: ExtraAttachmentType,
attachment3?: ExtraAttachmentType,
) {
if (!attachment1 || attachment1 === 'card' || attachment1 === 'collection') {
return [];
}
const attachments = [mainMediaAttachmentFactory(attachment1)];
if (attachment2) {
attachments.push(extraAttachmentFactory(attachment2, '2'));
}
if (attachment3) {
attachments.push(extraAttachmentFactory(attachment3, '3'));
}
return attachments;
}
export function mainMediaAttachmentFactory(type: MediaAttachmentType) {
if (type === 'video') {
return mediaAttachmentFactoryAPI({
type: 'video',
url: 'https://www.pexels.com/download/video/11760787/',
preview_url:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
meta: {
original: {
width: 2160,
height: 4096,
},
},
});
}
if (type === 'audio') {
return mediaAttachmentFactoryAPI({
type: 'audio',
url: 'https://upload.wikimedia.org/wikipedia/commons/4/40/Elephant_voice_-_trumpeting.ogg',
preview_url:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
});
}
return extraAttachmentFactory(type, '1');
}
type MediaData = Record<
'1' | '2' | '3',
{ url: string; width: number; height: number }
>;
const imageIdToData = {
'1': {
url: 'https://cataas.com/cat/bYBTjiFUqjUPIBUD',
width: 1280,
height: 964,
},
'2': {
url: 'https://cataas.com/cat/YFaQ4xWYoWURSz37',
width: 964,
height: 1280,
},
'3': {
url: 'https://cataas.com/cat/EbVq9zMc4Xxv7s73',
width: 960,
height: 1280,
},
} satisfies MediaData;
const gifIdToData = {
'1': {
url: 'https://www.pexels.com/download/video/11760787/',
width: 2160,
height: 4096,
},
'2': {
url: 'https://www.pexels.com/download/video/19787248/',
width: 3840,
height: 2160,
},
'3': {
url: 'https://www.pexels.com/download/video/37411294/',
width: 3840,
height: 2160,
},
} satisfies MediaData;
export function extraAttachmentFactory(
type: ExtraAttachmentType,
id: '1' | '2' | '3',
) {
const metaData = type === 'image' ? imageIdToData[id] : gifIdToData[id];
switch (type) {
case 'image':
return mediaAttachmentFactoryAPI({
id,
type: 'image',
url: metaData.url,
meta: {
original: {
width: metaData.width,
height: metaData.height,
size: `${metaData.width}x${metaData.height}`,
aspect: metaData.width / metaData.height,
},
},
});
case 'gifv':
return mediaAttachmentFactoryAPI({
id,
type: 'gifv',
url: metaData.url,
meta: {
original: {
width: metaData.width,
height: metaData.height,
},
},
});
case 'unknown':
return mediaAttachmentFactoryAPI({ id, type: 'unknown' });
}
}
@@ -560,7 +560,8 @@ export const Search: React.FC<{
<input
ref={searchInputRef}
className='search__input'
type='search'
type='text'
inputMode='search'
placeholder={intl.formatMessage(
signedIn ? messages.placeholderSignedIn : messages.placeholder,
)}
@@ -30,7 +30,7 @@ export const selectAccountStatus = createAppSelector(
[
selectPlainStatus,
(state, statusId: string) => {
const accountId = state.statuses.getIn(statusId, 'account');
const accountId = state.statuses.getIn([statusId, 'account']);
if (typeof accountId !== 'string') {
return null;
}
@@ -52,7 +52,7 @@ export const selectExpandedStatus = createAppSelector(
[
selectAccountStatus,
(state, statusId: string) => {
const reblogId = state.statuses.getIn(statusId, 'reblog');
const reblogId = state.statuses.getIn([statusId, 'reblog']);
if (typeof reblogId !== 'string') {
return null;
}
@@ -30,7 +30,7 @@ export const SpoilerButton: React.FC<Props> = ({
action = (
<FormattedMessage id='status.media.open' defaultMessage='Click to open' />
);
} else if (matchedFilters) {
} else if (matchedFilters?.length) {
warning = (
<FormattedMessage
id='filter_warning.matches_filter'
@@ -80,7 +80,7 @@ export const SpoilerButton: React.FC<Props> = ({
disabled={uncached}
>
<span className='spoiler-button__overlay__label'>
{warning}
<span className='spoiler-button__overlay__text'>{warning}</span>
<span className='spoiler-button__overlay__action'>{action}</span>
</span>
</button>
@@ -0,0 +1,190 @@
import { List, Map } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import {
accountFactoryImmutable,
cardFactoryAPI,
collectionFactoryAPI,
statusFactoryAPI,
statusFactoryImmutable,
statusQuotedFactoryAPI,
} from '@/testing/factories';
import { StatusAttachments } from './attachments';
import type { AttachmentArgs } from './testing';
import { attachmentArgTypes, attachmentFactory } from './testing';
interface StatusAttachmentsStoryProps extends AttachmentArgs {
isFiltered: boolean;
isSensitive: boolean;
isPictureInPicture: boolean;
isQuote: boolean;
}
const meta = {
title: 'Components/Status/StatusAttachments',
render() {
return (
<div style={{ width: 'min(600px, 80vw)' }}>
<StatusAttachments statusId='1' contextType='home' />
</div>
);
},
args: {
attachment1: 'image',
attachment2: undefined,
attachment3: undefined,
isFiltered: false,
isSensitive: false,
isPictureInPicture: false,
isQuote: false,
},
argTypes: {
...attachmentArgTypes,
isFiltered: {
control: 'boolean',
},
isSensitive: {
control: 'boolean',
},
isPictureInPicture: {
control: 'boolean',
},
isQuote: {
control: 'boolean',
},
},
parameters: {
state: {
filters: {
'1': Map({
id: '1',
title: 'Test',
context: List(['home']),
expires_at: null,
filter_action: 'blur',
}),
},
accounts: {
'1': accountFactoryImmutable(),
},
server: {
translationLanguages: {
item: {
xx: ['en', 'de', 'fr'],
},
},
},
},
stateFn(args: StatusAttachmentsStoryProps) {
const status = statusFactoryAPI();
if (args.isFiltered) {
status.filtered = [
{
filter: {
id: '1',
title: 'Test',
context: 'home',
expires_at: '',
filter_action: 'warn',
},
keyword_matches: [],
status_matches: [],
},
];
}
if (args.isSensitive) {
status.sensitive = true;
}
if (args.isQuote) {
status.quote = {
state: 'accepted',
quoted_status: statusQuotedFactoryAPI({ id: '2' }),
};
}
if (args.attachment1 === 'card') {
status.card = cardFactoryAPI({
image:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
});
} else if (args.attachment1 === 'collection') {
status.tagged_collections = [collectionFactoryAPI()];
} else if (args.attachment1) {
status.media_attachments.push(
...attachmentFactory(
args.attachment1,
args.attachment2,
args.attachment3,
),
);
}
return {
statuses: {
'1': statusFactoryImmutable(status),
},
picture_in_picture: args.isPictureInPicture
? {
statusId: '1',
accountId: '1',
type: args.attachment1 === 'audio' ? 'audio' : 'video',
}
: undefined,
};
},
},
} as Meta<StatusAttachmentsStoryProps>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Image: Story = {};
export const Video: Story = {
args: {
attachment1: 'video',
},
};
export const Audio: Story = {
args: {
attachment1: 'audio',
},
};
export const Card: Story = {
args: {
attachment1: 'card',
},
};
export const Collection: Story = {
args: {
attachment1: 'collection',
},
};
export const Sensitive: Story = {
args: {
isSensitive: true,
},
};
export const Filtered: Story = {
args: {
isFiltered: true,
},
};
export const PictureInPicture: Story = {
args: {
attachment1: 'video',
isPictureInPicture: true,
},
};
@@ -120,13 +120,12 @@ const MediaAttachments: React.FC<{
const description =
attachment.translation?.description ?? attachment.description;
const immutableAttachments = useAppSelector(
(state) =>
state.statuses.getIn(
statusId,
'media_attachments',
) as Immutable.List<MediaAttachment>,
);
const immutableAttachments = useAppSelector((state) => {
return state.statuses.getIn([
statusId,
'media_attachments',
]) as Immutable.List<MediaAttachment>;
});
const mediaFilters = useAppSelector((state) =>
selectMediaMatchFilters(state, { statusId, contextType }),
);
@@ -6,16 +6,16 @@ import { Map as ImmutableMap } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import { fn } from 'storybook/test';
import type { ApiMediaAttachmentJSON } from '@/mastodon/api_types/media_attachments';
import type { StatusVisibility } from '@/mastodon/api_types/statuses';
import {
accountFactoryImmutable,
mediaAttachmentFactoryAPI,
pollFactoryImmutable,
statusFactoryAPI,
statusFactoryImmutable,
} from '@/testing/factories';
import type { AttachmentArgs } from './testing';
import { attachmentArgTypes, attachmentFactory } from './testing';
import { TypedStatus } from './types';
type ContextTypes =
@@ -29,16 +29,7 @@ type ContextTypes =
| 'search'
| 'thread';
type AttachmentTypes =
| 'image-1'
| 'image-2'
| 'image-3'
| 'video'
| 'audio'
| 'gifv'
| 'unknown';
interface StatusStoryProps {
interface StatusStoryProps extends AttachmentArgs {
// Contents
text: string;
visibility: StatusVisibility;
@@ -46,7 +37,6 @@ interface StatusStoryProps {
isReply?: boolean;
isPoll?: boolean;
isQuote?: boolean;
attachments?: AttachmentTypes;
contentWarning?: string;
// Interactions
@@ -84,7 +74,9 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
isReply,
isPoll,
isQuote,
attachments,
attachment1,
attachment2,
attachment3,
contentWarning,
hasFavourited,
@@ -108,107 +100,17 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
const { account, status } = useMemo(() => {
const account = accountFactoryImmutable();
const media_attachments: ApiMediaAttachmentJSON[] = [];
switch (attachments) {
// Use fall through add attachments depending on count.
case 'image-3':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '2',
url: 'https://cataas.com/cat/EbVq9zMc4Xxv7s73',
meta: {
original: {
width: 960,
height: 1280,
size: '960x1280',
aspect: 0.75,
},
},
}),
);
// eslint-disable-next-line no-fallthrough
case 'image-2':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '3',
url: 'https://cataas.com/cat/YFaQ4xWYoWURSz37',
meta: {
original: {
width: 964,
height: 1280,
size: '964x1280',
aspect: 0.753125,
},
},
}),
);
// eslint-disable-next-line no-fallthrough
case 'image-1':
media_attachments.push(
mediaAttachmentFactoryAPI({
id: '4',
url: 'https://cataas.com/cat/bYBTjiFUqjUPIBUD',
meta: {
original: {
width: 1280,
height: 964,
size: '1280x964',
aspect: 1.32780083,
},
},
}),
);
break;
case 'video':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'video',
url: 'https://www.pexels.com/download/video/11760787/',
meta: {
original: {
width: 2160,
height: 4096,
},
},
}),
);
break;
case 'audio':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'audio',
url: 'https://upload.wikimedia.org/wikipedia/commons/4/40/Elephant_voice_-_trumpeting.ogg',
}),
);
break;
case 'gifv':
media_attachments.push(
mediaAttachmentFactoryAPI({
type: 'gifv',
url: 'https://www.pexels.com/download/video/11760787/',
meta: {
original: {
width: 2160,
height: 4096,
},
},
}),
);
break;
case 'unknown':
media_attachments.push(
mediaAttachmentFactoryAPI({ type: attachments }),
);
break;
}
return {
account,
status: statusFactoryImmutable({
text,
spoiler_text: contentWarning,
visibility,
media_attachments,
media_attachments: attachmentFactory(
attachment1,
attachment2,
attachment3,
),
reblogged: hasReblogged,
favourited: hasFavourited,
bookmarked: hasBookmarked,
@@ -247,10 +149,12 @@ const StatusStoryComponent: FC<StatusStoryProps> = (props) => {
}),
};
}, [
attachments,
text,
contentWarning,
visibility,
attachment1,
attachment2,
attachment3,
hasReblogged,
hasFavourited,
hasBookmarked,
@@ -367,27 +271,17 @@ const meta = {
isPoll: categoryContents,
isQuote: categoryContents,
text: categoryContents,
attachments: {
attachment1: {
...categoryContents,
control: 'select',
options: [
'One image',
'Two images',
'Three images',
'Video',
'Audio',
'GIF',
'Other',
],
mapping: {
'One image': 'image-1',
'Two images': 'image-2',
'Three images': 'image-3',
Video: 'video',
Audio: 'audio',
GIF: 'gifv',
Other: 'unknown',
} satisfies Record<string, AttachmentTypes>,
...attachmentArgTypes.attachment1,
},
attachment2: {
...categoryContents,
...attachmentArgTypes.attachment2,
},
attachment3: {
...categoryContents,
...attachmentArgTypes.attachment3,
},
contentWarning: categoryContents,
@@ -445,7 +339,9 @@ const meta = {
isPoll: false,
isQuote: false,
contentWarning: '',
attachments: undefined,
attachment1: undefined,
attachment2: undefined,
attachment3: undefined,
hasFavourited: false,
hasReblogged: false,
@@ -518,19 +414,21 @@ export const LongText: Story = {
export const Images: Story = {
args: {
attachments: 'image-3',
attachment1: 'image',
attachment2: 'image',
attachment3: 'image',
},
};
export const Video: Story = {
args: {
attachments: 'video',
attachment1: 'video',
},
};
export const Audio: Story = {
args: {
attachments: 'audio',
attachment1: 'audio',
},
};
@@ -0,0 +1,163 @@
import type { ArgTypes } from '@storybook/react-vite';
import type { MediaAttachmentType } from '@/mastodon/api_types/media_attachments';
import { mediaAttachmentFactoryAPI } from '@/testing/factories';
export type MainAttachmentType = MediaAttachmentType | 'collection' | 'card';
export type ExtraAttachmentType = Exclude<
MediaAttachmentType,
'video' | 'audio'
>;
export interface AttachmentArgs {
attachment1?: MainAttachmentType;
attachment2?: ExtraAttachmentType;
attachment3?: ExtraAttachmentType;
}
export const attachmentArgTypes = {
attachment1: {
control: 'select',
options: [
'image',
'gifv',
'video',
'unknown',
'audio',
'collection',
'card',
] satisfies MainAttachmentType[],
},
attachment2: {
control: 'select',
options: ['image', 'gifv', 'unknown'] satisfies ExtraAttachmentType[],
},
attachment3: {
control: 'select',
options: ['image', 'gifv', 'unknown'] satisfies ExtraAttachmentType[],
},
} as const satisfies ArgTypes<AttachmentArgs>;
export function attachmentFactory(
attachment1?: MainAttachmentType,
attachment2?: ExtraAttachmentType,
attachment3?: ExtraAttachmentType,
) {
if (!attachment1 || attachment1 === 'card' || attachment1 === 'collection') {
return [];
}
const attachments = [mainMediaAttachmentFactory(attachment1)];
if (attachment2) {
attachments.push(extraAttachmentFactory(attachment2, '2'));
}
if (attachment3) {
attachments.push(extraAttachmentFactory(attachment3, '3'));
}
return attachments;
}
export function mainMediaAttachmentFactory(type: MediaAttachmentType) {
if (type === 'video') {
return mediaAttachmentFactoryAPI({
type: 'video',
url: 'https://www.pexels.com/download/video/11760787/',
preview_url:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
meta: {
original: {
width: 2160,
height: 4096,
},
},
});
}
if (type === 'audio') {
return mediaAttachmentFactoryAPI({
type: 'audio',
url: 'https://upload.wikimedia.org/wikipedia/commons/4/40/Elephant_voice_-_trumpeting.ogg',
preview_url:
'https://images.pexels.com/photos/16859306/pexels-photo-16859306.jpeg',
});
}
return extraAttachmentFactory(type, '1');
}
type MediaData = Record<
'1' | '2' | '3',
{ url: string; width: number; height: number }
>;
const imageIdToData = {
'1': {
url: 'https://cataas.com/cat/bYBTjiFUqjUPIBUD',
width: 1280,
height: 964,
},
'2': {
url: 'https://cataas.com/cat/YFaQ4xWYoWURSz37',
width: 964,
height: 1280,
},
'3': {
url: 'https://cataas.com/cat/EbVq9zMc4Xxv7s73',
width: 960,
height: 1280,
},
} satisfies MediaData;
const gifIdToData = {
'1': {
url: 'https://www.pexels.com/download/video/11760787/',
width: 2160,
height: 4096,
},
'2': {
url: 'https://www.pexels.com/download/video/19787248/',
width: 3840,
height: 2160,
},
'3': {
url: 'https://www.pexels.com/download/video/37411294/',
width: 3840,
height: 2160,
},
} satisfies MediaData;
export function extraAttachmentFactory(
type: ExtraAttachmentType,
id: '1' | '2' | '3',
) {
const metaData = type === 'image' ? imageIdToData[id] : gifIdToData[id];
switch (type) {
case 'image':
return mediaAttachmentFactoryAPI({
id,
type: 'image',
url: metaData.url,
meta: {
original: {
width: metaData.width,
height: metaData.height,
size: `${metaData.width}x${metaData.height}`,
aspect: metaData.width / metaData.height,
},
},
});
case 'gifv':
return mediaAttachmentFactoryAPI({
id,
type: 'gifv',
url: metaData.url,
meta: {
original: {
width: metaData.width,
height: metaData.height,
},
},
});
case 'unknown':
return mediaAttachmentFactoryAPI({ id, type: 'unknown' });
}
}
@@ -1,11 +1,9 @@
import { Map as ImmutableMap } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import type { ApiQuoteJSON } from '@/mastodon/api_types/quotes';
import {
accountFactoryImmutable,
statusFactoryImmutable,
statusQuotedFactoryAPI,
} from '@/testing/factories';
import type { StatusQuoteManagerProps } from './status_quoted';
@@ -31,10 +29,10 @@ const meta = {
id: '2',
language: 'en',
text: 'Quote!',
quote: ImmutableMap({
quote: {
state: 'accepted',
quoted_status: '1',
}) as unknown as ApiQuoteJSON,
quoted_status: statusQuotedFactoryAPI({ id: '1' }),
},
}),
'1001': statusFactoryImmutable({
id: '1001',
@@ -53,10 +51,10 @@ const meta = {
language: 'mn-Mong',
// meaning: Mongolia
text: 'ᠮᠤᠩᠭᠤᠯ',
quote: ImmutableMap({
quote: {
state: 'accepted',
quoted_status: '1002',
}) as unknown as ApiQuoteJSON,
quoted_status: statusQuotedFactoryAPI({ id: '1002' }),
},
}),
},
},
@@ -560,7 +560,8 @@ export const Search: React.FC<{
<input
ref={searchInputRef}
className='search__input'
type='search'
type='text'
inputMode='search'
placeholder={intl.formatMessage(
signedIn ? messages.placeholderSignedIn : messages.placeholder,
)}
+172
View File
@@ -199,6 +199,7 @@
"account_edit.field_reorder_modal.handle_label": "Přetáhněte pole \"{item}\"",
"account_edit.field_reorder_modal.title": "Přeuspořádat pole",
"account_edit.image_alt_modal.add_title": "Přidat alternativní text",
"account_edit.image_alt_modal.details_content": "CO DĚLAT: <ul> <li>Popište se, jak jste na obrázku</li> <li>Vyjádřete se ve třetí osobě (např. \"Alex“ místo \"já\")</li> <li>Buďte struční – pár slov stačí</li> </ul> CO NEDĚLAT: <ul> <li>Začínat s \"Fotka toho a toho\" – pro čtečky obrazovek je to nadbytečné</li> </ul> PŘÍKLAD: <ul> <li>\"Alex oblečený v zelené košili a s brýlemi\"</li> </ul>",
"account_edit.image_alt_modal.details_title": "Tipy: Alt text pro profilové fotky",
"account_edit.image_alt_modal.edit_title": "Upravit alt text",
"account_edit.image_alt_modal.text_hint": "Alt text pomáhá uživatelům používajícím čtečku obrazovky porozumět vašemu obsahu.",
@@ -216,6 +217,18 @@
"account_edit.name_modal.add_title": "Přidat zobrazované jméno",
"account_edit.name_modal.edit_title": "Upravit zobrazované jméno",
"account_edit.profile_tab.button_label": "Přizpůsobit",
"account_edit.profile_tab.hint.description": "Tato nastavení upravují to, co uživatelé vidí na {server} v oficiálních aplikacích, ale nemusí se vztahovat na uživatele na jiných serverech a aplikacích třetích stran.",
"account_edit.profile_tab.hint.title": "Zobrazení se může lišit",
"account_edit.profile_tab.show_featured.description": "'Zvýrazněné' je volitelná záložka, kde můžete prezentovat jiné účty.",
"account_edit.profile_tab.show_featured.title": "Zobrazit záložku 'Zvýrazněné'",
"account_edit.profile_tab.show_media.description": "'Média' je volitelná záložka, kde se zobrazují vaše příspěvky, které obsahují obrázky či videa.",
"account_edit.profile_tab.show_media.title": "Zobrazit záložku 'Média'",
"account_edit.profile_tab.show_media_replies.description": "Je-li povoleno, zobrazují se na záložce Média vaše příspěvky a odpovědi na příspěvky ostatních.",
"account_edit.profile_tab.show_media_replies.title": "Zahrnout odpovědi na záložce 'Média'",
"account_edit.profile_tab.show_relations.description": "Zobrazí na vašem profilu účty, které sledujete a které sledují vás ostatním uživatelům, ostatním uživatelům. Lidé budou stále moci vidět, zda je sledujete.",
"account_edit.profile_tab.show_relations.title": "Zobrazit 'Sledující' a 'Sledované'",
"account_edit.profile_tab.subtitle": "Přizpůsobte si, jak je váš profil zobrazen.",
"account_edit.profile_tab.title": "Nastavení zobrazení profilu",
"account_edit.save": "Uložit",
"account_edit.upload_modal.back": "Zpět",
"account_edit.upload_modal.done": "Hotovo",
@@ -230,6 +243,21 @@
"account_edit.upload_modal.title_replace.avatar": "Nahradit profilovou fotku",
"account_edit.upload_modal.title_replace.header": "Nahradit úvodní fotku",
"account_edit.verified_modal.details": "Přidejte důvěryhodnost svého profilu Mastodon ověřenými odkazy na osobní webové stránky. Jak to funguje:",
"account_edit.verified_modal.invisible_link.details": "Přidejte odkaz do hlavičky. Důležitá část je rel=\"me\", která zabraňuje zneužití identity na webových stránkách s uživatelsky generovaným obsahem. Místo {tag} můžete v hlavičce stránky použít dokonce i tag link, ale HTML kód musí být přístupný i bez spuštění JavaScriptu.",
"account_edit.verified_modal.invisible_link.summary": "Jak zneviditelním odkaz?",
"account_edit.verified_modal.step1.header": "Zkopírujte HTML kód níže a vložte do hlavičky vašeho webu",
"account_edit.verified_modal.step2.details": "Pokud jste již v uživatelském poli měli svůj web přidaný, budete jej muset smazat a přidat znova, aby se spustila verifikace.",
"account_edit.verified_modal.step2.header": "Přidejte svou webovou stránku jako uživatelské pole",
"account_edit.verified_modal.title": "Jak přidat ověřený odkaz",
"account_edit_tags.add_tag": "Přidat #{tagName}",
"account_edit_tags.column_title": "Upravit štítky",
"account_edit_tags.help_text": "Doporučené hashtagy pomáhají uživatelům objevovat a interagovat s vaším profilem. V pohledu Aktivita na vaší profilové stránce se zobrazí jako filtry.",
"account_edit_tags.max_tags_reached": "Dosáhli jste maximálního počtu doporučených hashtagů.",
"account_edit_tags.search_placeholder": "Zadejte hashtag…",
"account_edit_tags.suggestions": "Návrhy:",
"account_edit_tags.tag_status_count": "{count, plural, one {# příspěvek} few {# příspěvky} many {# příspěvků} other {# příspěvků}}",
"account_list.hidden_notice": "Toto vidíte pouze vy. Pro zobrazení seznamů ostatním, pokračujte na <link>{page} > {modal} > {field}</link>.",
"account_list.total": "{total, plural, one {# minuta} few {# minuty} many {# minut} other {# minut}}",
"admin.dashboard.daily_retention": "Míra udržení uživatelů podle dne po registraci",
"admin.dashboard.monthly_retention": "Míra udržení uživatelů podle měsíce po registraci",
"admin.dashboard.retention.average": "Průměr",
@@ -239,6 +267,7 @@
"admin.impact_report.instance_followers": "Sledující, o které by naši uživatelé přišli",
"admin.impact_report.instance_follows": "Sledující, o které by jejich uživatelé přišli",
"admin.impact_report.title": "Shrnutí dopadu",
"alert.need_reload.message": "Mastodon byl aktualizován. Některé věci nemusí fungovat, dokud nenačtete stránku znovu.",
"alert.rate_limited.message": "Zkuste to prosím znovu po {retry_time, time, medium}.",
"alert.rate_limited.title": "Spojení omezena",
"alert.unexpected.message": "Objevila se neočekávaná chyba.",
@@ -300,11 +329,15 @@
"annual_report.summary.share_on_mastodon": "Sdílet na Mastodonu",
"attachments_list.unprocessed": "(nezpracováno)",
"audio.hide": "Skrýt zvuk",
"block_modal.no_collections": "Nemůžete se vzájemně přidávat do kolekcí. Pokud to bude možné, budete automaticky z existujících sbírek druhého odstraněn.",
"block_modal.remote_users_caveat": "Požádáme server {domain}, aby respektoval vaše rozhodnutí. Úplné dodržování nastavení však není zaručeno, protože některé servery mohou řešit blokování různě. Veřejné příspěvky mohou být stále viditelné pro nepřihlášené uživatele.",
"block_modal.show_less": "Zobrazit méně",
"block_modal.show_more": "Zobrazit více",
"block_modal.they_cant_mention": "Nemůžete se zmínit, sledovat, ani vzájemně citovat.",
"block_modal.they_cant_see_posts": "Nemůže vidět váš příspěvek a vy neuvidíte jeho/její.",
"block_modal.they_will_know": "Může vidět, že je zablokovaný.",
"block_modal.title": "Zablokovat uživatele?",
"block_modal.you_wont_see_mentions": "Neuvidíte příspěvky ostatních, které ho/ji zmiňují.",
"boost_modal.combo": "Příště můžete pro přeskočení stisknout {combo}",
"boost_modal.reblog": "Boostnout příspěvek?",
"boost_modal.undo_reblog": "Zrušit boostování příspěvku?",
@@ -323,34 +356,97 @@
"callout.dismiss": "Zamítnout",
"carousel.current": "<sr>Snímek</sr> {current, number}/{max, number}",
"carousel.slide": "Snímek {current, number} z {max, number}",
"character_counter.recommended": "{currentLength}/{maxLength} doporučených znaků",
"character_counter.required": "{currentLength}/{maxLength} znaků",
"closed_registrations.other_server_instructions": "Protože Mastodon je decentralizovaný, můžete si vytvořit účet na jiném serveru a přesto komunikovat s tímto serverem.",
"closed_registrations_modal.description": "V současné době není možné vytvořit účet na {domain}, ale mějte prosím na paměti, že k používání Mastodonu nepotřebujete účet konkrétně na {domain}.",
"closed_registrations_modal.find_another_server": "Najít jiný server",
"closed_registrations_modal.preamble": "Mastodon je decentralizovaný, takže bez ohledu na to, kde vytvoříte svůj účet, budete moci sledovat a komunikovat s kýmkoli na tomto serveru. Můžete ho dokonce hostovat!",
"closed_registrations_modal.title": "Registrace na Mastodon",
"collection.share_modal.share_link_label": "Sdílet odkaz",
"collection.share_modal.share_via_post": "Příspěvek na Mastodon",
"collection.share_modal.share_via_system": "Sdílet na…",
"collection.share_modal.title": "Sdílet sbírku",
"collection.share_modal.title_new": "Sdílejte svou novou sbírku!",
"collection.share_template_other": "Podívejte se na tuto skvělou sbírku:",
"collection.share_template_own": "Podívejte se na mou novou sbírku:",
"collections.account_count": "{count, plural, one {# účet} few {# účty} many {# účtů} other {# účtů}}",
"collections.accounts.empty_description": "Přidat nejvýše {count} účtů",
"collections.accounts.empty_editor_title": "Ve sbírce zatím nikdo není",
"collections.accounts.empty_title": "Tato sbírka je prázdná",
"collections.add_to_collection": "Přidat {name} do sbírek",
"collections.block_collection_owner": "Blokovat účet",
"collections.by_account": "od {account_handle}",
"collections.collection_description": "Popis",
"collections.collection_language": "Jazyk",
"collections.collection_language_none": "Žádný",
"collections.collection_name": "Název",
"collections.collection_topic": "Téma",
"collections.confirm_account_removal": "Jste si jisti, že chcete odstranit tento účet z této sbírky?",
"collections.content_warning": "Varování o obsahu",
"collections.continue": "Pokračovat",
"collections.copy_link": "Zkopírovat odkaz",
"collections.copy_link_confirmation": "Odkaz na sbírku zkopírován do schránky",
"collections.create.accounts_title": "Koho ve sbírce zvýrazníte?",
"collections.create.basic_details_title": "Základní údaje",
"collections.create.steps": "Krok {step}/{total}",
"collections.create_collection": "Vytvořit sbírku",
"collections.delete_collection": "Smazat sbírku",
"collections.description_length_hint": "Nejvýše 100 znaků",
"collections.detail.author_added_you_on_date": "{author} tě přidal dne {date}",
"collections.detail.loading": "Načítání sbírky…",
"collections.detail.revoke_inclusion": "Odebrat mě",
"collections.detail.sensitive_content": "Citlivý obsah",
"collections.detail.sensitive_note": "Popis a účty nemusí být vhodné pro některé vhodné.",
"collections.detail.share": "Sdílet tuto sbírku",
"collections.detail.you_are_in_this_collection": "Jste v této sbírce zvýrazněn/á",
"collections.edit_details": "Upravit podrobnosti",
"collections.error_loading_collections": "Při pokusu o načtení těchto sbírek došlo k chybě.",
"collections.hidden_accounts_description": "Zablokovali jste nebo umlčeli {count, plural, one {tohoto uživatele} few {tyto uživatele} many {tyto uživatele} other {tyto uživatele}}",
"collections.hidden_accounts_link": "{count, plural, one {# skrytý účet} few {# skryté účty} many {# skrytých účtů} other {# skrytých účtů}}",
"collections.hints.accounts_counter": "{count}/{max} účtů",
"collections.last_updated_at": "Naposledy aktualizováno: {date}",
"collections.list.collections_with_count": "{count, plural, one {Sbírka} few {Sbírky} many {Sbírek} other {Sbírek}}",
"collections.list.created_by_author": "Vytvořil/a {name}",
"collections.list.created_by_you": "Vytvořeno vámi",
"collections.list.featuring_you": "Obsahuje vás",
"collections.manage_accounts": "Spravovat účty",
"collections.mark_as_sensitive": "Označit jako citlivé",
"collections.mark_as_sensitive_hint": "Skryje popis kolekce a účty za varováním obsahu. Název kolekce bude stále viditelný.",
"collections.maximum_collection_count_description": "Váš server umožňuje vytvořit až {count} sbírek.",
"collections.maximum_collection_count_reached": "Dosáhl/a jste maximálního počtu sbírek",
"collections.name_length_hint": "Limit 40 znaků",
"collections.new_collection": "Nová sbírka",
"collections.pending_accounts.message": "Účty se mohou zobrazovat jako nevyřízené během čekání na odpověď od uživatele nebo jeho/jejího serveru. Pouze vy můžete vidět nevyřízené účty.",
"collections.pending_accounts.title": "Proč vidím nevyřízené účty?",
"collections.remove_account": "Odebrat",
"collections.report_collection": "Nahlásit tuto sbírku",
"collections.revoke_collection_inclusion": "Odstranit sebe z této sbírky",
"collections.revoke_inclusion.confirmation": "Byl/a jsi odstraněn z \"{collection}\"",
"collections.revoke_inclusion.error": "Došlo k chybě, zkuste to znovu později.",
"collections.search_accounts_label": "Hledat účty pro přidání",
"collections.search_accounts_max_reached": "Přidali jste maximální počet účtů",
"collections.sensitive": "Citlivé",
"collections.share_short": "Sdílet",
"collections.sort_alphabetical": "Abecedně",
"collections.sort_by": "Seřadit podle:",
"collections.sort_date_added": "Data přidání",
"collections.sort_last_active": "Poslední aktivity",
"collections.sort_most_followers": "Nejvíce sledujících",
"collections.suggestions.can_not_add": "Nelze přidat",
"collections.suggestions.can_not_add_desc": "Tyto účty se možná odhlásily z možnosti objevování a nebo jsou na serveru, které nepodporují sbírky.",
"collections.suggestions.must_follow": "Je třeba nejprve sledovat",
"collections.suggestions.must_follow_desc": "Tyto účty kontrolují všechny žádosti o sledování. Sledující je mohou přidat do sbírek.",
"collections.topic_hint": "Přidat štítek, který pomůže ostatním pochopit hlavní téma této kolekce.",
"collections.topic_special_chars_hint": "Speciální znaky budou při uložení odstraněny",
"collections.unlisted_collections_description": "Tyto se na vašem profilu ostatním nezobrazují. Kdokoliv s odkazem je může objevit.",
"collections.unlisted_collections_with_count": "Nezařazené sbírky ({count})",
"collections.view_collection": "Zobrazit sbírku",
"collections.visibility_public": "Veřejné",
"collections.visibility_public_hint": "Objevitelné ve výsledcích vyhledávání a dalších místech, kde se objevují doporučení.",
"collections.visibility_title": "Viditelnost",
"collections.visibility_unlisted": "Neveřejný",
"collections.visibility_unlisted_hint": "Viditelné všem s odkazem. Skryté ve výsledcích vyhledávání a doporučeních.",
"column.about": "O aplikaci",
"column.blocks": "Blokovaní uživatelé",
"column.bookmarks": "Záložky",
@@ -370,8 +466,10 @@
"column.lists": "Seznamy",
"column.mutes": "Skrytí uživatelé",
"column.notifications": "Oznámení",
"column.other_collections": "Sbírky od {name}",
"column.pins": "Připnuté příspěvky",
"column.public": "Federovaná časová osa",
"column.your_collections": "Vaše Sbírky",
"column_back_button.label": "Zpět",
"column_header.hide_settings": "Skrýt nastavení",
"column_header.moveLeft_settings": "Posunout sloupec doleva",
@@ -384,6 +482,7 @@
"combobox.loading": "Načítání",
"combobox.no_results_found": "Žádné výsledky pro toto vyhledávání",
"combobox.open_results": "Otevřít výsledky",
"combobox.results_available": "{count, plural, one {# doporučení} few {# doporučení} many {# doporučení} other {# doporučení}} k dispozici. Pro navigaci použijte šipky nahoru a dolů. Pro výběr stiskněte Enter.",
"community.column_settings.local_only": "Pouze místní",
"community.column_settings.media_only": "Pouze média",
"community.column_settings.remote_only": "Pouze vzdálené",
@@ -435,6 +534,10 @@
"confirmations.follow_to_list.confirm": "Sledovat a přidat do seznamu",
"confirmations.follow_to_list.message": "Musíte {name} sledovat, abyste je přidali do seznamu.",
"confirmations.follow_to_list.title": "Sledovat uživatele?",
"confirmations.hide_featured_tab.confirm": "Skrýt záložku",
"confirmations.hide_featured_tab.intro": "Toto lze kdykoliv změnit v <i>Upravit profil > Nastavení záložky profilu</i>.",
"confirmations.hide_featured_tab.message": "Toto skryje záložku uživatelům na {serverName} a ostatním serverům běžícím na poslední verzi Mastodonu. Ostatní zobrazení se mohou lišit.",
"confirmations.hide_featured_tab.title": "Skrýt záložku \"Zvýrazněné\"?",
"confirmations.logout.confirm": "Odhlásit se",
"confirmations.logout.message": "Opravdu se chcete odhlásit?",
"confirmations.logout.title": "Odhlásit se?",
@@ -458,6 +561,9 @@
"confirmations.remove_from_followers.confirm": "Odstranit sledujícího",
"confirmations.remove_from_followers.message": "{name} vás přestane sledovat. Jste si jisti, že chcete pokračovat?",
"confirmations.remove_from_followers.title": "Odstranit sledujícího?",
"confirmations.revoke_collection_inclusion.confirm": "Odebrat mě",
"confirmations.revoke_collection_inclusion.message": "Správce vás nebude moci přidat do této sbírky po dobu 24 hodin. Pokud chcete natrvalo zabránit, aby vás přidával/a do sbírek, můžete ho/ji zablokovat.",
"confirmations.revoke_collection_inclusion.title": "Odstranit se z této sbírky?",
"confirmations.revoke_quote.confirm": "Odstranit příspěvek",
"confirmations.revoke_quote.message": "Tuto akci nelze vrátit zpět.",
"confirmations.revoke_quote.title": "Odstranit příspěvek?",
@@ -470,13 +576,21 @@
"content_warning.hide": "Skrýt příspěvek",
"content_warning.show": "Přesto zobrazit",
"content_warning.show_more": "Zobrazit více",
"content_warning.show_short": "Zobrazit",
"conversation.delete": "Smazat konverzaci",
"conversation.mark_as_read": "Označit jako přečtené",
"conversation.open": "Zobrazit konverzaci",
"conversation.with": "S {names}",
"copy_icon_button.copied": "Zkopírováno do schránky",
"copy_icon_button.copy_this_text": "Zkopírovat odkaz do schránky",
"copypaste.copied": "Zkopírováno",
"copypaste.copy_to_clipboard": "Zkopírovat do schránky",
"custom_homepage.about": "O serveru",
"custom_homepage.about_this_server": "O tomto serveru",
"custom_homepage.administered_by": "Server spravuje",
"custom_homepage.contact": "Kontakt:",
"custom_homepage.latest_activity": "Poslední aktivita",
"custom_homepage.these_are_the_latest_posts": "Toto je posledních 40 příspěvků účtů z tohoto serveru.",
"directory.federated": "Ze známého fediversu",
"directory.local": "Pouze z {domain}",
"directory.new_arrivals": "Nově příchozí",
@@ -496,6 +610,14 @@
"domain_block_modal.you_will_lose_relationships": "Ztratíte všechny sledující a sledované z tohoto serveru.",
"domain_block_modal.you_wont_see_posts": "Neuvidíte příspěvky ani upozornění od uživatelů z tohoto serveru.",
"dropdown.empty": "Vyberte možnost",
"email_subscriptions.email": "E-mail",
"email_subscriptions.form.action": "Odebírat",
"email_subscriptions.form.bottom": "Dostávejte příspěvky do své schránky bez vytváření účtu na Mastodonu. Lze se kdykoliv odhlásit. Další informace naleznete v <a>Zásadách ochrany osobních údajů</a>.",
"email_subscriptions.form.title": "Přihlaste se k emailovým aktualizacím od {name}",
"email_subscriptions.submitted.lead": "Zkontrolujte doručenou poštu pro dokončení přihlášení k emailovým aktualizacím.",
"email_subscriptions.submitted.title": "Ještě jeden krok",
"email_subscriptions.validation.email.blocked": "Blokovaný poskytovatel emailu",
"email_subscriptions.validation.email.invalid": "Neplatná emailová adresa",
"embed.instructions": "Pro přidání příspěvku na vaši webovou stránku zkopírujte níže uvedený kód.",
"embed.preview": "Takhle to bude vypadat:",
"emoji_button.activity": "Aktivita",
@@ -513,12 +635,22 @@
"emoji_button.search_results": "Výsledky hledání",
"emoji_button.symbols": "Symboly",
"emoji_button.travel": "Cestování a místa",
"empty_column.account_featured.other": "{acct} zatím nic nezvýraznil/a.",
"empty_column.account_featured_self.no_collections_button": "Vytvořit sbírku",
"empty_column.account_featured_self.no_collections_hide_tab": "Raději tuto záložku skrýt",
"empty_column.account_featured_self.showcase_accounts": "Představte své oblíbené účty",
"empty_column.account_featured_self.showcase_accounts_desc": "Sbírky jsou spravované seznamy účtů, které pomáhají ostatním více objevovat Fediverse.",
"empty_column.account_featured_unknown.other": "Tento účet zatím nic nezvýraznil.",
"empty_column.account_hides_collections": "Tento uživatel se rozhodl tuto informaci nezveřejňovat",
"empty_column.account_suspended": "Účet je pozastaven",
"empty_column.account_timeline": "Nejsou tu žádné příspěvky!",
"empty_column.account_unavailable": "Profil není dostupný",
"empty_column.blocks": "Ještě jste nezablokovali žádného uživatele.",
"empty_column.bookmarked_statuses": "Zatím v záložkách nemáte žádné příspěvky. Až si do nich nějaký přidáte, zobrazí se zde.",
"empty_column.collections": "{acct} zatím nevytvořil/a žádné sbírky.",
"empty_column.collections.featured_in": "Zatím jste nebyl/a do žádné sbírky přidán/a.",
"empty_column.collections.featured_in_undiscoverable": "Aby vás mohli lidé přidat do sbírek, potřebujete povolit zvýrazňování ve vyhledávání pomocí <link>Předvolby > Soukromí a dosah</link>",
"empty_column.collections_self": "Zatím jste nevytvořil/a žádnou sbírku.",
"empty_column.community": "Místní časová osa je prázdná. Napište něco veřejně a rozhýbejte to tu!",
"empty_column.direct": "Zatím nemáte žádné soukromé zmínky. Až nějakou pošlete nebo dostanete, zobrazí se zde.",
"empty_column.disabled_feed": "Tento kanál byl zakázán administrátory vašeho serveru.",
@@ -552,6 +684,10 @@
"featured_carousel.header": "{count, plural, one {{counter} zvýrazněný příspěvek} few {{counter} zvýrazněné příspěvky} many {{counter} zvýrazněných příspěvků} other {{counter} zvýrazněných příspěvků}}",
"featured_carousel.slide": "Příspěvek {current, number} z {max, number}",
"featured_tags.more_items": "+{count}",
"featured_tags.suggestions": "Nedávno jste napsal/a příspěvek o {items}. Přidat toto do zvýrazněných hashtagů?",
"featured_tags.suggestions.add": "Přidat",
"featured_tags.suggestions.added": "Spravujte své zvýrazněné hashtagy kdykoliv na <link>Upravit profil > Zvýrazněné hashtagy</link>.",
"featured_tags.suggestions.dismiss": "Ne, děkuji",
"filter_modal.added.context_mismatch_explanation": "Tato kategorie filtrů se nevztahuje na kontext, ve kterém jste tento příspěvek otevřeli. Pokud chcete, aby byl příspěvek filtrován i v tomto kontextu, budete muset filtr upravit.",
"filter_modal.added.context_mismatch_title": "Kontext se neshoduje!",
"filter_modal.added.expired_explanation": "Tato kategorie filtrů vypršela, budete muset změnit datum vypršení platnosti, aby mohla být použita.",
@@ -594,6 +730,9 @@
"follow_suggestions.who_to_follow": "Koho sledovat",
"followed_tags": "Sledované hashtagy",
"followers.hide_other_followers": "Tento uživatel se rozhodl nezveřejnit své další sledující",
"followers.title": "Sledovat {name}",
"following.hide_other_following": "Tento uživatel se rozhodl nezveřejnit seznam ostatních uživatelů, které sleduje",
"following.title": "Sledován/a {name}",
"footer.about": "O aplikaci",
"footer.about_mastodon": "O Mastodonu",
"footer.about_server": "O {domain}",
@@ -605,6 +744,7 @@
"footer.source_code": "Zobrazit zdrojový kód",
"footer.status": "Stav",
"footer.terms_of_service": "Obchodní podmínky",
"form_error.blank": "Pole nemůže být prázdné.",
"form_field.optional": "(volitelné)",
"getting_started.heading": "Začínáme",
"hashtag.admin_moderation": "Otevřít moderátorské rozhraní pro #{name}",
@@ -642,6 +782,7 @@
"home.pending_critical_update.link": "Zobrazit aktualizace",
"home.pending_critical_update.title": "K dispozici je kritická bezpečnostní aktualizace!",
"home.show_announcements": "Zobrazit oznámení",
"ignore_notifications_modal.bots_title": "Ignorovat oznámení od botů?",
"ignore_notifications_modal.disclaimer": "Mastodon nemůže informovat uživatele, že jste ignorovali jejich oznámení. Ignorování oznámení nezabrání odesílání zpráv samotných.",
"ignore_notifications_modal.filter_instead": "Místo toho filtrovat",
"ignore_notifications_modal.filter_to_act_users": "Stále budete moci přijmout, odmítnout nebo nahlásit uživatele",
@@ -656,6 +797,7 @@
"info_button.label": "Nápověda",
"info_button.what_is_alt_text": "<h1>Co je to alt text?</h1> <p>Alt text poskytuje popis obrázků pro lidi se zrakovými postižením, špatným připojením něbo těm, kteří potřebují více kontextu.</p> <p>Můžete zlepšit přístupnost a porozumění napsáním jasného, stručného a objektivního alt textu.</p> <ul> <li>Zachyťte důležité prvky</li> <li>Shrňte text v obrázku</li> <li>Použijte pravidelnou větnou skladbu</li> <li>Vyhněte se nadbytečným informacím</li> <li>U komplexních vizualizací (diagramy, mapy...) se zaměřte na trendy a klíčová zjištění</li> </ul>",
"interaction_modal.action": "Chcete-li interagovat s příspěvkem {name}, budete se muset přihlásit do vašeho účtu na Mastodon serveru, který používáte.",
"interaction_modal.action_follow": "Chcete-li sledovat {name}, musíte se přihlásit svým účtem z jakéhokoliv Mastodon serveru.",
"interaction_modal.go": "Přejít",
"interaction_modal.no_account_yet": "Ještě nemáte účet?",
"interaction_modal.on_another_server": "Na jiném serveru",
@@ -674,12 +816,19 @@
"keyboard_shortcuts.direct": "Otevřít sloupec soukromých zmínek",
"keyboard_shortcuts.down": "Posunout v seznamu dolů",
"keyboard_shortcuts.enter": "Otevřít příspěvek",
"keyboard_shortcuts.explore": "Otevřít trendovou časovou osu",
"keyboard_shortcuts.favourite": "Oblíbit si příspěvek",
"keyboard_shortcuts.favourites": "Otevřít seznam oblíbených",
"keyboard_shortcuts.federated": "Otevřít federovanou časovou osu",
"keyboard_shortcuts.heading": "Klávesové zkratky",
"keyboard_shortcuts.home": "Otevřít domovskou časovou osu",
"keyboard_shortcuts.hotkey": "Klávesová zkratka",
"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": "Zobrazit tuto legendu",
"keyboard_shortcuts.load_more": "Zvýraznit tlačítko „Načíst více“",
"keyboard_shortcuts.local": "Otevřít místní časovou osu",
@@ -700,6 +849,7 @@
"keyboard_shortcuts.toggle_sensitivity": "Zobrazit/skrýt média",
"keyboard_shortcuts.toot": "Začít nový příspěvek",
"keyboard_shortcuts.top": "Přesunout na začátek seznamu",
"keyboard_shortcuts.translate": "Přeložit příspěvek",
"keyboard_shortcuts.unfocus": "Zrušit zaměření na nový příspěvek/hledání",
"keyboard_shortcuts.up": "Posunout v seznamu nahoru",
"learn_more_link.got_it": "Rozumím",
@@ -710,6 +860,7 @@
"lightbox.zoom_in": "Přiblížit na skutečnou velikost",
"lightbox.zoom_out": "Přizpůsobit velikost",
"limited_account_hint.action": "Přesto profil zobrazit",
"limited_account_hint.title": "Tento profil nebo server byl skryt moderátory {domain}.",
"link_preview.author": "Od {name}",
"link_preview.more_from_author": "Více od {name}",
"link_preview.shares": "{count, plural, one {{counter} příspěvek} few {{counter} příspěvky} many {{counter} příspěvků} other {{counter} příspěvků}}",
@@ -758,6 +909,7 @@
"navigation_bar.automated_deletion": "Automatické mazání příspěvků",
"navigation_bar.blocks": "Blokovaní uživatelé",
"navigation_bar.bookmarks": "Záložky",
"navigation_bar.collections": "Sbírky",
"navigation_bar.direct": "Soukromé zmínky",
"navigation_bar.domain_blocks": "Blokované domény",
"navigation_bar.favourites": "Oblíbené",
@@ -770,6 +922,7 @@
"navigation_bar.live_feed_local": "Živý kanál (místní)",
"navigation_bar.live_feed_public": "Živý kanál (veřejný)",
"navigation_bar.logout": "Odhlásit se",
"navigation_bar.main": "Hlavní menu",
"navigation_bar.moderation": "Moderace",
"navigation_bar.more": "Více",
"navigation_bar.mutes": "Skrytí uživatelé",
@@ -783,6 +936,7 @@
"navigation_panel.expand_followed_tags": "Rozbalit menu sledovaných hashtagů",
"navigation_panel.expand_lists": "Rozbalit menu",
"not_signed_in_indicator.not_signed_in": "Pro přístup k tomuto zdroji se musíte přihlásit.",
"notification.added_to_collection": "{name} vás přidal/a do sbírky",
"notification.admin.report": "Uživatel {name} nahlásil {target}",
"notification.admin.report_account": "{name} nahlásil {count, plural, one {jeden příspěvek} few {# příspěvky} many {# příspěvků} other {# příspěvků}} od {target} za {category}",
"notification.admin.report_account_other": "{name} nahlásil {count, plural, one {jeden příspěvek} few {# příspěvky} many {# příspěvků} other {# příspěvků}} od {target}",
@@ -792,6 +946,7 @@
"notification.admin.sign_up.name_and_others": "{name} a {count, plural, one {# další} few {# další} many {# dalších} other {# dalších}} se zaregistrovali",
"notification.annual_report.message": "Váš #Wrapstodon {year} na Vás čeká! Podívejte se, jak vypadal tento Váš rok na Mastodonu!",
"notification.annual_report.view": "Zobrazit #Wrapstodon",
"notification.collection_update": "{name} upravil sbírku, ve které se nacházíte",
"notification.favourite": "{name} si oblíbil váš příspěvek",
"notification.favourite.name_and_others_with_link": "{name} a {count, plural, one {<a># další</a> si oblíbil} few {<a># další</a> si oblíbili} other {<a># dalších</a> si oblíbilo}} Váš příspěvek",
"notification.favourite_pm": "{name} si oblíbil vaši soukromou zmínku",
@@ -853,6 +1008,7 @@
"notifications.column_settings.admin.report": "Nová hlášení:",
"notifications.column_settings.admin.sign_up": "Nové registrace:",
"notifications.column_settings.alert": "Oznámení na počítači",
"notifications.column_settings.collections": "Sbírky:",
"notifications.column_settings.favourite": "Oblíbené:",
"notifications.column_settings.filter_bar.advanced": "Zobrazit všechny kategorie",
"notifications.column_settings.filter_bar.category": "Panel rychlého filtrování",
@@ -872,6 +1028,7 @@
"notifications.column_settings.update": "Úpravy:",
"notifications.filter.all": "Vše",
"notifications.filter.boosts": "Boosty",
"notifications.filter.collections": "Sbírky",
"notifications.filter.favourites": "Oblíbené",
"notifications.filter.follows": "Sledování",
"notifications.filter.mentions": "Zmínky",
@@ -888,6 +1045,8 @@
"notifications.policy.drop": "Ignorovat",
"notifications.policy.drop_hint": "Permanentně odstranit, aby již nikdy nespatřil světlo světa",
"notifications.policy.filter": "Filtrovat",
"notifications.policy.filter_bots_hint": "Účty označeny jako automatizované",
"notifications.policy.filter_bots_title": "Boti",
"notifications.policy.filter_hint": "Odeslat do filtrované schránky oznámení",
"notifications.policy.filter_limited_accounts_hint": "Omezeno moderátory serveru",
"notifications.policy.filter_limited_accounts_title": "Moderované účty",
@@ -905,12 +1064,14 @@
"notifications_permission_banner.title": "Nenechte si nic uniknout",
"onboarding.follows.back": "Zpět",
"onboarding.follows.empty": "Bohužel, žádné výsledky nelze momentálně zobrazit. Můžete zkusit najít uživatele ke sledování za pomocí vyhledávání nebo na stránce „Objevit“, nebo to zkuste znovu později.",
"onboarding.follows.next": "Dále: Nastavte si profil",
"onboarding.follows.search": "Hledat",
"onboarding.follows.title": "Sledujte lidi a začněte",
"onboarding.profile.discoverable": "Udělat svůj profil vyhledatelným",
"onboarding.profile.discoverable_hint": "Když se rozhodnete být vyhledatelný na Mastodonu, vaše příspěvky se mohou objevit ve výsledcích vyhledávání a v populárních, a váš profil může být navrhován lidem s podobnými zájmy.",
"onboarding.profile.display_name": "Zobrazované jméno",
"onboarding.profile.display_name_hint": "Vaše celé jméno nebo přezdívka…",
"onboarding.profile.finish": "Dokončit",
"onboarding.profile.note": "O vás",
"onboarding.profile.note_hint": "Můžete @zmínit jiné osoby nebo #hashtagy…",
"onboarding.profile.title": "Nastavení profilu",
@@ -978,6 +1139,9 @@
"report.categories.spam": "Spam",
"report.categories.violation": "Obsah porušuje jedno nebo více pravidel serveru",
"report.category.subtitle": "Vyberte nejbližší možnost",
"report.category.title_account": "Povězte nám, co se děje s tímto profilem",
"report.category.title_collection": "Povězte nám, co se děje s touto sbírkou",
"report.category.title_status": "Povězte nám, co se děje s tímto příspěvkem",
"report.close": "Hotovo",
"report.comment.title": "Je ještě něco jiného, co myslíte, že bychom měli vědět?",
"report.forward": "Přeposlat do {target}",
@@ -1000,6 +1164,8 @@
"report.rules.title": "Která pravidla to porušuje?",
"report.statuses.subtitle": "Vyberte všechny relevantní",
"report.statuses.title": "Existují příspěvky dokládající toto hlášení?",
"report.submission_error": "Nahlášení nelze odeslat",
"report.submission_error_details": "Zkontrolujte připojení k síti a opakujte akci později.",
"report.submit": "Odeslat",
"report.target": "Nahlašování uživatele {target}",
"report.thanks.take_action": "Tady jsou vaše možnosti pro řízení toho, co na Mastodonu vidíte:",
@@ -1037,6 +1203,7 @@
"search_popout.user": "uživatel",
"search_results.accounts": "Profily",
"search_results.all": "Vše",
"search_results.collections": "Sbírky",
"search_results.hashtags": "Hashtagy",
"search_results.no_results": "Nelze najít.",
"search_results.no_search_yet": "Zkuste vyhledat příspěvky, profily nebo hashtagy.",
@@ -1047,12 +1214,16 @@
"server_banner.active_users": "aktivní uživatelé",
"server_banner.administered_by": "Spravováno:",
"server_banner.is_one_of_many": "{domain} je jedním z mnoha Mastodon serverů, které můžete použít k účasti na fediversu.",
"server_banner.more_about_this_server": "Více o tomto serveru",
"server_banner.server_stats": "Statistiky serveru:",
"sign_in_banner.create_account": "Vytvořit účet",
"sign_in_banner.follow_anyone": "Sledujte kohokoli napříč fediversem a uvidíte vše v chronologickém pořadí. Bez algoritmů, reklam a clickbaitu.",
"sign_in_banner.mastodon_is": "Mastodon je ten nejlepší způsob, jak udržet krok s tím, co se právě děje.",
"sign_in_banner.sign_in": "Přihlásit se",
"sign_in_banner.sso_redirect": "Přihlášení nebo Registrace",
"skip_links.hotkey": "<span>Klávesová zkratka</span> {hotkey}",
"skip_links.skip_to_content": "Přejít na hlavní obsah",
"skip_links.skip_to_navigation": "Přejít na hlavní navigaci",
"status.admin_account": "Otevřít moderátorské rozhraní pro @{name}",
"status.admin_domain": "Otevřít moderátorské rozhraní pro {domain}",
"status.admin_status": "Otevřít tento příspěvek v moderátorském rozhraní",
@@ -1153,6 +1324,7 @@
"tabs_bar.menu": "Menu",
"tabs_bar.notifications": "Oznámení",
"tabs_bar.publish": "Nový příspěvek",
"tabs_bar.quick_links": "Rychlé odkazy",
"tabs_bar.search": "Vyhledávání",
"tag.remove": "Odebrat",
"terms_of_service.effective_as_of": "Platné od {date}",
+1 -1
View File
@@ -434,7 +434,7 @@
"collections.sort_last_active": "Última actividade",
"collections.sort_most_followers": "Con máis seguidoras",
"collections.suggestions.can_not_add": "Non se pode engadir",
"collections.suggestions.can_not_add_desc": "Estas contas optaron por poder ser engadidas, ou pode que estean nun servidor que aínda non é compatible coas coleccións.",
"collections.suggestions.can_not_add_desc": "Estas contas limitaron as súas opcións de descubrimento, ou pode que o seu servidor non sexa aínda compatible coas coleccións.",
"collections.suggestions.must_follow": "Primeiro tes que seguila",
"collections.suggestions.must_follow_desc": "Estas contas revisan todas as solicitudes de seguimento. As seguidoras poden engadilas a coleccións.",
"collections.topic_hint": "Engadir un cancelo para que axudar a que outras persoas coñezan a temática desta colección.",
+1 -1
View File
@@ -646,7 +646,7 @@
"empty_column.account_timeline": "Nessun post qui!",
"empty_column.account_unavailable": "Profilo non disponibile",
"empty_column.blocks": "Non hai ancora bloccato alcun utente.",
"empty_column.bookmarked_statuses": "Non hai ancora salvato nei segnalibri alcun post. Quando lo farai, apparirà qui.",
"empty_column.bookmarked_statuses": "Non hai ancora salvato nei segnalibri alcun post. Quando lo farai, appariranno qui.",
"empty_column.collections": "{acct} non ha ancora creato alcuna collezione.",
"empty_column.collections.featured_in": "Non sei ancora stato/a aggiunto/a ad alcuna collezione.",
"empty_column.collections.featured_in_undiscoverable": "Affinché le persone possano aggiungerti alle collezioni, è necessario consentire che il profilo sia visibile nelle esperienze di scoperta tramite <link>Preferenze > Privacy e visibilità</link>",
+4 -4
View File
@@ -46,8 +46,8 @@
"account.featured.new_collection": "Nowa kolekcja",
"account.field_overflow": "Pokaż całą zawartość",
"account.filters.all": "Wszystkie aktywności",
"account.filters.boosts_toggle": "Pokaż ulepszenia",
"account.filters.posts_boosts": "Posty i ulepszenia",
"account.filters.boosts_toggle": "Pokaż podbicia",
"account.filters.posts_boosts": "Posty i podbicia",
"account.filters.posts_only": "Posty",
"account.filters.posts_replies": "Posty i odpowiedzi",
"account.filters.replies_toggle": "Pokaż odpowiedzi",
@@ -92,7 +92,7 @@
"account.menu.copied": "Skopiowano link do konta do schowka",
"account.menu.copy": "Skopiuj link",
"account.menu.direct": "Prywatna wzmianka",
"account.menu.hide_reblogs": "Ukryj ulepszenia na osi czasu",
"account.menu.hide_reblogs": "Ukrywaj podbicia na osi czasu",
"account.menu.mention": "Wzmianka",
"account.menu.mute": "Wycisz konta",
"account.menu.note.description": "Widoczne tylko dla Ciebie",
@@ -100,7 +100,7 @@
"account.menu.remove_follower": "Usuń obserwującego",
"account.menu.report": "Zgłoś konto",
"account.menu.share": "Udostępnij...",
"account.menu.show_reblogs": "Pokaż ulepszenia na osi czasu",
"account.menu.show_reblogs": "Pokazuj podbicia na osi czasu",
"account.menu.unblock": "Odblokuj konto",
"account.menu.unblock_domain": "Odblokuj {domain}",
"account.menu.unmute": "Odcisz konto",
+1
View File
@@ -265,6 +265,7 @@
"admin.impact_report.instance_followers": "Ndjekës që përdoruesit tanë do të humbnin",
"admin.impact_report.instance_follows": "Ndjekës që përdoruesit e tyre do të humbnin",
"admin.impact_report.title": "Përmbledhje ndikimi",
"alert.need_reload.message": "Mastodon-i është përditësuar. Disa gjëra mund të funksionojnë saktë, deri sa të ringarkoni faqen.",
"alert.rate_limited.message": "Ju lutemi, riprovoni pas {retry_time, time, medium}.",
"alert.rate_limited.title": "Shpejtësi e kufizuar",
"alert.unexpected.message": "Ndodhi një gabim të papritur.",
@@ -30,7 +30,7 @@ export const selectAccountStatus = createAppSelector(
[
selectPlainStatus,
(state, statusId: string) => {
const accountId = state.statuses.getIn(statusId, 'account');
const accountId = state.statuses.getIn([statusId, 'account']);
if (typeof accountId !== 'string') {
return null;
}
@@ -52,7 +52,7 @@ export const selectExpandedStatus = createAppSelector(
[
selectAccountStatus,
(state, statusId: string) => {
const reblogId = state.statuses.getIn(statusId, 'reblog');
const reblogId = state.statuses.getIn([statusId, 'reblog']);
if (typeof reblogId !== 'string') {
return null;
}
+51 -2
View File
@@ -3,6 +3,7 @@ import { fromJS } from 'immutable';
import type { PartialDeep } from 'type-fest';
import { normalizeStatus } from '@/mastodon/actions/importer/statuses';
import type { ApiCollectionJSON } from '@/mastodon/api_types/collections';
import type {
ApiAudioAttachmentJSON,
ApiGifvAttachmentJSON,
@@ -14,7 +15,10 @@ import type {
import type { ApiPollJSON } from '@/mastodon/api_types/polls';
import type { ApiQuotedStatusJSON } from '@/mastodon/api_types/quotes';
import type { ApiRelationshipJSON } from '@/mastodon/api_types/relationships';
import type { ApiStatusJSON } from '@/mastodon/api_types/statuses';
import type {
ApiPreviewCardJSON,
ApiStatusJSON,
} from '@/mastodon/api_types/statuses';
import type {
CustomEmojiData,
UnicodeEmojiData,
@@ -173,7 +177,7 @@ const baseAttachment = {
id: '1',
url: 'https://example.com/image/1',
preview_url: 'https://example.com/image/1/preview',
blurhash: '',
blurhash: 'LGF5]+Yk^6#M@-5c,1J5@[or[Q6.',
} as const;
const imageMeta = {
width: 100,
@@ -321,6 +325,51 @@ export const pollFactoryImmutable = (
})) ?? [],
});
export const cardFactoryAPI: FactoryFunction<ApiPreviewCardJSON> = (
options = {},
) => ({
url: 'https://example.com',
title: 'Example Card',
description: 'This is an example card',
language: 'en',
type: 'link',
author_name: 'A. Person',
author_url: 'https://example.com/person',
provider_name: 'example',
provider_url: 'https://example.com/provider',
html: '<p>Here is an example card</p>',
width: 100,
height: 100,
image: null,
embed_url: 'https://example.com/embed',
image_description: '',
blurhash: '',
published_at: null,
authors: [],
...options,
});
export const collectionFactoryAPI: FactoryFunction<ApiCollectionJSON> = (
options = {},
) => ({
id: '1',
account_id: '1',
name: 'Test Collection',
uri: options.url ?? 'https://example.com/collection',
url: options.uri ?? 'https://example.com/collection',
local: true,
item_count: options.items?.length ?? 0,
description: 'This is a test collection.',
tag: null,
language: 'en',
sensitive: false,
discoverable: true,
created_at: '2023-01-01',
updated_at: '2023-01-01',
items: [],
...options,
});
export const relationshipsFactoryAPI: FactoryFunction<ApiRelationshipJSON> = ({
id,
...data
+4 -3
View File
@@ -34,18 +34,19 @@ class ActivityPub::LinkedDataSignature
end
def sign!(creator, sign_with: nil)
keypair = sign_with.presence || creator.keypair(type: :rsa)
options = {
'type' => 'RsaSignature2017',
'creator' => ActivityPub::TagManager.instance.key_uri_for(creator),
'creator' => keypair.full_uri,
'created' => Time.now.utc.iso8601,
}
options_hash = hash(options.without('type', 'id', 'signatureValue').merge('@context' => CONTEXT))
document_hash = hash(@json.without('signature'))
to_be_signed = options_hash + document_hash
keypair = sign_with.present? ? OpenSSL::PKey::RSA.new(sign_with) : creator.keypair
signature = Base64.strict_encode64(keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_signed))
signature = Base64.strict_encode64(keypair.keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_signed))
# Mastodon's context is either an array or a single URL
context_with_security = Array(@json['@context'])
@@ -0,0 +1,59 @@
# frozen_string_literal: true
# This is an implementation of https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
class ActivityPub::ObjectIntegrityProof
include JsonLdHelper
CONTEXT = 'https://w3id.org/identity/v1'
SIGNATURE_CONTEXT = 'https://w3id.org/security/v1'
def initialize(json)
@json = json
end
def verify_actor!(proof_purpose: 'assertionMethod')
return unless @json.is_a?(Hash) && @json['proof'].is_a?(Hash)
proof = @json['proof']
return unless proof['type'].present? && proof['verificationMethod'].present? && proof['proofPurpose'].present?
return if proof_purpose != proof['proofPurpose']
return if proof['type'] != 'DataIntegrityProof'
cryptosuite = proof['cryptosuite']
key_uri = proof['verificationMethod']
return unless cryptosuite == 'eddsa-jcs-2022' && proof['proofValue'].present?
keypair = Keypair.from_keyid(key_uri)
keypair = ActivityPub::FetchRemoteKeyService.new.call(key_uri) if keypair&.public_key.blank?
return if keypair.nil? || !keypair.usable? || keypair.type != 'ed25519'
keypair.actor if ActivityPub::ObjectIntegrityProof.verify_eddsa_jcs_2022(@json, keypair.keypair)
rescue OpenSSL::PKey::RSAError
false
end
# https://www.w3.org/TR/vc-di-eddsa/#verify-proof-eddsa-jcs-2022
def self.verify_eddsa_jcs_2022(document, keypair) # rubocop:disable Naming/VariableNumber
unsecured_document = document.without('proof')
proof_options = document['proof'].without('proofValue')
proof_bytes = Multibase.decode(document['proof']['proofValue'])
if proof_options['@context'].present?
return unless unsecured_document['@context'].is_a?(Array)
return unless unsecured_document['@context'][...proof_options['@context'].length] == proof_options['@context']
# Step 4.2. from the aforementioned algorithm, it's useful when vocabulary necessary to the cryptosuite had to be added on top of the to-be-signed document
unsecured_document['@context'] = proof_options['@context']
end
transformed_data = unsecured_document.to_json_c14n
proof_config = proof_options.to_json_c14n
to_be_verified = Digest::SHA256.digest(proof_config) + Digest::SHA256.digest(transformed_data)
keypair.verify(nil, proof_bytes, to_be_verified)
end
end
@@ -29,7 +29,7 @@ class ActivityPub::Parser::MediaAttachmentParser
end
def description
str = @json['summary'].presence || @json['name'].presence
str = first_lang_string(@json, 'summary').presence || first_lang_string(@json, 'name').presence
str = str.strip[0...MediaAttachment::MAX_DESCRIPTION_HARD_LENGTH_LIMIT] if str.present?
str
end
+2 -3
View File
@@ -100,9 +100,8 @@ class Request
def on_behalf_of(actor, sign_with: nil)
raise ArgumentError, 'actor must not be nil' if actor.nil?
key_id = ActivityPub::TagManager.instance.key_uri_for(actor)
keypair = sign_with.present? ? OpenSSL::PKey::RSA.new(sign_with) : actor.keypair
@signing = HttpSignatureDraft.new(keypair, key_id)
keypair = sign_with.presence || actor.keypair(type: :rsa)
@signing = HttpSignatureDraft.new(keypair.keypair, keypair.full_uri)
self
end
+16 -2
View File
@@ -297,8 +297,22 @@ class Account < ApplicationRecord
strikes.where(overruled_at: nil).count
end
def keypair
@keypair ||= OpenSSL::PKey::RSA.new(private_key || public_key)
def keypair(type: nil)
# Pick the first (oldest) keypair matching the expected type,
# as we can expect our key rotation code to add stand-by keys with higher IDs
# before pruning older keys with lower IDs after some time.
scope = keypairs.usable.order(id: :asc)
scope = scope.where(type: type) if type.present?
case type
when :rsa, nil
# The legacy key is always RSA, so only fallback
# when no other type is requested
scope.first || Keypair.from_legacy_account(self)
else
scope.first
end
end
def tags_as_strings=(tag_names)
+24
View File
@@ -50,6 +50,12 @@ class Keypair < ApplicationRecord
alias actor account
def full_uri
return ActivityPub::TagManager.instance.uri_for(account) + local_fragment if local_fragment.present?
uri
end
def keypair
@keypair ||= begin
case type
@@ -87,4 +93,22 @@ class Keypair < ApplicationRecord
type: :rsa
)
end
def self.from_worker_arg(account, private_key_pem_or_hash)
if private_key_pem_or_hash.is_a?(String)
account.keypairs.build(
private_key: private_key_pem_or_hash,
local_fragment: '#main-key',
type: :rsa
)
else
account.keypairs.build(
private_key: private_key_pem_or_hash['private_key'],
public_key: private_key_pem_or_hash['public_key'],
uri: private_key_pem_or_hash['uri'],
local_fragment: private_key_pem_or_hash['local_fragment'],
type: private_key_pem_or_hash['type']
)
end
end
end
@@ -24,7 +24,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
attribute :interaction_policy
attribute :featured_collections
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
has_one :keypair, key: :public_key, serializer: ActivityPub::PublicKeySerializer
has_many :virtual_tags, key: :tag
has_many :virtual_attachments, key: :attachment
@@ -6,11 +6,11 @@ class ActivityPub::PublicKeySerializer < ActivityPub::Serializer
attributes :id, :owner, :public_key_pem
def id
ActivityPub::TagManager.instance.key_uri_for(object)
object.full_uri
end
def owner
ActivityPub::TagManager.instance.uri_for(object)
ActivityPub::TagManager.instance.uri_for(object.actor)
end
def public_key_pem
@@ -256,7 +256,7 @@ class ActivityPub::ProcessAccountService < BaseService
if value.is_a?(Hash) && value['type'] == 'Image'
url = first_of_value(value['url'])
url = url['href'] if url.is_a?(Hash)
description = value['summary'].presence || value['name'].presence
description = first_lang_string(value, 'summary').presence || first_lang_string(value, 'name').presence
description = description.strip[0...MediaAttachment::MAX_DESCRIPTION_HARD_LENGTH_LIMIT] if description.present?
else
url = value
@@ -37,8 +37,20 @@ class ActivityPub::ProcessCollectionService < BaseService
@options[:relayed_through_actor] = @account
# TODO: handle FEP-8b32
# Linked Data Signature verification
@account = actor_from_verified_ld_signature
# If Linked Data Signature verification failed, throw away the signature
# as other parts of the code use its presence as an indication of whether
# to forward the activity (don't throw away compaction though, it is still useful)
@json = @json.without('signature') if @account.nil?
# TODO: in the future, we might extend our forwarding rules to allow activities with
# FEP-8b32 Object Integrity Proofs to be forwarded.
# This would require keeping the original JSON around and changing forwarding logic in
# a few places. This is not worth it right now since FEP-8b32 is not widely supported,
# but could be worth doing in the future.
@account ||= actor_from_verified_object_integrity_proof(original_json)
end
return if !@account.is_a?(Account) || different_actor? || suspended_actor? || @account.local?
@@ -96,4 +108,12 @@ class ActivityPub::ProcessCollectionService < BaseService
Rails.logger.debug { "Could not verify LD-Signature for #{value_or_id(@json['actor'])}: #{e.message}" }
nil
end
def actor_from_verified_object_integrity_proof(original_json)
return unless original_json['proof'].present? && original_json['actor'] == @json['actor']
return if domain_not_allowed?(@json['proof']['verificationMethod'])
# Verification is done on the original JSON without a signature
ActivityPub::ObjectIntegrityProof.new(original_json.without('signature')).verify_actor!
end
end
+5 -1
View File
@@ -48,7 +48,7 @@ class ActivityPub::DeliveryWorker
def build_request(http_client)
Request.new(:post, @inbox_url, body: @json, http_client: http_client).tap do |request|
request.on_behalf_of(@source_account, sign_with: @options[:sign_with])
request.on_behalf_of(@source_account, sign_with: sign_with)
request.add_headers(HEADERS)
request.add_headers({ 'Collection-Synchronization' => synchronization_header }) if ENV['DISABLE_FOLLOWERS_SYNCHRONIZATION'] != 'true' && @options[:synchronize_followers]
end
@@ -93,4 +93,8 @@ class ActivityPub::DeliveryWorker
def request_pool
RequestPool.current
end
def sign_with
@options[:sign_with].presence && Keypair.from_worker_arg(@source_account, @options[:sign_with])
end
end
@@ -23,6 +23,10 @@ class ActivityPub::UpdateDistributionWorker < ActivityPub::RawDistributionWorker
end
def payload
@payload ||= serialize_payload(@account, ActivityPub::UpdateActorSerializer, signer: @account, sign_with: @options[:sign_with]).to_json
@payload ||= serialize_payload(@account, ActivityPub::UpdateActorSerializer, signer: @account, sign_with: sign_with).to_json
end
def sign_with
@options[:sign_with].presence && Keypair.from_worker_arg(@account, @options[:sign_with])
end
end
@@ -11,7 +11,7 @@ class PublishAnnouncementReactionWorker
reaction ||= announcement.announcement_reactions.new(name: name)
payload = InlineRenderer.render(reaction, nil, :reaction).tap { |h| h[:announcement_id] = announcement_id.to_s }
payload = { event: :'announcement.reaction', payload: payload }
payload = { event: :'announcement.reaction', payload: payload }.to_json
FeedManager.instance.with_active_accounts do |account|
redis.publish("timeline:#{account.id}", payload) if redis.exists?("subscribed:timeline:#{account.id}")
+1
View File
@@ -52,6 +52,7 @@ require_relative '../lib/active_record/database_tasks_extensions'
require_relative '../lib/active_record/batches'
require_relative '../lib/simple_navigation/item_extensions'
require_relative '../lib/vite_ruby/sri_extensions'
require_relative '../lib/json-canonicalization/floats_fix'
Bundler.require(:pam_authentication) if ENV['PAM_ENABLED'] == 'true'
+7
View File
@@ -297,7 +297,11 @@ be:
enable_relay_html: "%{name} уключыў(-ла) рэтранслятар %{target}"
enable_sign_in_token_auth_user_html: "%{name} уключыў уваход праз эл. пошту для %{target}"
enable_user_html: "%{name} уключыў уваход для карыстальніка %{target}"
listable_tag_html: можа быць прапанавана
memorialize_account_html: Карыстальнік %{name} пераключыў уліковы запіс %{target} у старонку памяці
not_listable_tag_html: не будзе прапанавана
not_trendable_tag_html: не з'явіцца ў трэндах
not_usable_tag_html: немагчыма выкарыстаць
promote_user_html: "%{name} павысіў карыстальніка %{target}"
publish_terms_of_service_html: "%{name} апублікаваў(-ла) абнаўленні ва ўмовах выкарыстання"
reject_appeal_html: "%{name} адхіліў запыт на абскарджанне %{target}"
@@ -310,6 +314,7 @@ be:
sensitive_account_html: "%{name} адзначыў медыя %{target} як далікатнае"
silence_account_html: "%{name} абмежаваў уліковы запіс %{target}"
suspend_account_html: Уліковы запіс %{target} прыпынены %{name}
trendable_tag_html: можа з’явіцца ў трэндах
unassigned_report_html: "%{name} знял(а) прызначэнне скаргі %{target}"
unblock_email_account_html: "%{name} разблакіраваў эл. пошту %{target}"
unsensitive_account_html: "%{name} зняў адзнаку далікатнае з медыя %{target}"
@@ -322,8 +327,10 @@ be:
update_ip_block_html: "%{name} змяніў правіла для IP %{target}"
update_report_html: "%{name} абнавіў скаргу %{target}"
update_status_html: "%{name} абнавіў допіс %{target}"
update_tag_html: "%{name} змяніў(-ла) %{target} налады на: "
update_user_role_html: "%{name} змяніў ролю %{target}"
update_username_block_html: Адміністратар %{name} змяніў правіла для імён карыстальнікаў, у якіх %{target}
usable_tag_html: магчыма выкарыстаць;
deleted_account: выдалены ўліковы запіс
empty: Логі не знойдзены.
filter_by_action: Фільтраваць па дзеянню
+7
View File
@@ -289,7 +289,11 @@ da:
enable_relay_html: "%{name} aktiverede videresendelsen %{target}"
enable_sign_in_token_auth_user_html: "%{name} aktiverede e-mailtoken godkendelse for %{target}"
enable_user_html: "%{name} aktiverede indlogning for brugeren %{target}"
listable_tag_html: kan foreslås
memorialize_account_html: "%{name} gjorde %{target}s konto til en mindeside"
not_listable_tag_html: foreslås ikke
not_trendable_tag_html: vises ikke under trends
not_usable_tag_html: kan ikke anvendes
promote_user_html: "%{name} forfremmede brugeren %{target}"
publish_terms_of_service_html: "%{name} offentliggjorde opdateringer til tjenestevilkårene"
reject_appeal_html: "%{name} afviste moderationsafgørelsesappellen fra %{target}"
@@ -302,6 +306,7 @@ da:
sensitive_account_html: "%{name} markerede %{target}s medier som sensitive"
silence_account_html: "%{name} begrænsede %{target}s konto"
suspend_account_html: "%{name} suspenderede %{target}s konto"
trendable_tag_html: kan vises under trends
unassigned_report_html: "%{name} fjernede tildelingen af rapporten %{target}"
unblock_email_account_html: "%{name} afblokerede %{target}s e-mailadresse"
unsensitive_account_html: "%{name} fjernede sensitivmarkeringen af %{target}s medier"
@@ -314,8 +319,10 @@ da:
update_ip_block_html: "%{name} ændrede reglen for IP'en %{target}"
update_report_html: "%{name} opdaterede rapporten %{target}"
update_status_html: "%{name} opdaterede indlægget fra %{target}"
update_tag_html: "%{name} ændrede %{target}-indstillinger til: "
update_user_role_html: "%{name} ændrede %{target}-rolle"
update_username_block_html: "%{name} opdaterede regel for brugernavne indeholdende %{target}"
usable_tag_html: kan anvendes;
deleted_account: slettet konto
empty: Ingen logger fundet.
filter_by_action: Filtrér efter handling
+7
View File
@@ -289,7 +289,11 @@ de:
enable_relay_html: "%{name} aktivierte das Relais %{target}"
enable_sign_in_token_auth_user_html: "%{name} aktivierte die E-Mail-Token-Authentisierung für %{target}"
enable_user_html: "%{name} aktivierte den Zugang für %{target}"
listable_tag_html: darf vorgeschlagen werden
memorialize_account_html: "%{name} wandelte das Konto von %{target} in eine Gedenkseite um"
not_listable_tag_html: wird nicht vorgeschlagen
not_trendable_tag_html: erscheint nicht unter Trends
not_usable_tag_html: darf nicht verwendet werden
promote_user_html: "%{name} beförderte %{target}"
publish_terms_of_service_html: "%{name} aktualisierte die Nutzungsbedingungen"
reject_appeal_html: "%{name} lehnte den Einspruch gegen eine Moderationsentscheidung von %{target} ab"
@@ -302,6 +306,7 @@ de:
sensitive_account_html: "%{name} versah die Medien von %{target} mit einer Inhaltswarnung"
silence_account_html: "%{name} schaltete das Konto von %{target} stumm"
suspend_account_html: "%{name} sperrte das Konto von %{target}"
trendable_tag_html: darf unter Trends erscheinen
unassigned_report_html: "%{name} entfernte die Zuweisung der Meldung %{target}"
unblock_email_account_html: "%{name} entsperrte die E-Mail-Adresse von %{target}"
unsensitive_account_html: "%{name} hob die Inhaltswarnung für Medien von %{target} auf"
@@ -314,8 +319,10 @@ de:
update_ip_block_html: "%{name} änderte eine IP-Regel für %{target}"
update_report_html: "%{name} überarbeitete die Meldung %{target}"
update_status_html: "%{name} überarbeitete einen Beitrag von %{target}"
update_tag_html: "%{name} änderte %{target} zu: "
update_user_role_html: "%{name} änderte die Rolle von %{target}"
update_username_block_html: "%{name} aktualisierte eine Regel für Profilnamen mit %{target}"
usable_tag_html: darf verwendet werden;
deleted_account: gelöschtes Konto
empty: Protokolle nicht gefunden.
filter_by_action: Nach Aktion filtern
-2
View File
@@ -243,7 +243,6 @@ en-GB:
update_ip_block: Update IP rule
update_report: Update Report
update_status: Update Post
update_tag: Update Hashtag
update_user_role: Update Role
update_username_block: Update Username Rule
actions:
@@ -314,7 +313,6 @@ en-GB:
update_ip_block_html: "%{name} changed rule for IP %{target}"
update_report_html: "%{name} updated report %{target}"
update_status_html: "%{name} updated post by %{target}"
update_tag_html: "%{name} changed %{target} settings to: "
update_user_role_html: "%{name} changed %{target} role"
update_username_block_html: "%{name} updated rule for usernames containing %{target}"
deleted_account: deleted account
+7
View File
@@ -289,7 +289,11 @@ es-AR:
enable_relay_html: "%{name} eliminó el relé %{target}"
enable_sign_in_token_auth_user_html: "%{name} habilitó la autenticación de token por correo electrónico para %{target}"
enable_user_html: "%{name} habilitó el inicio de sesión para el usuario %{target}"
listable_tag_html: puede ser recomendada
memorialize_account_html: "%{name} convirtió la cuenta de %{target} en una cuenta conmemorativa"
not_listable_tag_html: no será sugerida
not_trendable_tag_html: no aparecerá bajo «Tendencias»
not_usable_tag_html: no puede ser usada
promote_user_html: "%{name} promovió al usuario %{target}"
publish_terms_of_service_html: "%{name} publicó actualizaciones de los términos del servicio"
reject_appeal_html: "%{name} rechazó la solicitud de moderación de %{target}"
@@ -302,6 +306,7 @@ es-AR:
sensitive_account_html: "%{name} marcó los medios de %{target} como sensibles"
silence_account_html: "%{name} limitó la cuenta de %{target}"
suspend_account_html: "%{name} suspendió la cuenta de %{target}"
trendable_tag_html: puede aparecer bajo «Tendencias»
unassigned_report_html: "%{name} desasignó la denuncia %{target}"
unblock_email_account_html: "%{name} desbloqueó la dirección de correo electrónico de %{target}"
unsensitive_account_html: "%{name} desmarcó los medios de %{target} como sensibles"
@@ -314,8 +319,10 @@ es-AR:
update_ip_block_html: "%{name} cambió la regla para la dirección IP %{target}"
update_report_html: "%{name} actualizó la denuncia %{target}"
update_status_html: "%{name} actualizó el mensaje de %{target}"
update_tag_html: "%{name} cambió la configuración de %{target} a: "
update_user_role_html: "%{name} cambió el rol %{target}"
update_username_block_html: "%{name} actualizó una regla para los nombres de usuario que contienen %{target}"
usable_tag_html: puede ser usada;
deleted_account: cuenta eliminada
empty: No se encontraron registros.
filter_by_action: Filtrar por acción
+7
View File
@@ -289,7 +289,11 @@ es-MX:
enable_relay_html: "%{name} activó el relé %{target}"
enable_sign_in_token_auth_user_html: "%{name} activó autenticación por token de correo electrónico para %{target}"
enable_user_html: "%{name} habilitó el inicio de sesión para el usuario %{target}"
listable_tag_html: puede ser recomendada
memorialize_account_html: "%{name} convirtió la cuenta de %{target} en una página in memoriam"
not_listable_tag_html: no puede ser recomendada
not_trendable_tag_html: no puede aparecer en tendencia
not_usable_tag_html: no se puede usar
promote_user_html: "%{name} promoción al usuario %{target}"
publish_terms_of_service_html: "%{name} publicó actualizaciones de las condiciones del servicio"
reject_appeal_html: "%{name} rechazó la solicitud de moderación de %{target}"
@@ -302,6 +306,7 @@ es-MX:
sensitive_account_html: "%{name} marcó la multimedia de %{target} como sensible"
silence_account_html: "%{name} silenció la cuenta de %{target}"
suspend_account_html: "%{name} suspendió la cuenta de %{target}"
trendable_tag_html: puede aparecer en tendencia
unassigned_report_html: "%{name} des-asignó el informe %{target}"
unblock_email_account_html: "%{name} ha desbloqueado la dirección de correo de %{target}"
unsensitive_account_html: "%{name} desmarcó la multimedia de %{target} como sensible"
@@ -314,8 +319,10 @@ es-MX:
update_ip_block_html: "%{name} cambió la regla para la IP %{target}"
update_report_html: "%{name} actualizó el informe %{target}"
update_status_html: "%{name} actualizó la publicación de %{target}"
update_tag_html: "%{name} cambió la configuración de %{target} a: "
update_user_role_html: "%{name} cambió el rol %{target}"
update_username_block_html: "%{name} actualizó una regla para los nombres de usuario que contienen %{target}"
usable_tag_html: se puede usar;
deleted_account: cuenta eliminada
empty: No se encontraron registros.
filter_by_action: Filtrar por acción
+7
View File
@@ -289,7 +289,11 @@ es:
enable_relay_html: "%{name} activó el relé %{target}"
enable_sign_in_token_auth_user_html: "%{name} ha habilitado la autenticación por token de correo electrónico para %{target}"
enable_user_html: "%{name} habilitó el inicio de sesión para el usuario %{target}"
listable_tag_html: puede ser recomendada
memorialize_account_html: "%{name} convirtió la cuenta de %{target} en una página in memoriam"
not_listable_tag_html: no puede ser recomendada
not_trendable_tag_html: no puede aparecer en tendencia
not_usable_tag_html: no puede usarse
promote_user_html: "%{name} promoción al usuario %{target}"
publish_terms_of_service_html: "%{name} ha publicado actualizaciones de los términos del servicio"
reject_appeal_html: "%{name} rechazó la solicitud de moderación de %{target}"
@@ -302,6 +306,7 @@ es:
sensitive_account_html: "%{name} marcó la multimedia de %{target} como sensible"
silence_account_html: "%{name} silenció la cuenta de %{target}"
suspend_account_html: "%{name} suspendió la cuenta de %{target}"
trendable_tag_html: puede aparecer en tendencia
unassigned_report_html: "%{name} des-asignó el informe %{target}"
unblock_email_account_html: "%{name} ha desbloqueado la dirección de correo de %{target}"
unsensitive_account_html: "%{name} desmarcó la multimedia de %{target} como sensible"
@@ -314,8 +319,10 @@ es:
update_ip_block_html: "%{name} cambió la regla para la IP %{target}"
update_report_html: "%{name} actualizó el informe %{target}"
update_status_html: "%{name} actualizó la publicación de %{target}"
update_tag_html: "%{name} cambió la configuración de %{target} a: "
update_user_role_html: "%{name} cambió el rol %{target}"
update_username_block_html: "%{name} actualizó una regla para los nombres de usuario que contienen %{target}"
usable_tag_html: puede usarse;
deleted_account: cuenta eliminada
empty: No se encontraron registros.
filter_by_action: Filtrar por acción
+29 -10
View File
@@ -4,6 +4,7 @@ et:
about_mastodon_html: 'Tuleviku sotsiaalvõrgustik: Reklaamivaba, korporatiivse jälitamiseta, eetiline kujundus ning hajutatus! Mastodonis omad sa enda andmeid ka päriselt!'
contact_missing: Määramata
contact_unavailable: Pole saadaval
default_thumbnail_description: Kaks naeratavat mammutit (kes näevad tavaliste londiste moodi välja) loobivad omavahel paberlennukit. Nende taustal on sinine taevas ning ringilendavad planeedid, igal planeedil on puud ja veel palju teisi mastodone.
hosted_on: Mastodoni teenus serveris %{domain}
title: Veebirakenduse teave
accounts:
@@ -35,16 +36,16 @@ et:
account_moderation_notes:
create: Jäta teade
created_msg: Modereerimisteade edukalt koostatud!
destroyed_msg: Modereerimisteade edukalt kustutatud!
destroyed_msg: Modereerimisteate kustutamine õnnestus!
accounts:
add_email_domain_block: Blokeeri e-posti domeen
approve: Võta vastu
approved_msg: Kasutaja %{username} liitumisavaldus rahuldatud
are_you_sure: Kas oled kindel?
avatar: Profiilipilt
avatar: Tunnuspilt
by_domain: Domeen
change_email:
changed_msg: E-posti aadress vahetatud!
changed_msg: E-posti aadress on vahetatud!
current_email: Praegune e-postiaadress
label: Muuda e-posti aadressi
new_email: Uus е-posti aadress
@@ -63,8 +64,8 @@ et:
custom: Kohandatud
delete: Kustuta andmed
deleted: Kustutatud
demote: Alanda
destroyed_msg: "%{username} andmed on nüüd lõpliku kustutamise ootel"
demote: Vähenda õigusi
destroyed_msg: Kasutaja %{username} andmed on nüüd lõpliku kustutamise ootel
disable: Lukusta
disable_sign_in_token_auth: E-posti võtme abil autentimise väljalülitamine
disable_two_factor_authentication: Keela 2FA
@@ -72,8 +73,8 @@ et:
display_name: Kuvanimi
domain: Domeen
edit: Muuda
email: E-post
email_status: E-posti olek
email: E-posti aadress
email_status: E-posti aadressi olek
enable: Luba
enable_sign_in_token_auth: Luba e-posti võtme abil autentimine
enabled: Lubatud
@@ -81,11 +82,11 @@ et:
followers: Jälgijad
follows: Jälgib
header: Päis
inbox_url: Sisendkausta URL
inbox_url: Sisendkausta võrguaadress
invite_request_text: Põhjendused liitumiseks
invited_by: Kutsuja
ip: IP
joined: Liitus
ip: IP-aadress
joined: Liitumise aeg
location:
all: Kõik
local: Kohalik
@@ -288,7 +289,11 @@ et:
enable_relay_html: "%{name} võttis sõnumivahendusserveri kasutusele: %{target}"
enable_sign_in_token_auth_user_html: "%{name} lubas e-posti võtme abil autentimise %{target} jaoks"
enable_user_html: "%{name} lubas %{target} sisenemise"
listable_tag_html: võib olla soovitatud
memorialize_account_html: "%{name} märkis %{target} igaveselt lahkunuks"
not_listable_tag_html: ei või olla soovitatud
not_trendable_tag_html: ei ole nähtav populaarsust koguva sisu all
not_usable_tag_html: pole kasutatav
promote_user_html: "%{name} ülendas kasutajat %{target}"
publish_terms_of_service_html: "%{name} teatas kasutustingimuste muudatusest"
reject_appeal_html: "%{name} lükkas %{target} modereerimisotsuse kaebuse tagasi"
@@ -301,6 +306,7 @@ et:
sensitive_account_html: "%{name} märkis %{target} meedia kui tundlik sisu"
silence_account_html: "%{name} piiras %{target} konto"
suspend_account_html: "%{name} kustutas %{target} konto"
trendable_tag_html: on nähtav populaarsust koguva sisu all
unassigned_report_html: "%{name} tühistas raporti %{target} määrangu"
unblock_email_account_html: "%{name} lõpetas kasutaja %{target} e-posti aadressi blokeerimise"
unsensitive_account_html: "%{name} eemaldas %{target} meedia tundliku sisu märke"
@@ -313,8 +319,10 @@ et:
update_ip_block_html: "%{name} muutis IP-aadressi %{target} reeglit"
update_report_html: "%{name} uuendas raportit %{target}"
update_status_html: "%{name} muutis %{target} postitust"
update_tag_html: "%{name} muutis %{target} serveri seadistusi järgnevalt: "
update_user_role_html: "%{name} muutis %{target} rolli"
update_username_block_html: "%{name} uuendas kasutajanime reeglit, milles sisaldub %{target}"
usable_tag_html: on kasutatav;
deleted_account: kustutatud konto
empty: Logisi ei leitud.
filter_by_action: Filtreeri tegevuse järgi
@@ -506,6 +514,9 @@ et:
last_email: Viimane e-post
lead: Allpool kuvatakse kontod, kus see funktsioon on aktiveeritud ja millel on tellijaid.
show:
confirm_disable_feature: Kas lõpetad uudiskirjade saatmise %{name} aadressile? Seega antud kasutaja ei saa enam e-kirja teel teavet uuenduste kohta, aga saab sellise võimaluse oma seadistusest uuesti kasutusele võtta. Eemaldamaks lõplikult võimaluse seda funktsionaalsust kasutada muuda kasutajakonto õigusi Rollide vaatest.
confirm_remove_subscriber: "%{email} ei saa enam kirju saatjalt %{name}. Seda tegevust ei saa tagasi pöörata."
consent: Tellijad on vaid nõustunud postituste edastamisega e-kirja teel. Ära kasuta seda loendit muul eesmärgil.
date: Liitumise kuupäev
disable_feature: Lülita funktsionaalsus välja
disabled: See funktsionaalsus on lülitatud välja ja e-kirju enam seda loendisse ei saadeta.
@@ -514,6 +525,8 @@ et:
hint: Mitte keegi pole seda kontot veel tellinud.
no_subscribers_yet: Tellijaid veel pole
enable_feature: Lülita funktsionaalsus sisse
no_access_html: Sellel kasutajakontol pole enam õigusi selle funktsionaalsuse sisselülitamiseks. Seda saad muuta<a href="%{roles_path}">Rollide vaates</a>.
title: Uudiskirjad teenusest %{name}
view_account: Vaata kasutajakontot
status: Olek
subscribers: Tellijad
@@ -1511,6 +1524,7 @@ et:
your_appeal_rejected: Vaidlustus on tagasi lükatud
edit_profile:
other: Muu
privacy_redesign_body: Nüüd saad otse oma profiili vaatest valida, kas tahad näidata jälgijavaid ja jälgijaid.
redesign_body: Profiili muutmisele pääseb nüüd ligi otse profiili lehelt.
redesign_button: Mine sinna
redesign_title: Profiili muutmine on nüüd teistmoodi
@@ -1663,6 +1677,7 @@ et:
invalid_csv_file: 'Vigane CSV-fail. Veateade: %{error}'
invalid_json_file: 'Vigane JSON-fail. Viga: %{error}'
over_rows_processing_limit: sisaldab rohkem, kui %{count} rida
status_not_found_warning: Mõned sinu filtrid peidavad teatavaid postitusi, mis pole sellele serverile teada. Kui server neid tuvastab, siis nad jäävad automaatselt filtreerimata.
too_large: Fail on liiga suur
failures: Ebaõnnestumised
imported: Imporditud
@@ -1679,6 +1694,9 @@ et:
bookmarks_html:
one: Oled <strong>asendamas oma järjehoidjad</strong> faili <strong>%{filename}</strong> sisuga, milles on kuni <strong>%{count} postitus</strong>.
other: Oled <strong>asendamas oma järjehoidjad</strong> faili <strong>%{filename}</strong> sisuga, milles on kuni <strong>%{count} postitust</strong>.
custom_filters_html:
one: Järgnevaga sa <strong>asendad oma filtrid</strong> <strong>%{filename}</strong> failis leiduva sisuga. Uue filtrina lisatakse kuni <strong>%{count} filter</strong>.
other: Järgnevaga sa <strong>asendad oma filtrid</strong> <strong>%{filename}</strong> failis leiduva sisuga. Uute filtritena lisatakse kuni <strong>%{count} filtrit</strong>.
domain_blocking_html:
one: Oled <strong>asendamas oma domeenide blokeeringu loetelu</strong> faili <strong>%{filename}</strong> sisuga, milles on kuni <strong>%{count} domeen</strong>.
other: Oled <strong>asendamas oma domeenide blokeeringu loetelu</strong> faili <strong>%{filename}</strong> sisuga, milles on kuni <strong>%{count} domeen</strong>.
@@ -1924,6 +1942,7 @@ et:
next: Järgmine
older: Vanemad
prev: Eelm
truncate_html: "&hellip;"
polls:
errors:
already_voted: Oled siin hääletusel juba hääletanud
+7
View File
@@ -289,7 +289,11 @@ fi:
enable_relay_html: "%{name} otti välittäjän %{target} käyttöön"
enable_sign_in_token_auth_user_html: "%{name} otti sähköpostitunnuksella todennuksen käyttöön käyttäjälle %{target}"
enable_user_html: "%{name} otti kirjautumisen käyttöön käyttäjälle %{target}"
listable_tag_html: voidaan ehdottaa
memorialize_account_html: "%{name} muutti käyttäjän %{target} tilin muistosivuksi"
not_listable_tag_html: ei ehdoteta
not_trendable_tag_html: ei näy trendeissä
not_usable_tag_html: ei voida käyttää
promote_user_html: "%{name} ylensi käyttäjän %{target}"
publish_terms_of_service_html: "%{name} julkaisi päivityksiä käyttöehtoihin"
reject_appeal_html: "%{name} hylkäsi käyttäjän %{target} valituksen moderointipäätöksestä"
@@ -302,6 +306,7 @@ fi:
sensitive_account_html: "%{name} merkitsi käyttäjän %{target} median arkaluonteiseksi"
silence_account_html: "%{name} rajoitti käyttäjän %{target} tiliä"
suspend_account_html: "%{name} jäädytti käyttäjän %{target} tilin"
trendable_tag_html: voi näkyä trendeissä
unassigned_report_html: "%{name} poisti raportin %{target} käsittelystä"
unblock_email_account_html: "%{name} kumosi käyttäjän %{target} sähköpostiosoitteen eston"
unsensitive_account_html: "%{name} kumosi käyttäjän %{target} median arkaluonteisuusmerkinnän"
@@ -314,8 +319,10 @@ fi:
update_ip_block_html: "%{name} muutti IP-⁠osoitteen %{target} sääntöä"
update_report_html: "%{name} päivitti raportin %{target}"
update_status_html: "%{name} päivitti käyttäjän %{target} julkaisun"
update_tag_html: "%{name} muutti tunnisteen %{target} asetuksia: "
update_user_role_html: "%{name} muutti roolia %{target}"
update_username_block_html: "%{name} päivitti säännön käyttäjänimille, joihin sisältyy %{target}"
usable_tag_html: voidaan käyttää;
deleted_account: poisti tilin
empty: Lokeja ei löytynyt.
filter_by_action: Suodata toimen mukaan
+7
View File
@@ -289,7 +289,11 @@ fr-CA:
enable_relay_html: "%{name} a activé le relais %{target}"
enable_sign_in_token_auth_user_html: "%{name} a activé l'authentification par jeton de courriel pour %{target}"
enable_user_html: "%{name} a activé la connexion de l'utilisateur·rice %{target}"
listable_tag_html: peut être suggéré
memorialize_account_html: "%{name} a converti le compte de %{target} en un mémorial"
not_listable_tag_html: ne sera pas suggéré
not_trendable_tag_html: n'apparaîtra pas dans les tendances
not_usable_tag_html: ne peut pas être utilisé
promote_user_html: "%{name} a promu l'utilisateur·rice %{target}"
publish_terms_of_service_html: "%{name} a publié des mises à jour des conditions d'utilisation"
reject_appeal_html: "%{name} a rejeté l'appel de la décision de modération émis par %{target}"
@@ -302,6 +306,7 @@ fr-CA:
sensitive_account_html: "%{name} a marqué le média de %{target} comme sensible"
silence_account_html: "%{name} a limité le compte de %{target}"
suspend_account_html: "%{name} a suspendu le compte de %{target}"
trendable_tag_html: peut apparaître dans les tendances
unassigned_report_html: "%{name} a désassigné le signalement %{target}"
unblock_email_account_html: "%{name} a débloqué l'adresse courriel de %{target}"
unsensitive_account_html: "%{name} a enlevé le marquage comme sensible du média de %{target}"
@@ -314,8 +319,10 @@ fr-CA:
update_ip_block_html: "%{name} a modifié la règle pour l'IP %{target}"
update_report_html: "%{name} a mis à jour le rapport de signalement %{target}"
update_status_html: "%{name} a mis à jour le message de %{target}"
update_tag_html: "%{name} a modifié les paramètres de %{target} pour : "
update_user_role_html: "%{name} a changé le rôle %{target}"
update_username_block_html: "%{name} a mis à jour une règle pour les noms d'utilisateurs contenant %{target}"
usable_tag_html: peut être utilisé ;
deleted_account: compte supprimé
empty: Aucun journal trouvé.
filter_by_action: Filtrer par action
+7
View File
@@ -289,7 +289,11 @@ fr:
enable_relay_html: "%{name} a activé le relais %{target}"
enable_sign_in_token_auth_user_html: "%{name} a activé l'authentification par jeton de courriel pour %{target}"
enable_user_html: "%{name} a activé la connexion de l'utilisateur·rice %{target}"
listable_tag_html: peut être suggéré
memorialize_account_html: "%{name} a converti le compte de %{target} en un mémorial"
not_listable_tag_html: ne sera pas suggéré
not_trendable_tag_html: n'apparaîtra pas dans les tendances
not_usable_tag_html: ne peut pas être utilisé
promote_user_html: "%{name} a promu l'utilisateur·rice %{target}"
publish_terms_of_service_html: "%{name} a publié des mises à jour des conditions d'utilisation"
reject_appeal_html: "%{name} a rejeté l'appel de la décision de modération émis par %{target}"
@@ -302,6 +306,7 @@ fr:
sensitive_account_html: "%{name} a marqué le média de %{target} comme sensible"
silence_account_html: "%{name} a masqué le compte de %{target}"
suspend_account_html: "%{name} a suspendu le compte de %{target}"
trendable_tag_html: peut apparaître dans les tendances
unassigned_report_html: "%{name} a désassigné le signalement %{target}"
unblock_email_account_html: "%{name} a débloqué l’adresse de courriel de %{target}"
unsensitive_account_html: "%{name} a enlevé le marquage comme sensible du média de %{target}"
@@ -314,8 +319,10 @@ fr:
update_ip_block_html: "%{name} a modifié la règle pour l'IP %{target}"
update_report_html: "%{name} a mis à jour le rapport de signalement %{target}"
update_status_html: "%{name} a mis à jour le message de %{target}"
update_tag_html: "%{name} a modifié les paramètres de %{target} pour : "
update_user_role_html: "%{name} a changé le rôle %{target}"
update_username_block_html: "%{name} a mis à jour une règle pour les noms d'utilisateurs contenant %{target}"
usable_tag_html: peut être utilisé ;
deleted_account: compte supprimé
empty: Aucun journal trouvé.
filter_by_action: Filtrer par action
+7
View File
@@ -289,7 +289,11 @@ gl:
enable_relay_html: "%{name} activou o repetidor %{target}"
enable_sign_in_token_auth_user_html: "%{name} activou a autenticación con token no correo para %{target}"
enable_user_html: "%{name} activou as credenciais para a usuaria %{target}"
listable_tag_html: pode ser suxerida
memorialize_account_html: "%{name} convertiu a conta de %{target} nunha páxina para o recordo"
not_listable_tag_html: non vai ser suxerida
not_trendable_tag_html: non aparecerá en tendencias
not_usable_tag_html: non pode ser usado
promote_user_html: "%{name} promocionou a usuaria %{target}"
publish_terms_of_service_html: "%{name} actualizou as condicións do servizo"
reject_appeal_html: "%{name} rexeitou a apelación da decisión da moderación de %{target}"
@@ -302,6 +306,7 @@ gl:
sensitive_account_html: "%{name} marcou o multimedia de %{target} como sensible"
silence_account_html: "%{name} acalou a conta de %{target}"
suspend_account_html: "%{name} suspendeu a conta de %{target}"
trendable_tag_html: pode aparecer nas tendencias
unassigned_report_html: "%{name} quitoulle a asignación á denuncia %{target}"
unblock_email_account_html: "%{name} desbloqueou o enderezo de email de %{target}"
unsensitive_account_html: "%{name} desmarcou como sensible o multimedia de %{target}"
@@ -314,8 +319,10 @@ gl:
update_ip_block_html: "%{name} cambiou a regra para IP %{target}"
update_report_html: "%{name} actualizou a denuncia %{target}"
update_status_html: "%{name} actualizou a publicación de %{target}"
update_tag_html: "%{name} cambiou os axustes de %{target} a: "
update_user_role_html: "%{name} cambiou o rol %{target}"
update_username_block_html: "%{name} actualizou a regra para identificadores que contén %{target}"
usable_tag_html: pódese usar;
deleted_account: conta eliminada
empty: Non se atoparon rexistros.
filter_by_action: Filtrar por acción
+7
View File
@@ -297,7 +297,11 @@ he:
enable_relay_html: "%{name} החיו את הממסר %{target}"
enable_sign_in_token_auth_user_html: '%{name} אפשר/ה אימות בעזרת אסימון דוא"ל עבור %{target}'
enable_user_html: "%{name} אפשר/ה כניסה עבור המשתמש %{target}"
listable_tag_html: ניתנות להצעה
memorialize_account_html: "%{name} הפך/ה את חשבונו של %{target} לדף הנצחה"
not_listable_tag_html: לא תוצענה
not_trendable_tag_html: לא תופענה תחת נושאים חמים
not_usable_tag_html: לא שמישות
promote_user_html: "%{name} העלה בדרגה את המשתמש %{target}"
publish_terms_of_service_html: "%{name} פירסמו עדכון לתנאי השירות"
reject_appeal_html: "%{name} דחו ערעור על החלטת הנהלת הקהילה מ-%{target}"
@@ -310,6 +314,7 @@ he:
sensitive_account_html: "%{name} סימן/ה את המדיה של %{target} כרגיש"
silence_account_html: "%{name} הגביל/ה את חשבונו של %{target}"
suspend_account_html: "%{name} השעו את חשבונו של %{target}"
trendable_tag_html: עשויה להופיע תחת נושאים חמים
unassigned_report_html: '%{name} דו"ח לא מוקצה %{target}'
unblock_email_account_html: '%{name} הסיר/ה חסימה מחשבון הדוא"ל של %{target}'
unsensitive_account_html: "%{name} ביטל/ה את סימון המדיה של %{target} כרגישה"
@@ -322,8 +327,10 @@ he:
update_ip_block_html: "%{name} שינה כלל עבור IP %{target}"
update_report_html: '%{name} עדכן/ה דו"ח %{target}'
update_status_html: "%{name} עדכן/ה הודעה של %{target}"
update_tag_html: "%{name} שינו את העדפותיהם לגבי %{target} באופן הבא: "
update_user_role_html: "%{name} שינה את התפקיד של %{target}"
update_username_block_html: "%{name} עידכנו חוק לשמות משתמש המכילים %{target}"
usable_tag_html: ניתנת לשימוש;
deleted_account: חשבון מחוק
empty: לא נמצאו יומנים.
filter_by_action: סינון לפי פעולה
+6
View File
@@ -289,7 +289,11 @@ hu:
enable_relay_html: "%{name} engedélyezte az átirányítót: %{target}"
enable_sign_in_token_auth_user_html: "%{name} engedélyezte a tokenes e-mail-hitelesítést %{target} felhasználóra"
enable_user_html: "%{name} engedélyezte %{target} felhasználó bejelentkezését"
listable_tag_html: javasolható
memorialize_account_html: "%{name} emléket állított %{target} felhasználónak"
not_listable_tag_html: nem lesz javasolva
not_trendable_tag_html: nem fog megjelenni a trendek alatt
not_usable_tag_html: nem használható
promote_user_html: "%{name} előléptette %{target} felhasználót"
publish_terms_of_service_html: "%{name} frissítette a felhasználási feltételeket"
reject_appeal_html: "%{name} visszautasított egy fellebbezést %{target} moderátori döntéséről"
@@ -302,6 +306,7 @@ hu:
sensitive_account_html: "%{name} kényesnek jelölte %{target} médiatartalmát"
silence_account_html: "%{name} lenémította %{target} felhasználói fiókját"
suspend_account_html: "%{name} felfüggesztette %{target} felhasználói fiókját"
trendable_tag_html: megjelenhet a trendek alatt
unassigned_report_html: "%{name} törölte a %{target} bejelentés hozzárendelését"
unblock_email_account_html: "%{name} feloldotta a(z) %{target} e-mail-cím tiltását"
unsensitive_account_html: "%{name} levette a kényesnek jelölést %{target} médiatartalmáról"
@@ -316,6 +321,7 @@ hu:
update_status_html: "%{name} frissítette %{target} felhasználó bejegyzését"
update_user_role_html: "%{name} módosította a(z) %{target} szerepkört"
update_username_block_html: "%{name} az ezt tartalmazó felhasználónevekre vonatkozó szabályt frissített: %{target}"
usable_tag_html: használható;
deleted_account: törölt fiók
empty: Nem található napló.
filter_by_action: Szűrés művelet alapján
+7
View File
@@ -289,7 +289,11 @@ is:
enable_relay_html: "%{name} virkjaði endurvarpann %{target}"
enable_sign_in_token_auth_user_html: "%{name} gerði virka auðkenningu með teikni í tölvupósti fyrir %{target}"
enable_user_html: "%{name} gerði innskráningu virka fyrir notandann %{target}"
listable_tag_html: má stinga uppá
memorialize_account_html: "%{name} breytti notandaaðgangnum %{target} í minningargreinarsíðu"
not_listable_tag_html: mun ekki vera stungið uppá
not_trendable_tag_html: mun ekki birtast í vinsældum
not_usable_tag_html: má ekki nota
promote_user_html: "%{name} hækkaði notandann %{target} í tign"
publish_terms_of_service_html: "%{name} gaf út uppfærða þjónustuskilmála"
reject_appeal_html: "%{name} hafnaði áfrýjun á ákvörðun umsjónarmanns frá %{target}"
@@ -302,6 +306,7 @@ is:
sensitive_account_html: "%{name} merkti myndefni frá %{target} sem viðkvæmt"
silence_account_html: "%{name} þaggaði niður í aðgangnum %{target}"
suspend_account_html: "%{name} setti notandaaðganginn %{target} í frysti"
trendable_tag_html: má vera með í vinsældum
unassigned_report_html: "%{name} fjarlægði úthlutun af kæru %{target}"
unblock_email_account_html: "%{name} opnaði á tölvupóstfangið %{target}"
unsensitive_account_html: "%{name} tók merkinguna viðkvæmt af myndefni frá %{target}"
@@ -314,8 +319,10 @@ is:
update_ip_block_html: "%{name} breytti reglu fyrir IP-vistfangið %{target}"
update_report_html: "%{name} uppfærði kæru %{target}"
update_status_html: "%{name} uppfærði færslu frá %{target}"
update_tag_html: "%{name} breytti %{target} stillingum í: "
update_user_role_html: "%{name} breytti hlutverki %{target}"
update_username_block_html: "%{name} uppfærði reglu varðandi notendanöfn sem innihalda %{target}"
usable_tag_html: má nota;
deleted_account: eyddur notandaaðgangur
empty: Engar atvikaskrár fundust.
filter_by_action: Sía eftir aðgerð
+7
View File
@@ -289,7 +289,11 @@ it:
enable_relay_html: "%{name} ha abilitato il relay %{target}"
enable_sign_in_token_auth_user_html: "%{name} ha abilitato l'autenticazione del token e-mail per %{target}"
enable_user_html: "%{name} ha abilitato l'accesso per l'utente %{target}"
listable_tag_html: può essere suggerito
memorialize_account_html: "%{name} ha trasformato il profilo di %{target} in una pagina commemorativa"
not_listable_tag_html: non sarà suggerito
not_trendable_tag_html: non apparirà nelle tendenze
not_usable_tag_html: non può essere usato
promote_user_html: "%{name} ha promosso l'utente %{target}"
publish_terms_of_service_html: "%{name} ha pubblicato aggiornamenti ai termini di servizio"
reject_appeal_html: "%{name} ha rifiutato il ricorso alla decisione di moderazione da %{target}"
@@ -302,6 +306,7 @@ it:
sensitive_account_html: "%{name} ha contrassegnato il media di %{target} come sensibile"
silence_account_html: "%{name} ha silenziato l'account di %{target}"
suspend_account_html: "%{name} ha sospeso l'account di %{target}"
trendable_tag_html: può apparire nelle tendenze
unassigned_report_html: "%{name} ha disassegnato il rapporto %{target}"
unblock_email_account_html: "%{name} ha sbloccato l'indirizzo email di %{target}"
unsensitive_account_html: "%{name} ha annullato il segnare il media di %{target} come sensibile"
@@ -314,8 +319,10 @@ it:
update_ip_block_html: "%{name} ha cambiato la regola per l'IP %{target}"
update_report_html: "%{name} ha aggiornato la segnalazione %{target}"
update_status_html: "%{name} ha aggiornato lo status di %{target}"
update_tag_html: "%{name} ha cambiato le impostazioni di %{target} in: "
update_user_role_html: "%{name} ha modificato il ruolo %{target}"
update_username_block_html: "%{name} ha aggiornato la regola per i nomi utente contenenti %{target}"
usable_tag_html: può essere usato;
deleted_account: account eliminato
empty: Nessun log trovato.
filter_by_action: Filtra per azione
+7
View File
@@ -289,7 +289,11 @@ nn:
enable_relay_html: "%{name} skrudde på reléet %{target}"
enable_sign_in_token_auth_user_html: "%{name} aktiverte e-post-token-autentisering for %{target}"
enable_user_html: "%{name} aktiverte innlogging for brukaren %{target}"
listable_tag_html: kan bli føreslege
memorialize_account_html: "%{name} endret %{target}s konto til en minneside"
not_listable_tag_html: vil ikkje bli føreslege
not_trendable_tag_html: kjem ikkje til å syna under trendar
not_usable_tag_html: kan ikkje brukast
promote_user_html: "%{name} fremja brukaren %{target}"
publish_terms_of_service_html: "%{name} endra bruksvilkåra"
reject_appeal_html: "%{name} avviste klagen frå %{target} på modereringa"
@@ -302,6 +306,7 @@ nn:
sensitive_account_html: "%{name} markerte %{target} sitt media som ømtolig"
silence_account_html: "%{name} avgrensa %{target} sin konto"
suspend_account_html: "%{name} utviste %{target} sin konto"
trendable_tag_html: kan dukka opp under trendar
unassigned_report_html: "%{name} løyste ein rapport %{target}"
unblock_email_account_html: "%{name} avblokkerte %{target} si e-postadresse"
unsensitive_account_html: "%{name} avmarkerte %{target} sitt media som ømtolig"
@@ -314,8 +319,10 @@ nn:
update_ip_block_html: "%{name} endret regel for IP %{target}"
update_report_html: "%{name} oppdaterte rapporten %{target}"
update_status_html: "%{name} oppdaterte innlegg av %{target}"
update_tag_html: "%{name} endra innstillingane for %{target} til: "
update_user_role_html: "%{name} endret %{target} -rolle"
update_username_block_html: "%{name} oppdaterte regelen for brukarnamn som inneheld %{target}"
usable_tag_html: kan brukast;
deleted_account: sletta konto
empty: Ingen loggar funne.
filter_by_action: Sorter etter handling
+7
View File
@@ -289,7 +289,11 @@ pt-BR:
enable_relay_html: "%{name} ativou uma retransmissão %{target}"
enable_sign_in_token_auth_user_html: "%{name} ativou a autenticação via token por e-mail para %{target}"
enable_user_html: "%{name} ativou o login para %{target}"
listable_tag_html: pode ser sugerido
memorialize_account_html: "%{name} transformou a conta de %{target} em um memorial"
not_listable_tag_html: não será sugerido
not_trendable_tag_html: não aparecerá em alta
not_usable_tag_html: não pode ser usado
promote_user_html: "%{name} promoveu o usuário %{target}"
publish_terms_of_service_html: "%{name} publicou atualizações aos termos de serviço"
reject_appeal_html: "%{name} rejeitou a revisão da decisão da moderação em %{target}"
@@ -302,6 +306,7 @@ pt-BR:
sensitive_account_html: "%{name} marcou a mídia de %{target} como sensível"
silence_account_html: "%{name} limitou a conta de %{target}"
suspend_account_html: "%{name} suspendeu a conta de %{target}"
trendable_tag_html: aparecerá em alta
unassigned_report_html: "%{name} desatribuiu a denúncia %{target}"
unblock_email_account_html: "%{name} desbloqueou o endereço de e-mail de %{target}"
unsensitive_account_html: "%{name} desmarcou a mídia de %{target} como sensível"
@@ -314,8 +319,10 @@ pt-BR:
update_ip_block_html: "%{name} alterou a regra para o IP %{target}"
update_report_html: "%{name} atualizou o relatório %{target}"
update_status_html: "%{name} atualizou a publicação de %{target}"
update_tag_html: "%{name} alterou as opções de %{target} para: "
update_user_role_html: "%{name} alterou o cargo %{target}"
update_username_block_html: Regra %{name} atualizada para nomes de usuários contendo %{target}
usable_tag_html: pode ser usado;
deleted_account: conta excluída
empty: Nenhum registro encontrado.
filter_by_action: Filtrar por ação
+14
View File
@@ -4,6 +4,7 @@ cs:
hints:
account:
attribution_domains: Jeden na řádek. Chrání před falešným připisováním autorství.
discoverable: Můžete být uvedeni v kolekcích vytvořených jinými uživateli. Vy a vaše veřejné příspěvky mohou být doporučeny také uživatelům v jiných objevovacích zážitcích Mastodonu.
display_name: Vaše celé jméno nebo přezdívka.
fields: Vaše domovská stránka, zájmena, věk, cokoliv chcete.
indexable: Vaše veřejné příspěvky se mohou objevit ve výsledcích vyhledávání na Mastodonu. Lidé, kteří s vašimi příspěvky interagovaly, je mohou stále vyhledávat.
@@ -60,6 +61,9 @@ cs:
setting_default_quote_policy_private: Příspěvky pouze pro sledující, které jsou vytvořeny na Mastodonu, nemohou být citovány ostatními.
setting_default_quote_policy_unlisted: Když vás lidé citují, jejich příspěvek bude v časové ose populárních příspěvků také skryt.
setting_default_sensitive: Citlivá média jsou ve výchozím stavu skryta a mohou být zobrazena kliknutím
setting_display_media_default: Varovat před zobrazením médií označených jako citlivá
setting_display_media_hide_all: Varovat před zobrazením jakýchkoliv médií
setting_display_media_show_all: Zobrazit všechna média bez varování, včetně médií označených jako citlivá
setting_emoji_style: Jak se budou zobrazovat emoji. "Auto" zkusí použít výchozí emoji, ale pro starší prohlížeče použije Twemoji.
setting_quick_boosting_html: Pokud je povoleno, kliknutím na %{boost_icon} Boost ikonu okamžitě boostnete místo otevření rozbalovací nabídky boost/citace. Přemístí citaci do nabídky %{options_icon} (Možnosti).
setting_use_blurhash: Gradienty jsou vytvořeny na základě barvev skrytých médií, ale zakrývají veškeré detaily
@@ -87,6 +91,7 @@ cs:
closed_registrations_message: Zobrazeno při zavření registrace
content_cache_retention_period: Všechny příspěvky z jiných serverů (včetně boostů a odpovědí) budou po uplynutí stanoveného počtu dní smazány bez ohledu na interakci místního uživatele s těmito příspěvky. To se týká i příspěvků, které místní uživatel přidal do záložek nebo oblíbených. Soukromé zmínky mezi uživateli z různých instancí budou rovněž ztraceny a nebude možné je obnovit. Použití tohoto nastavení je určeno pro instance pro speciální účely a při implementaci pro obecné použití porušuje mnohá očekávání uživatelů.
custom_css: Můžete použít vlastní styly ve verzi Mastodonu.
email_footer_text: Volitelný text, který se zobrazí pouze v zápatí newsletter e-mailů.
favicon: WEBP, PNG, GIF nebo JPG. Nahradí výchozí favicon Mastodonu vlastní ikonou.
landing_page: Vybere stránku, kterou návštěvníci uvidí, když prvně přijdou na tvůj server. Pokud zvolíte "Trendy", je třeba povolit trendy v nastavení objevování. Pokud zvolíte "Místní kanál", je třeba v nastavení Objevování nastavit "Přístup k živým kanálům s lokálními příspěvky" na "Všichni".
mascot: Přepíše ilustraci v pokročilém webovém rozhraní.
@@ -104,6 +109,7 @@ cs:
status_page_url: URL stránky, kde mohou lidé vidět stav tohoto serveru během výpadku
theme: Vzhled stránky, který vidí noví a odhlášení uživatelé.
thumbnail: Přibližně 2:1 obrázek zobrazený vedle informací o vašem serveru.
thumbnail_description: Popis obrázku, který pomůže lidem se zrakovým postižením pochopit jeho obsah.
trendable_by_default: Přeskočit manuální kontrolu populárního obsahu. Jednotlivé položky mohou být odstraněny z trendů později.
trends: Trendy zobrazují, které příspěvky, hashtagy a zprávy získávají na serveru pozornost.
wrapstodon: Nabídněte místním uživatelům možnost vygenerovat hravé shrnutí jejich používání Mastodonu během roku. Tato funkce je dostupná od 10. do 31. prosince každého roku a je nabízena uživatelům, kteří během roku vytvořili alespoň jeden veřejný nebo tichý příspěvek a použili alespoň jeden hashtag.
@@ -129,6 +135,7 @@ cs:
otp: 'Zadejte kód pro dvoufázové ověření vygenerovaný vaší mobilní aplikací, nebo použijte jeden z vašich záložních kódů:'
webauthn: Pokud jde o USB klíč, vložte jej a případně se dotkněte jeho tlačítka.
settings:
email_subscriptions: Zakázání zachová stávající odběratele, ale přestane posílat e-maily.
indexable: Vaše profilová stránka se může objevit ve výsledcích vyhledávání na Google, Bingu a ostatních vyhledávačích.
show_application: I tak budete vždy moci vidět, která aplikace zveřejnila váš příspěvek.
tag:
@@ -155,6 +162,7 @@ cs:
other: Musíme se ujistit, že je Vám alespoň %{count}, abyste mohli používat %{domain}. Nebudeme to ukládat.
role: Role určuje, která oprávnění uživatel má.
user_role:
collection_limit: Omezuje počet kolekcí, které může jeden uživatel s touto rolí vytvořit. Vezměte prosím na vědomí, že pokud snížíte toto číslo, uživatelé, kteří jsou již na tomto limitu, neztratí žádné kolekce. Nebudou však moci vytvářet další.
color: Barva, která má být použita pro roli v celém UI, jako RGB v hex formátu
highlighted: Toto roli učiní veřejně viditelnou
name: Veřejný název role, pokud má být role zobrazena jako odznak
@@ -286,6 +294,7 @@ cs:
closed_registrations_message: Vlastní zpráva, když přihlášení není k dispozici
content_cache_retention_period: Doba uchovávání vzdáleného obsahu
custom_css: Vlastní CSS
email_footer_text: Dodatečný text zápatí
favicon: Favicon
landing_page: Úvodní stránka pro nové návštěvníky
local_live_feed_access: Přístup k živým kanálům s lokálními příspěvky
@@ -313,6 +322,9 @@ cs:
trendable_by_default: Povolit trendy bez předchozí revize
trends: Povolit trendy
wrapstodon: Povolit Wrapstodon
form_email_subscriptions_confirmation:
agreement_email_volume: Chápu, že povolením této funkce se může výrazně zvýšit objem e-mailů odesílaných ze serveru a že jsem výhradně zodpovědný za jakékoliv vynaložené náklady.
agreement_privacy_and_terms: Aktualizovali jsme Zásady ochrany osobních údajů a Smluvní podmínky.
interactions:
must_be_follower: Blokovat oznámení od lidí, kteří vás nesledují
must_be_following: Blokovat oznámení od lidí, které nesledujete
@@ -351,6 +363,7 @@ cs:
hint: Další informace
text: Pravidlo
settings:
email_subscriptions: Povolit registraci e-mailem
indexable: Zahrnout stránku profilu do vyhledávačů
show_application: Zobrazit aplikaci, ze které jste odeslali příspěvek
tag:
@@ -379,6 +392,7 @@ cs:
role: Role
time_zone: Časové pásmo
user_role:
collection_limit: Maximální počet kolekcí na uživatele
color: Barva odznaku
highlighted: Zobrazit roli jako odznak na profilech uživatelů
name: Název
+1 -1
View File
@@ -370,7 +370,7 @@ es:
tag:
listable: Permitir que esta etiqueta aparezca en las búsquedas y en el directorio del perfil
name: Etiqueta
trendable: Permitir que esta etiqueta aparezca bajo tendencias
trendable: Permitir que esta etiqueta aparezca en tendencia
usable: Permitir a las publicaciones usar esta etiqueta localmente
terms_of_service:
changelog: "¿Qué ha cambiado?"
+8
View File
@@ -289,7 +289,11 @@ sq:
enable_relay_html: "%{name} aktivizoi relenë %{target}"
enable_sign_in_token_auth_user_html: "%{name} aktivizoi mirëfilltësim me token email për %{target}"
enable_user_html: "%{name} aktivizoi hyrje për përdoruesin %{target}"
listable_tag_html: mund të sugjerohet
memorialize_account_html: "%{name} e shndërroi llogarinë e %{target} në një faqe përkujtimore"
not_listable_tag_html: s’do të sugjerohet
not_trendable_tag_html: s’do të shfaqet nën gjëra në modë
not_usable_tag_html: s’mund të përdoret
promote_user_html: "%{name} gradoi përdoruesin %{target}"
publish_terms_of_service_html: "%{name} botoi përditësime të kushteve të shërbimit"
reject_appeal_html: "%{name} hodhi poshtë apelim vendimi moderimi nga %{target}"
@@ -302,6 +306,7 @@ sq:
sensitive_account_html: "%{name} i vuri shenjë si rezervat medias në %{target}"
silence_account_html: "%{name} heshtoi llogarinë e %{target}"
suspend_account_html: "%{name} pezulloi llogarinë e %{target}"
trendable_tag_html: mund të shfaqet nën gjëra nën modë
unassigned_report_html: "%{name} rihapi raportimin %{target}"
unblock_email_account_html: "%{name} zhbllokoi adresën email të %{target}"
unsensitive_account_html: "%{name} ia hoqi shenjën si rezervat medias në %{target}"
@@ -314,8 +319,10 @@ sq:
update_ip_block_html: "%{name} ndryshoi rregull për IP-në %{target}"
update_report_html: "%{name} përditësoi raportimin %{target}"
update_status_html: "%{name} përditësoi gjendjen me %{target}"
update_tag_html: "%{name} ndryshoi rregullime %{target} në: "
update_user_role_html: "%{name} ndryshoi rolin për %{target}"
update_username_block_html: "%{name} përditësoi rregull për emra përdoruesish që përmbajnë %{target}"
usable_tag_html: mund të përdoret;
deleted_account: fshiu llogarinë
empty: S’u gjetën regjistra.
filter_by_action: Filtroji sipas veprimit
@@ -1920,6 +1927,7 @@ sq:
next: Pasuesi
older: Më të vjetër
prev: I mëparshmi
truncate_html: "&hellip;"
polls:
errors:
already_voted: Keni votuar tashmë në këtë pyetësor
+7
View File
@@ -289,7 +289,11 @@ sv:
enable_relay_html: "%{name} aktiverat ombudet %{target}"
enable_sign_in_token_auth_user_html: "%{name} aktiverade e-posttokenautentisering för %{target}"
enable_user_html: "%{name} aktiverade inloggning för användaren %{target}"
listable_tag_html: kan föreslås
memorialize_account_html: "%{name} gjorde %{target}s konto till en minnessida"
not_listable_tag_html: kommer ej föreslås
not_trendable_tag_html: kommer ej visas under trender
not_usable_tag_html: kan inte användas
promote_user_html: "%{name} befordrade användaren %{target}"
publish_terms_of_service_html: "%{name} publicerade uppdateringar till användarvillkoren"
reject_appeal_html: "%{name} avvisade överklagande av modereringsbeslut från %{target}"
@@ -302,6 +306,7 @@ sv:
sensitive_account_html: "%{name} markerade %{target}s media som känsligt"
silence_account_html: "%{name} begränsade %{target}s konto"
suspend_account_html: "%{name} stängde av %{target}s konto"
trendable_tag_html: kan visas under trender
unassigned_report_html: "%{name} tog bort tilldelning av rapporten %{target}"
unblock_email_account_html: "%{name} avblockerade %{target}s e-postadress"
unsensitive_account_html: "%{name} avmarkerade %{target}s media som känsligt"
@@ -314,8 +319,10 @@ sv:
update_ip_block_html: "%{name} ändrade regel för IP %{target}"
update_report_html: "%{name} uppdaterade rapporten %{target}"
update_status_html: "%{name} uppdaterade inlägget av %{target}"
update_tag_html: "%{name} ändrade %{target} inställningar till: "
update_user_role_html: "%{name} ändrade rollen %{target}"
update_username_block_html: "%{name} uppdaterade regel för användarnamn som innehåller %{target}"
usable_tag_html: kan användas;
deleted_account: raderat konto
empty: Inga loggar hittades.
filter_by_action: Filtrera efter åtgärd
+7
View File
@@ -285,7 +285,11 @@ vi:
enable_relay_html: "%{name} đã bật relay %{target}"
enable_sign_in_token_auth_user_html: "%{name} đã bật xác minh email của %{target}"
enable_user_html: "%{name} đã bỏ vô hiệu hóa đăng nhập %{target}"
listable_tag_html: có thể đề xuất
memorialize_account_html: "%{name} đã biến tài khoản %{target} thành một trang tưởng niệm"
not_listable_tag_html: không thể đề xuất
not_trendable_tag_html: không cho lên xu hướng
not_usable_tag_html: không được phép dùng
promote_user_html: "%{name} đã nâng vai trò của %{target}"
publish_terms_of_service_html: "%{name} đã cập nhật điều khoản dịch vụ"
reject_appeal_html: "%{name} đã từ chối khiếu nại từ %{target}"
@@ -298,6 +302,7 @@ vi:
sensitive_account_html: "%{name} đã gán nội dung của %{target} là nhạy cảm"
silence_account_html: "%{name} đã ẩn %{target}"
suspend_account_html: "%{name} đã vô hiệu hóa %{target}"
trendable_tag_html: cho phép lên xu hướng
unassigned_report_html: "%{name} đã thôi xử lý báo cáo %{target}"
unblock_email_account_html: "%{name} đã bỏ chặn địa chỉ email của %{target}"
unsensitive_account_html: "%{name} đã gán nội dung của %{target} là bình thường"
@@ -310,8 +315,10 @@ vi:
update_ip_block_html: "%{name} đã cập nhật chặn IP %{target}"
update_report_html: "%{name} đã cập nhật báo cáo %{target}"
update_status_html: "%{name} đã cập nhật tút của %{target}"
update_tag_html: "%{name} đã thay đổi thiết lập %{target} thành: "
update_user_role_html: "%{name} đã cập nhật vai trò %{target}"
update_username_block_html: "%{name} đã cập nhật quy tắc cho tên người dùng chứa %{target}"
usable_tag_html: có thể dùng;
deleted_account: tài khoản đã xóa
empty: Không tìm thấy bản ghi.
filter_by_action: Theo hành động
+7
View File
@@ -285,7 +285,11 @@ zh-CN:
enable_relay_html: "%{name} 启用了中继站 %{target}"
enable_sign_in_token_auth_user_html: "%{name} 为 %{target} 启用了邮件令牌身份验证"
enable_user_html: "%{name} 将用户 %{target} 设置为允许登录"
listable_tag_html: 可被推荐
memorialize_account_html: "%{name} 将 %{target} 转为纪念账号"
not_listable_tag_html: 不会被推荐
not_trendable_tag_html: 不会出现在热门列表中
not_usable_tag_html: 不可使用
promote_user_html: "%{name} 将用户 %{target} 设为管理员"
publish_terms_of_service_html: "%{name} 更新了服务条款"
reject_appeal_html: "%{name} 驳回了 %{target} 对审核结果的申诉"
@@ -298,6 +302,7 @@ zh-CN:
sensitive_account_html: "%{name} 将 %{target} 的媒体标记为敏感内容"
silence_account_html: "%{name} 隐藏了用户 %{target}"
suspend_account_html: "%{name} 封禁了用户 %{target}"
trendable_tag_html: 可显示在热门列表中
unassigned_report_html: "%{name} 放弃接管举报 %{target}"
unblock_email_account_html: "%{name} 取消屏蔽了 %{target} 的邮件地址"
unsensitive_account_html: "%{name} 去除了 %{target} 的媒体的敏感内容标记"
@@ -310,8 +315,10 @@ zh-CN:
update_ip_block_html: "%{name} 修改了对 IP %{target} 的规则"
update_report_html: "%{name} 更新了举报 %{target}"
update_status_html: "%{name} 刷新了 %{target} 的嘟文"
update_tag_html: "%{name} 已将 %{target} 的设置更改为:"
update_user_role_html: "%{name} 更改了角色 %{target}"
update_username_block_html: "%{name} 更新了有关包含 %{target} 的用户名的规则"
usable_tag_html: 可以使用;
deleted_account: 账号已注销
empty: 没有找到日志
filter_by_action: 根据操作筛选
+7
View File
@@ -287,7 +287,11 @@ zh-TW:
enable_relay_html: "%{name} 已啟用中繼 %{target}"
enable_sign_in_token_auth_user_html: "%{name} 已啟用 %{target} 之使用者電子郵件 token 驗證"
enable_user_html: "%{name} 將使用者 %{target} 設定為允許登入"
listable_tag_html: 能被建議
memorialize_account_html: "%{name} 將 %{target} 設定為追悼帳號"
not_listable_tag_html: 不能被建議
not_trendable_tag_html: 不會登上熱門
not_usable_tag_html: 不可被使用
promote_user_html: "%{name} 對使用者 %{target} 已進行晉級操作"
publish_terms_of_service_html: "%{name} 已發佈服務條款更新"
reject_appeal_html: "%{name} 已回絕來自 %{target} 的審核決定申訴"
@@ -300,6 +304,7 @@ zh-TW:
sensitive_account_html: "%{name} 將 %{target} 的媒體檔案標記為敏感內容"
silence_account_html: "%{name} 已靜音使用者 %{target}"
suspend_account_html: "%{name} 已停權 %{target} 的帳號"
trendable_tag_html: 能登上熱門
unassigned_report_html: "%{name} 取消指派 %{target} 的檢舉"
unblock_email_account_html: "%{name} 已解除封鎖 %{target} 的電子郵件地址"
unsensitive_account_html: "%{name} 將 %{target} 的媒體檔案取消標記為敏感內容"
@@ -312,8 +317,10 @@ zh-TW:
update_ip_block_html: "%{name} 已變更 IP %{target} 之規則"
update_report_html: "%{name} 已更新 %{target} 的檢舉"
update_status_html: "%{name} 已更新 %{target} 的嘟文"
update_tag_html: "%{name} 已變更 %{target} 設定為:"
update_user_role_html: "%{name} 已變更 %{target} 角色"
update_username_block_html: "%{name} 已變更使用者名稱包含 %{target} 之規則"
usable_tag_html: 可被使用;
deleted_account: 已刪除帳號
empty: 找不到 log
filter_by_action: 按動作過濾
+96
View File
@@ -0,0 +1,96 @@
# frozen_string_literal: true
# Originally written by ViaCelestia
# https://github.com/dryruby/json-canonicalization/pull/6
class Numeric
# This is intended to be compliant with ECMA-262, version 6.0 (ES6)
#
# See https://262.ecma-international.org/6.0/#sec-tostring-applied-to-the-number-type
#
# JSON does not permit NaN or infinite values, so those raise an error
def to_json_c14n
raise RangeError if self.is_a?(Float) && !self.finite?
return '0' if self.zero?
# We may or may not be using scientific notation (see https://en.wikipedia.org/wiki/Scientific_notation)
# at this point, but the terminology is the same. Numbers are represented as a significand
# (also known as a mantissa) multiplied by 10 raised to an exponent. A number like 1701 may be represented
# as 1701 * 10^0, 170.1 * 10^1, 17.01 * 10^2, or (in scientific notation) 1.701 * 10^3. ES6 and Ruby don't
# always agree on when to use scientific notation, but if Ruby has done the conversion, we can use the
# exponent below when reproducing the behavior in the ES6 spec.
significand_digits, exponent_digits = self.abs.to_s.split('e', 2)
integer_digits, fraction_digits = significand_digits.split('.', 2)
# From the ES6 spec:
#
# "The abstract operation ToString converts a Number m to String format as follows ...
# let n, k, and s be integers such that k ≥ 1, 10k−1 ≤ s < 10k, the Number value for s × 10n−k is m,
# and k is as small as possible. Note that k is the number of digits in the decimal representation of s,
# that s is not divisible by 10, and that the least significant digit of s is not necessarily uniquely
# determined by these criteria."
#
# This is just a different sort of exponential notation, but instead of preferring 0 < s < 10 as in
# scientific notation, here we want s to be an integer, and not divisible by 10. Since we're relying
# on ruby's existing #to_s, s is just the significand without the decimal or any leading or trailing
# zeroes
s = significand_digits.sub('.', '').sub(/^-?0*/, '').sub(/0*$/, '')
# Once we know s, k is easy
k = s.length
# If n is positive, it represents the number of digits (including trailing zeroes) to the left of the
# decimal. If n is negative or zero, it represents the number of zeroes to the right of the decimal.
# n-1 is also equal to the exponent used in scientific notation represenations of m, so if we already
# have that representation, we can use that rather than try to recalculate where the decimal would be
# If we don't already have an exponent, we just do digit counting rather than using Math.log10(self) or
# the slightly more precise Math.log2(self)/Math.log2(10) since that can lose precision for values very
# close to n = 22, like the Integer value 999999999999999700000
n = if exponent_digits
exponent_digits.to_i + 1
elsif integer_digits.to_i > 0
integer_digits.length
else
-fraction_digits.index(/[1-9]/)
end
exponent = n - 1
# Per the spec, positive numbers do not include a sign, but exponents always do
sign = self.negative? ? '-' : ''
exponent_sign = exponent.negative? ? '-' : '+'
if k <= n && n <= 21 # Whole numbers, possibly with trailing zeroes, and < 10^21
# return the String consisting of the code units of the k digits of the decimal representation of s
# (in order, with no leading zeroes), followed by n−k occurrences of the code unit 0x0030 (DIGIT ZERO).
[sign, s, '0' * (n - k)].join
elsif 0 < n && n <= 21 # Numbers with an integer component < 10^21
# return the String consisting of the code units of the most significant n digits of the decimal
# representation of s, followed by the code unit 0x002E (FULL STOP), followed by the code units of the
# remaining k−n digits of the decimal representation of s.
[sign, s[0..(n-1)], '.', s[n..-1]].join
elsif -6 < n && n <= 0 # Fractional numbers to no more than 6 decimal places
# return the String consisting of the code unit 0x0030 (DIGIT ZERO), followed by the code unit 0x002E
# (FULL STOP), followed by −n occurrences of the code unit 0x0030 (DIGIT ZERO), followed by the code
# units of the k digits of the decimal representation of s
[sign, '0.', '0' * (-n), s].join
elsif k == 1 # single significant digit outside of -6 < n <= 21
# return the String consisting of the code unit of the single digit of s, followed by code unit 0x0065
# (LATIN SMALL LETTER E), followed by the code unit 0x002B (PLUS SIGN) or the code unit 0x002D
# (HYPHEN-MINUS) according to whether n−1 is positive or negative, followed by the code units of the decimal
# representation of the integer abs(n−1) (with no leading zeroes).
#
# This produces "1e-18", rather than Ruby's default "1.0e-18"
[sign, s, 'e', exponent_sign, exponent.abs].join
else # multiple significant digits outside of -6 < n <= 21
# Return the String consisting of the code units of the most significant digit of the decimal representation
# of s, followed by code unit 0x002E (FULL STOP), followed by the code units of the remaining k−1 digits of
# the decimal representation of s, followed by code unit 0x0065 (LATIN SMALL LETTER E), followed by code unit
# 0x002B (PLUS SIGN) or the code unit 0x002D (HYPHEN-MINUS) according to whether n−1 is positive or negative,
# followed by the code units of the decimal representation of the integer abs(n−1) (with no leading zeroes).
[sign, s[0], '.', s[1..-1], 'e', exponent_sign, exponent.abs].join
end
end
end
+15 -3
View File
@@ -612,10 +612,22 @@ module Mastodon::CLI
def rotate_keys_for_account(account, delay = 0)
fail_with_message 'No such account' if account.nil?
old_key = account.private_key
old_key = account.keypair
new_key = OpenSSL::PKey::RSA.new(2048)
account.update(private_key: new_key.to_pem, public_key: new_key.public_key.to_pem)
ActivityPub::UpdateDistributionWorker.perform_in(delay, account.id, { 'sign_with' => old_key })
account.update(private_key: nil, public_key: '', keypairs: [account.keypairs.build(local_fragment: '#main-key', type: :rsa, public_key: new_key.public_key.to_pem, private_key: new_key.to_pem)])
ActivityPub::UpdateDistributionWorker.perform_in(
delay,
account.id,
{
'sign_with' => {
'private_key' => old_key.private_key,
'local_fragment' => old_key.local_fragment,
'type' => old_key.type,
},
}
)
end
end
end
@@ -159,6 +159,6 @@ RSpec.describe ActivityPub::LinkedDataSignature do
options_hash = Digest::SHA256.hexdigest(canonicalize(options.merge('@context' => ActivityPub::LinkedDataSignature::CONTEXT)))
document_hash = Digest::SHA256.hexdigest(canonicalize(document))
to_be_verified = options_hash + document_hash
Base64.strict_encode64(from_actor.keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_verified))
Base64.strict_encode64(from_actor.keypair.keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_verified))
end
end
@@ -0,0 +1,131 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe ActivityPub::ObjectIntegrityProof do
describe '#verify_actor!' do
# https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.feature#L68
let(:actor) { Fabricate(:account, username: 'alice', domain: 'server.example.org', uri: 'https://server.example/users/alice', public_key: '') }
let(:json) do
JSON.parse(<<~JSON)
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/data-integrity/v2"
],
"id": "https://server.example/activities/1",
"type": "Create",
"actor": "https://server.example/users/alice",
"object": {
"id": "https://server.example/objects/1",
"type": "Note",
"attributedTo": "https://server.example/users/alice",
"content": "Hello world",
"location": {
"type": "Place",
"longitude": -71.184902,
"latitude": 25.273962
}
},
"proof": {
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/data-integrity/v2"
],
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"verificationMethod": "https://server.example/users/alice#ed25519-key",
"proofPurpose": "assertionMethod",
"proofValue": "z42ffGu6AUKPCFcFPiabmUvnGLPJzC7e4DGWC52NUasSSH37UMa9c58tdgVszUcZfytxa4fQ5TYHaJENCxUDe9SdL",
"created": "2023-02-24T23:36:38Z"
}
}
JSON
end
before do
asn1 = OpenSSL::ASN1::Sequence(
[
OpenSSL::ASN1::Sequence([OpenSSL::ASN1::ObjectId('ED25519')]),
OpenSSL::ASN1::BitString(Multibase.decode_multicodec('z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2')[1]),
]
)
keypair = OpenSSL::PKey.read(asn1.to_der)
Fabricate(:keypair, account: actor, uri: 'https://server.example/users/alice#ed25519-key', type: :ed25519, public_key: keypair.public_to_pem)
end
context 'when the signature is correct' do
it 'returns the actor' do
expect(described_class.new(json).verify_actor!).to eq actor
end
end
end
describe 'verify_eddsa_jcs_2022' do
# https://www.w3.org/TR/vc-di-eddsa/#representation-eddsa-jcs-2022
let(:keypair) do
asn1 = OpenSSL::ASN1::Sequence(
[
OpenSSL::ASN1::Sequence([OpenSSL::ASN1::ObjectId('ED25519')]),
OpenSSL::ASN1::BitString(Multibase.decode_multicodec('z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2')[1]),
]
)
OpenSSL::PKey.read(asn1.to_der)
end
let(:secured_json) do
JSON.parse(<<~JSON)
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33",
"type": [
"VerifiableCredential",
"AlumniCredential"
],
"name": "Alumni Credential",
"description": "A minimum viable example of an Alumni Credential.",
"issuer": "https://vc.example/issuers/5678",
"validFrom": "2023-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:example:abcdefgh",
"alumniOf": "The School of Examples"
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"created": "2023-02-24T23:36:38Z",
"verificationMethod": "did:key:z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2",
"proofPurpose": "assertionMethod",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"proofValue": "z2HnFSSPPBzR36zdDgK8PbEHeXbR56YF24jwMpt3R1eHXQzJDMWS93FCzpvJpwTWd3GAVFuUfjoJdcnTMuVor51aX"
}
}
JSON
end
context 'with a correct signature' do
it 'verifies correctly' do
expect(described_class.verify_eddsa_jcs_2022(secured_json, keypair)).to be true
end
end
context 'with an incorrect signature' do
let(:keypair) { OpenSSL::PKey.generate_key('ed25519') }
it 'does not verify document' do
expect(described_class.verify_eddsa_jcs_2022(secured_json, keypair)).to be false
end
end
end
end
+11 -11
View File
@@ -36,10 +36,10 @@ RSpec.describe Mastodon::CLI::Accounts do
shared_examples 'a new user with given email address and username' do
it 'creates user and accounts from options and displays success message' do
allow(SecureRandom).to receive(:hex).and_return('test_password')
allow(SecureRandom).to receive(:hex).and_return('0abcdef0')
expect { subject }
.to output_results('OK', 'New password: test_password')
.to output_results('OK', 'New password: 0abcdef0')
expect(user_from_options).to be_present
expect(account_from_options).to be_present
end
@@ -363,7 +363,7 @@ RSpec.describe Mastodon::CLI::Accounts do
let(:user) { Fabricate(:user, password: original_password) }
let(:original_password) { 'foobar12345' }
let(:new_password) { 'new_password12345' }
let(:new_password) { '0abcdef0' }
it 'returns a new password for the user' do
allow(SecureRandom).to receive(:hex).and_return(new_password)
@@ -951,15 +951,15 @@ RSpec.describe Mastodon::CLI::Accounts do
let(:arguments) { [account.username] }
it 'correctly rotates keys for the specified account' do
old_private_key = account.private_key
old_public_key = account.public_key
old_private_key = account.keypair.private_key
old_public_key = account.keypair.public_key
expect { subject }
.to output_results('OK')
account.reload
expect(account.private_key).to_not eq(old_private_key)
expect(account.public_key).to_not eq(old_public_key)
expect(account.keypair.private_key).to_not eq(old_private_key)
expect(account.keypair.public_key).to_not eq(old_public_key)
end
it 'broadcasts the new keys for the specified account' do
@@ -986,15 +986,15 @@ RSpec.describe Mastodon::CLI::Accounts do
let(:options) { { all: true } }
it 'correctly rotates keys for all local accounts' do
old_private_keys = accounts.map(&:private_key)
old_public_keys = accounts.map(&:public_key)
old_private_keys = accounts.map { |account| account.keypair.private_key }
old_public_keys = accounts.map { |account| account.keypair.public_key }
expect { subject }
.to output_results('rotated')
accounts.each(&:reload)
expect(accounts.map(&:private_key)).to_not eq(old_private_keys)
expect(accounts.map(&:public_key)).to_not eq(old_public_keys)
expect(accounts.map { |account| account.keypair.private_key }).to_not eq(old_private_keys)
expect(accounts.map { |account| account.keypair.public_key }).to_not eq(old_public_keys)
end
it 'broadcasts the new keys for each account' do
+5 -4
View File
@@ -246,9 +246,10 @@ RSpec.describe Account do
end
describe '#keypair' do
it 'returns an RSA key pair' do
it 'returns a Keypair object with a RSA key pair' do
account = Fabricate(:account)
expect(account.keypair).to be_instance_of OpenSSL::PKey::RSA
expect(account.keypair).to be_instance_of Keypair
expect(account.keypair.keypair).to be_instance_of OpenSSL::PKey::RSA
end
end
@@ -738,7 +739,7 @@ RSpec.describe Account do
expect(account)
.to be_private_key
.and be_public_key
expect(account.keypair)
expect(account.keypair.keypair)
.to be_private
.and be_public
end
@@ -748,7 +749,7 @@ RSpec.describe Account do
it 'does not generate keys' do
key = OpenSSL::PKey::RSA.new(1024).public_key
account = described_class.create!(domain: 'remote', uri: 'https://remote/actor', username: 'remote_user_with_public', public_key: key.to_pem)
expect(account.keypair.params).to eq key.params
expect(account.keypair.keypair.params).to eq key.params
end
it 'normalizes domain' do
+23
View File
@@ -11,6 +11,29 @@ RSpec.describe Keypair do
end
end
describe '#full_uri' do
let(:keypair) { Fabricate(:keypair, account: account) }
context 'with a remote account' do
let(:account) { Fabricate(:remote_account) }
it 'returns an HTTP URI equals to the stored URI' do
expect(keypair.full_uri)
.to start_with('https://')
.and eq(keypair.uri)
end
end
context 'with a local account' do
let(:account) { Fabricate(:account) }
it 'returns an HTTP URI starting with the account URI' do
expect(keypair.full_uri)
.to start_with(ActivityPub::TagManager.instance.uri_for(account))
end
end
end
describe 'from_keyid' do
context 'when a key with the given key ID exists' do
let(:account) { Fabricate(:account, domain: 'example.com') }
+9 -3
View File
@@ -20,12 +20,18 @@ RSpec.describe 'Admin Tags' do
let(:tag) { Fabricate :tag, name: '#supertag' }
it 'redirects to tag page and saves update log action for all attribute statuses' do
put admin_tag_path(tag.id, params: { tag: { trendable: true, listable: false } })
put admin_tag_path(tag.id, params: { tag: { trendable: true, listable: false, unallowed: true } })
expect(response).to have_http_status(302)
expect(Admin::ActionLog.last.human_identifier).to eq('#supertag')
expect(Admin::ActionLog.pluck(:action)).to eq(%w(update))
expect(Admin::ActionLog.pluck(:recorded_changes)).to eq([{ 'listable' => false, 'trendable' => true }])
expect(Admin::ActionLog.last.recorded_changes).to match_json_schema('tags_format_1.0')
end
it 'returns invalid when the schema does not match' do
put admin_tag_path(tag.id, params: { tag: { trendable: true } })
Admin::ActionLog.last.update(recorded_changes: { 'unallowed' => false })
expect(Admin::ActionLog.last.recorded_changes).to_not match_json_schema('tags_format_1.0')
end
end
end
@@ -75,7 +75,7 @@ RSpec.describe ActivityPub::ProcessCollectionService do
context 'when actor differs from sender' do
let(:forwarder) { Fabricate(:account, domain: 'example.com', uri: 'http://example.com/other_account') }
it 'does not process payload if no signature exists' do
it 'does not process payload if no signature nor FEP-8b32 proof exists' do
signature_double = instance_double(ActivityPub::LinkedDataSignature, verify_actor!: nil)
allow(ActivityPub::LinkedDataSignature).to receive(:new).and_return(signature_double)
allow(ActivityPub::Activity).to receive(:factory)
@@ -97,6 +97,59 @@ RSpec.describe ActivityPub::ProcessCollectionService do
expect(ActivityPub::Activity).to have_received(:factory).with(instance_of(Hash), actor, instance_of(Hash))
end
it 'processes payload with actor if valid proof exists' do
payload['proof'] = {
'type' => 'DataIntegrityProof',
'proofPurpose' => 'assertionMethod',
'cryptosuite' => 'eddsa-jcs-2022',
}
signature_double = instance_double(ActivityPub::ObjectIntegrityProof, verify_actor!: actor)
allow(ActivityPub::ObjectIntegrityProof).to receive(:new).and_return(signature_double)
allow(ActivityPub::Activity).to receive(:factory).with(instance_of(Hash), actor, instance_of(Hash))
subject.call(json, forwarder)
expect(ActivityPub::Activity).to have_received(:factory).with(instance_of(Hash), actor, instance_of(Hash))
end
it 'does not process payload if invalid proof exists' do
payload['proof'] = {
'type' => 'DataIntegrityProof',
'proofPurpose' => 'assertionMethod',
'cryptosuite' => 'eddsa-jcs-2022',
}
signature_double = instance_double(ActivityPub::ObjectIntegrityProof, verify_actor!: nil)
allow(ActivityPub::ObjectIntegrityProof).to receive(:new).and_return(signature_double)
allow(ActivityPub::Activity).to receive(:factory).with(instance_of(Hash), actor, instance_of(Hash))
subject.call(json, forwarder)
expect(ActivityPub::Activity).to_not have_received(:factory)
end
it 'processes payload with actor if invalid signature exists but valid proof exists' do
payload['signature'] = { 'type' => 'RsaSignature2017' }
payload['proof'] = {
'type' => 'DataIntegrityProof',
'proofPurpose' => 'assertionMethod',
'cryptosuite' => 'eddsa-jcs-2022',
}
ld_sig_double = instance_double(ActivityPub::LinkedDataSignature, verify_actor!: nil)
allow(ActivityPub::LinkedDataSignature).to receive(:new).and_return(ld_sig_double)
signature_double = instance_double(ActivityPub::ObjectIntegrityProof, verify_actor!: actor)
allow(ActivityPub::ObjectIntegrityProof).to receive(:new).and_return(signature_double)
allow(ActivityPub::Activity).to receive(:factory).with(instance_of(Hash), actor, instance_of(Hash))
subject.call(json, forwarder)
expect(ActivityPub::Activity).to have_received(:factory).with(instance_of(Hash), actor, instance_of(Hash))
end
it 'does not process payload if invalid signature exists' do
payload['signature'] = { 'type' => 'RsaSignature2017' }
+9
View File
@@ -0,0 +1,9 @@
{
"type": "object",
"properties": {
"usable": { "type": "boolean" },
"trendable": { "type": "boolean" },
"listable": { "type": "boolean" }
},
"additionalProperties": false
}
+4 -4
View File
@@ -9,10 +9,10 @@ module SignedRequestHelpers
headers['Host'] = Rails.configuration.x.local_domain
signed_headers = headers.merge('(request-target)' => "get #{path}").slice('(request-target)', 'Host', 'Date')
key_id = ActivityPub::TagManager.instance.key_uri_for(sign_with)
keypair = sign_with.keypair
key_id = keypair.uri
signed_string = signed_headers.map { |key, value| "#{key.downcase}: #{value}" }.join("\n")
signature = Base64.strict_encode64(keypair.sign(OpenSSL::Digest.new('SHA256'), signed_string))
signature = Base64.strict_encode64(keypair.keypair.sign(OpenSSL::Digest.new('SHA256'), signed_string))
headers['Signature'] = "keyId=\"#{key_id}\",algorithm=\"rsa-sha256\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\""
@@ -29,10 +29,10 @@ module SignedRequestHelpers
signed_headers = headers.merge('(request-target)' => "post #{path}").slice('(request-target)', 'Host', 'Date', 'Digest')
key_id = ActivityPub::TagManager.instance.key_uri_for(sign_with)
keypair = sign_with.keypair
key_id = keypair.uri
signed_string = signed_headers.map { |key, value| "#{key.downcase}: #{value}" }.join("\n")
signature = Base64.strict_encode64(keypair.sign(OpenSSL::Digest.new('SHA256'), signed_string))
signature = Base64.strict_encode64(keypair.keypair.sign(OpenSSL::Digest.new('SHA256'), signed_string))
headers['Signature'] = "keyId=\"#{key_id}\",algorithm=\"rsa-sha256\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\""
@@ -17,7 +17,7 @@ RSpec.describe PublishAnnouncementReactionWorker do
worker.perform(announcement.id, name)
expect(redis).to have_received(:publish)
expect(redis).to have_received(:publish).with(include('timeline'), be_a(String))
end
it 'does not send the announcement and name to the service when not subscribed' do
+63 -47
View File
@@ -2473,10 +2473,10 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/bigdecimal@npm:0.2.5":
version: 0.2.5
resolution: "@formatjs/bigdecimal@npm:0.2.5"
checksum: 10c0/094417c931b11b46d1314fe3e949927e700b6ea9e1276c60d3203fcd06d831a15426aae4504b3d96fcfaf38053438ae1c74c4837339e22e9b032acdb8d1159ce
"@formatjs/bigdecimal@npm:0.2.6":
version: 0.2.6
resolution: "@formatjs/bigdecimal@npm:0.2.6"
checksum: 10c0/8e39a52ffd77bb6ed877e044d16a8dc4282ab940b0d10caeaf94ba7db9a0b56e7440fc56caee369915d5614cff2116cb6ad46a199a53f2caa1b3b1735f808307
languageName: node
linkType: hard
@@ -2527,10 +2527,10 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/fast-memoize@npm:3.1.5":
version: 3.1.5
resolution: "@formatjs/fast-memoize@npm:3.1.5"
checksum: 10c0/80e5d5c6b3b558de5cabfbb7b5df89e291c9b05fb5f5edaa7234a581e55a96d15fab35c5922229f7885b160fe5a3654d029029bcb5e9a86ce4143db4a5ecea79
"@formatjs/fast-memoize@npm:3.1.6":
version: 3.1.6
resolution: "@formatjs/fast-memoize@npm:3.1.6"
checksum: 10c0/6cac8413b09aa4771edd98a52d46a9adc2f02e8bce8756a2abbd1eea2cf977757ffbb4bc1b33b6c17092739cd0c33351dffa0ea58b22e431b9754a34e46fe093
languageName: node
linkType: hard
@@ -2543,6 +2543,15 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/icu-messageformat-parser@npm:3.5.11":
version: 3.5.11
resolution: "@formatjs/icu-messageformat-parser@npm:3.5.11"
dependencies:
"@formatjs/icu-skeleton-parser": "npm:2.1.10"
checksum: 10c0/f22a4f7f4c796862f579357e0ebc98f43d8e3bef0aa72f2a782210001b2ffc3d09f65afc3cb7d3213b5e65952dbdf502aa858b2ccff8cbe27309ec82feb96788
languageName: node
linkType: hard
"@formatjs/icu-messageformat-parser@npm:3.5.3":
version: 3.5.3
resolution: "@formatjs/icu-messageformat-parser@npm:3.5.3"
@@ -2553,6 +2562,13 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/icu-skeleton-parser@npm:2.1.10":
version: 2.1.10
resolution: "@formatjs/icu-skeleton-parser@npm:2.1.10"
checksum: 10c0/75c1fe522430a17370823fd0908a400d98a2234f610fd79621a15e9cf79c2da7e9ca8a97eda74d8576e8614c02fd00152a96fe4a207b0b33919df41e86d09f08
languageName: node
linkType: hard
"@formatjs/icu-skeleton-parser@npm:2.1.3":
version: 2.1.3
resolution: "@formatjs/icu-skeleton-parser@npm:2.1.3"
@@ -2569,6 +2585,15 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/intl-localematcher@npm:0.8.10":
version: 0.8.10
resolution: "@formatjs/intl-localematcher@npm:0.8.10"
dependencies:
"@formatjs/fast-memoize": "npm:3.1.6"
checksum: 10c0/49a38b45d618de0ce857d62208e41af4c043a90d739a10828cb0a1e57c88c1ad28c27905ce57246ae5aa1c66834276a42665320d8294b01607d0e46b229d4a71
languageName: node
linkType: hard
"@formatjs/intl-localematcher@npm:0.8.2":
version: 0.8.2
resolution: "@formatjs/intl-localematcher@npm:0.8.2"
@@ -2578,33 +2603,24 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/intl-localematcher@npm:0.8.9":
version: 0.8.9
resolution: "@formatjs/intl-localematcher@npm:0.8.9"
dependencies:
"@formatjs/fast-memoize": "npm:3.1.5"
checksum: 10c0/d3e1fb9eab5a5e8d7c0600dc7f2c1b64ae0cd30dbfa7de0cd7300647440b60871bea5a23bc5d62dddb3fcbaba899ac90f84c513b832b5baf858a95c100542c31
languageName: node
linkType: hard
"@formatjs/intl-pluralrules@npm:^6.0.0":
version: 6.3.9
resolution: "@formatjs/intl-pluralrules@npm:6.3.9"
version: 6.3.10
resolution: "@formatjs/intl-pluralrules@npm:6.3.10"
dependencies:
"@formatjs/bigdecimal": "npm:0.2.5"
"@formatjs/intl-localematcher": "npm:0.8.9"
checksum: 10c0/4248c7766b401db99a63195bc8faa945df76bcb7a39ff76501062e8a1fda3965a185e1b4ab7ca4eac0d915a3bc00baf6c755eb6a5675640f32053eabc2b44aab
"@formatjs/bigdecimal": "npm:0.2.6"
"@formatjs/intl-localematcher": "npm:0.8.10"
checksum: 10c0/136d1af6531ab30f6acbe548abe995b841bbf3eb331a83e09f22aebb9f0654fbbb94b3cd872a412e796cba278a8c45efe501a3cdd3303bc7fde5e535ffc8614a
languageName: node
linkType: hard
"@formatjs/intl@npm:4.1.12":
version: 4.1.12
resolution: "@formatjs/intl@npm:4.1.12"
"@formatjs/intl@npm:4.1.13":
version: 4.1.13
resolution: "@formatjs/intl@npm:4.1.13"
dependencies:
"@formatjs/fast-memoize": "npm:3.1.5"
"@formatjs/icu-messageformat-parser": "npm:3.5.10"
intl-messageformat: "npm:11.2.7"
checksum: 10c0/d5ddf94a23b69d8b4be30a56aad1143e6d3a471c3eb2734bbdb2dafdda86d179e42bd3538c8a2e9ef4f422c7002a9d3e3ef12b34a5f52320636529b442b795cf
"@formatjs/fast-memoize": "npm:3.1.6"
"@formatjs/icu-messageformat-parser": "npm:3.5.11"
intl-messageformat: "npm:11.2.8"
checksum: 10c0/f5b5bd016110f94536b4826eb0c0bf33d4c2e070d0d92d42834f957d49b9f3ae5ce9d9c36b772888f60a103feb1a0d29dc9dc205fd83122a4b3f9239c6ec9d58
languageName: node
linkType: hard
@@ -8870,16 +8886,16 @@ __metadata:
linkType: hard
"immutable@npm:^4.0.0-rc.1, immutable@npm:^4.3.0":
version: 4.3.8
resolution: "immutable@npm:4.3.8"
checksum: 10c0/3de58996305a0faf6ef3fc0685f996c42653ad757760214f5aec7d4a6b59ea7abb882522c5f9a61776fae88c0b45e08eb77cbded5a4f57745ec7c63f9642e44b
version: 4.3.9
resolution: "immutable@npm:4.3.9"
checksum: 10c0/394faa90ac8f2f62824e6c639705efdb8313787d6bc7864e28a48ee36aa2ba4b724eaf54a701ad991c278967a412b09143dd24fd19e3e2b0204eb481a5afa6ef
languageName: node
linkType: hard
"immutable@npm:^5.1.5":
version: 5.1.7
resolution: "immutable@npm:5.1.7"
checksum: 10c0/8b5176f966314d99a3678daaf412be3de82627fa659693d2fd96de4cc6ba9a87144b58e6786ce76caff8a5bbbaa0c5b0fa858aaf993bb81e119684033b056168
version: 5.1.8
resolution: "immutable@npm:5.1.8"
checksum: 10c0/b34b237d324a94ed0f7749ae293c4b10aaa1755e0cb04c73360e18f4f35d5684551fe92c2b195c97562e57aab970ff47d04e25c5bc8c393ecde7da0f54356b48
languageName: node
linkType: hard
@@ -8956,13 +8972,13 @@ __metadata:
languageName: node
linkType: hard
"intl-messageformat@npm:11.2.7, intl-messageformat@npm:^11.0.0":
version: 11.2.7
resolution: "intl-messageformat@npm:11.2.7"
"intl-messageformat@npm:11.2.8, intl-messageformat@npm:^11.0.0":
version: 11.2.8
resolution: "intl-messageformat@npm:11.2.8"
dependencies:
"@formatjs/fast-memoize": "npm:3.1.5"
"@formatjs/icu-messageformat-parser": "npm:3.5.10"
checksum: 10c0/14a9299b738fa5ebd393d5238fc7869b9ccc0b5520f30c5a278e910ac5b1ebd0a0acc3cb2647a0983a807e17685b7932bdc8fa08245fa0e095d4fb8ebec9e38d
"@formatjs/fast-memoize": "npm:3.1.6"
"@formatjs/icu-messageformat-parser": "npm:3.5.11"
checksum: 10c0/d6ec35ac45d456b25bb1aff64a9ed7b9d96a8d8e6149948df932359474dac18f92990f00e1b049366c8255b06086adc0f4d95b024d67af314a91a2c7081193de
languageName: node
linkType: hard
@@ -12149,16 +12165,16 @@ __metadata:
linkType: hard
"react-intl@npm:^10.0.0":
version: 10.1.11
resolution: "react-intl@npm:10.1.11"
version: 10.1.13
resolution: "react-intl@npm:10.1.13"
dependencies:
"@formatjs/icu-messageformat-parser": "npm:3.5.10"
"@formatjs/intl": "npm:4.1.12"
intl-messageformat: "npm:11.2.7"
"@formatjs/icu-messageformat-parser": "npm:3.5.11"
"@formatjs/intl": "npm:4.1.13"
intl-messageformat: "npm:11.2.8"
peerDependencies:
"@types/react": 19
react: 19
checksum: 10c0/f60f3758a61aedf0f35972054208cafeec94fea16222ffa149d990a529a6f532d3f7033b8faf3f07ad63c5fc8057ba39754f1d1a27a1e53dda6290d454277ed9
checksum: 10c0/bff9029c05793f323c7f7a8940e6fed5f7e9ee41bfc0bcced723013a3494f7dd3b3ad04647896112290fa270bf8027a9e96190adc9ef89dd124284b8d09d79d4
languageName: node
linkType: hard