Merge commit '496c10542bd39ca86a85d4de81778c134ea4383c' into glitch-soc/merge-upstream

shrike
Claire 2024-06-07 20:30:51 +02:00
commit 7277d2f130
73 changed files with 194 additions and 123 deletions

View File

@ -5,7 +5,7 @@ FROM mcr.microsoft.com/devcontainers/ruby:1-3.3-bookworm
# RUN gem install rails webdrivers # RUN gem install rails webdrivers
ARG NODE_VERSION="20" ARG NODE_VERSION="20"
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1" RUN . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1
# [Optional] Uncomment this section to install additional OS packages. # [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
@ -15,6 +15,6 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
RUN gem install foreman RUN gem install foreman
# [Optional] Uncomment this line to install global node packages. # [Optional] Uncomment this line to install global node packages.
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && corepack enable" 2>&1 RUN . /usr/local/share/nvm/nvm.sh && corepack enable 2>&1
COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

View File

@ -23,6 +23,8 @@
} }
}, },
"remoteUser": "root",
"otherPortsAttributes": { "otherPortsAttributes": {
"onAutoForward": "silent" "onAutoForward": "silent"
}, },

View File

@ -5,7 +5,7 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
volumes: volumes:
- ../..:/workspaces:cached - ..:/workspaces/mastodon:cached
environment: environment:
RAILS_ENV: development RAILS_ENV: development
NODE_ENV: development NODE_ENV: development

View File

@ -1,8 +1,7 @@
👋 Welcome to "Mastodon" in GitHub Codespaces! 👋 Welcome to your Mastodon Dev Container!
🛠️ Your environment is fully setup with all the required software. 🛠️ Your environment is fully setup with all the required software.
🔍 To explore VS Code to its fullest, search using the Command Palette (Cmd/Ctrl + Shift + P or F1). 💥 Run `bin/dev` to start the application processes.
📝 Edit away, run your app as usual, and we'll automatically make it available for you to access.
🥼 Run `RAILS_ENV=test bin/rails assets:precompile && RAILS_ENV=test bin/rspec` to run the test suite.

View File

@ -107,7 +107,7 @@ gem 'private_address_check', '~> 0.5'
gem 'opentelemetry-api', '~> 1.2.5' gem 'opentelemetry-api', '~> 1.2.5'
group :opentelemetry do group :opentelemetry do
gem 'opentelemetry-exporter-otlp', '~> 0.26.3', require: false gem 'opentelemetry-exporter-otlp', '~> 0.27.0', require: false
gem 'opentelemetry-instrumentation-active_job', '~> 0.7.1', require: false gem 'opentelemetry-instrumentation-active_job', '~> 0.7.1', require: false
gem 'opentelemetry-instrumentation-active_model_serializers', '~> 0.20.1', require: false gem 'opentelemetry-instrumentation-active_model_serializers', '~> 0.20.1', require: false
gem 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.21.2', require: false gem 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.21.2', require: false

View File

@ -100,17 +100,17 @@ GEM
attr_required (1.0.2) attr_required (1.0.2)
awrence (1.2.1) awrence (1.2.1)
aws-eventstream (1.3.0) aws-eventstream (1.3.0)
aws-partitions (1.929.0) aws-partitions (1.940.0)
aws-sdk-core (3.196.1) aws-sdk-core (3.197.0)
aws-eventstream (~> 1, >= 1.3.0) aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0) aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8) aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1) jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.81.0) aws-sdk-kms (1.83.0)
aws-sdk-core (~> 3, >= 3.193.0) aws-sdk-core (~> 3, >= 3.197.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.151.0) aws-sdk-s3 (1.152.0)
aws-sdk-core (~> 3, >= 3.194.0) aws-sdk-core (~> 3, >= 3.197.0)
aws-sdk-kms (~> 1) aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8) aws-sigv4 (~> 1.8)
aws-sigv4 (1.8.0) aws-sigv4 (1.8.0)
@ -489,7 +489,7 @@ GEM
opentelemetry-api (1.2.5) opentelemetry-api (1.2.5)
opentelemetry-common (0.20.1) opentelemetry-common (0.20.1)
opentelemetry-api (~> 1.0) opentelemetry-api (~> 1.0)
opentelemetry-exporter-otlp (0.26.3) opentelemetry-exporter-otlp (0.27.0)
google-protobuf (~> 3.14) google-protobuf (~> 3.14)
googleapis-common-protos-types (~> 1.3) googleapis-common-protos-types (~> 1.3)
opentelemetry-api (~> 1.1) opentelemetry-api (~> 1.1)
@ -751,7 +751,7 @@ GEM
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0) rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (2.30.0) rubocop-rspec (2.31.0)
rubocop (~> 1.40) rubocop (~> 1.40)
rubocop-capybara (~> 2.17) rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22) rubocop-factory_bot (~> 2.22)
@ -978,7 +978,7 @@ DEPENDENCIES
omniauth-saml (~> 2.0) omniauth-saml (~> 2.0)
omniauth_openid_connect (~> 0.6.1) omniauth_openid_connect (~> 0.6.1)
opentelemetry-api (~> 1.2.5) opentelemetry-api (~> 1.2.5)
opentelemetry-exporter-otlp (~> 0.26.3) opentelemetry-exporter-otlp (~> 0.27.0)
opentelemetry-instrumentation-active_job (~> 0.7.1) opentelemetry-instrumentation-active_job (~> 0.7.1)
opentelemetry-instrumentation-active_model_serializers (~> 0.20.1) opentelemetry-instrumentation-active_model_serializers (~> 0.20.1)
opentelemetry-instrumentation-concurrent_ruby (~> 0.21.2) opentelemetry-instrumentation-concurrent_ruby (~> 0.21.2)

View File

@ -32,6 +32,7 @@
"compose_form.direct_message_warning_learn_more": "Discere plura", "compose_form.direct_message_warning_learn_more": "Discere plura",
"compose_form.encryption_warning": "Posts on Mastodon are not end-to-end encrypted. Do not share any dangerous information over Mastodon.", "compose_form.encryption_warning": "Posts on Mastodon are not end-to-end encrypted. Do not share any dangerous information over Mastodon.",
"compose_form.hashtag_warning": "This post won't be listed under any hashtag as it is unlisted. Only public posts can be searched by hashtag.", "compose_form.hashtag_warning": "This post won't be listed under any hashtag as it is unlisted. Only public posts can be searched by hashtag.",
"compose_form.lock_disclaimer": "Tua ratio non est {clausa}. Quisquis te sequi potest ut visum accipiat nuntios tuos tantum pro sectatoribus.",
"compose_form.lock_disclaimer.lock": "clausum", "compose_form.lock_disclaimer.lock": "clausum",
"compose_form.placeholder": "What is on your mind?", "compose_form.placeholder": "What is on your mind?",
"compose_form.publish_form": "Barrire", "compose_form.publish_form": "Barrire",
@ -91,6 +92,7 @@
"lightbox.next": "Secundum", "lightbox.next": "Secundum",
"navigation_bar.domain_blocks": "Hidden domains", "navigation_bar.domain_blocks": "Hidden domains",
"not_signed_in_indicator.not_signed_in": "You need to sign in to access this resource.", "not_signed_in_indicator.not_signed_in": "You need to sign in to access this resource.",
"notification.moderation_warning.action_none": "Tua ratiō monitum moderātiōnis accēpit.",
"notification.reblog": "{name} boosted your status", "notification.reblog": "{name} boosted your status",
"notifications.filter.all": "Omnia", "notifications.filter.all": "Omnia",
"notifications.filter.polls": "Eventus electionis", "notifications.filter.polls": "Eventus electionis",
@ -107,6 +109,8 @@
"onboarding.steps.setup_profile.title": "Customize your profile", "onboarding.steps.setup_profile.title": "Customize your profile",
"onboarding.steps.share_profile.body": "Let your friends know how to find you on Mastodon!", "onboarding.steps.share_profile.body": "Let your friends know how to find you on Mastodon!",
"onboarding.steps.share_profile.title": "Share your profile", "onboarding.steps.share_profile.title": "Share your profile",
"onboarding.tips.accounts_from_other_servers": "<strong>Scisne?</strong> Quoniam Mastodon dēcentālis est, nōnnulla profīlia quae invenīs in servīs aliīs quam tuōrum erunt hospitāta. Tamen cum eīs sine impedīmentō interāgere potes! Servus eōrum in alterā parte nōminis eōrum est!",
"onboarding.tips.migration": "<strong>Scisne?</strong> Sī sentīs {domain} tibi in futūrō nōn esse optimam servī ēlēctiōnem, ad alium servum Mastodon sine amittendō sectātōribus tuīs migrāre potes. Etiam tuum servum hospitārī potes!",
"poll.closed": "Clausum", "poll.closed": "Clausum",
"poll.vote": "Eligere", "poll.vote": "Eligere",
"poll.voted": "Elegisti hoc responsum", "poll.voted": "Elegisti hoc responsum",

View File

@ -41,8 +41,8 @@ class VideoMetadataExtractor
@colorspace = video_stream[:pix_fmt] @colorspace = video_stream[:pix_fmt]
@width = video_stream[:width] @width = video_stream[:width]
@height = video_stream[:height] @height = video_stream[:height]
@frame_rate = video_stream[:avg_frame_rate] == '0/0' ? nil : Rational(video_stream[:avg_frame_rate]) @frame_rate = parse_framerate(video_stream[:avg_frame_rate])
@r_frame_rate = video_stream[:r_frame_rate] == '0/0' ? nil : Rational(video_stream[:r_frame_rate]) @r_frame_rate = parse_framerate(video_stream[:r_frame_rate])
# For some video streams the frame_rate reported by `ffprobe` will be 0/0, but for these streams we # For some video streams the frame_rate reported by `ffprobe` will be 0/0, but for these streams we
# should use `r_frame_rate` instead. Video screencast generated by Gnome Screencast have this issue. # should use `r_frame_rate` instead. Video screencast generated by Gnome Screencast have this issue.
@frame_rate ||= @r_frame_rate @frame_rate ||= @r_frame_rate
@ -55,4 +55,10 @@ class VideoMetadataExtractor
@invalid = true if @metadata.key?(:error) @invalid = true if @metadata.key?(:error)
end end
def parse_framerate(raw)
Rational(raw)
rescue ZeroDivisionError
nil
end
end end

View File

@ -40,7 +40,7 @@ class CustomEmoji < ApplicationRecord
has_one :local_counterpart, -> { where(domain: nil) }, class_name: 'CustomEmoji', primary_key: :shortcode, foreign_key: :shortcode, inverse_of: false, dependent: nil has_one :local_counterpart, -> { where(domain: nil) }, class_name: 'CustomEmoji', primary_key: :shortcode, foreign_key: :shortcode, inverse_of: false, dependent: nil
has_attached_file :image, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set date:modify +set date:create +set date:timestamp' } }, validate_media_type: false has_attached_file :image, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set date:modify +set date:create +set date:timestamp', file_geometry_parser: FastGeometryParser } }, validate_media_type: false, processors: [:lazy_thumbnail]
normalizes :domain, with: ->(domain) { domain.downcase } normalizes :domain, with: ->(domain) { domain.downcase }

View File

@ -5,10 +5,10 @@
# Table name: mentions # Table name: mentions
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# status_id :bigint(8) # status_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) # account_id :bigint(8) not null
# silent :boolean default(FALSE), not null # silent :boolean default(FALSE), not null
# #

View File

@ -11,6 +11,7 @@ class REST::NotificationGroupSerializer < ActiveModel::Serializer
belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer
belongs_to :report, if: :report_type?, serializer: REST::ReportSerializer belongs_to :report, if: :report_type?, serializer: REST::ReportSerializer
belongs_to :account_relationship_severance_event, key: :event, if: :relationship_severance_event?, serializer: REST::AccountRelationshipSeveranceEventSerializer belongs_to :account_relationship_severance_event, key: :event, if: :relationship_severance_event?, serializer: REST::AccountRelationshipSeveranceEventSerializer
belongs_to :account_warning, key: :moderation_warning, if: :moderation_warning_event?, serializer: REST::AccountWarningSerializer
def status_type? def status_type?
[:favourite, :reblog, :status, :mention, :poll, :update].include?(object.type) [:favourite, :reblog, :status, :mention, :poll, :update].include?(object.type)
@ -24,6 +25,10 @@ class REST::NotificationGroupSerializer < ActiveModel::Serializer
object.type == :severed_relationships object.type == :severed_relationships
end end
def moderation_warning_event?
object.type == :moderation_warning
end
def page_min_id def page_min_id
range = instance_options[:group_metadata][object.group_key] range = instance_options[:group_metadata][object.group_key]
range.present? ? range[:min_id].to_s : object.notification.id.to_s range.present? ? range[:min_id].to_s : object.notification.id.to_s

View File

@ -5,7 +5,7 @@ require "fileutils"
APP_ROOT = File.expand_path('..', __dir__) APP_ROOT = File.expand_path('..', __dir__)
def system!(*args) def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==") system(*args, exception: true)
end end
FileUtils.chdir APP_ROOT do FileUtils.chdir APP_ROOT do
@ -13,17 +13,13 @@ FileUtils.chdir APP_ROOT do
# This script is idempotent, so that you can run it at any time and get an expectable outcome. # This script is idempotent, so that you can run it at any time and get an expectable outcome.
# Add necessary setup steps to this file. # Add necessary setup steps to this file.
puts '== Installing dependencies ==' puts "\n== Installing Ruby dependencies =="
system! 'gem install bundler --conservative' system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install') system('bundle check') || system!('bundle install')
# Install JavaScript dependencies puts "\n== Installing JS dependencies =="
system! 'bin/yarn' system! 'corepack prepare'
system! 'bin/yarn install --immutable'
# puts "\n== Copying sample files =="
# unless File.exist?('config/database.yml')
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
# end
puts "\n== Preparing database ==" puts "\n== Preparing database =="
system! 'bin/rails db:prepare' system! 'bin/rails db:prepare'

View File

@ -8,7 +8,7 @@ Rails.application.configure do
# In the development environment your application's code is reloaded any time # In the development environment your application's code is reloaded any time
# it changes. This slows down response time but is perfect for development # it changes. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes. # since you don't have to restart the web server when you make code changes.
config.cache_classes = false config.enable_reloading = true
# Do not eager load code on boot. # Do not eager load code on boot.
config.eager_load = false config.eager_load = false

View File

@ -61,12 +61,6 @@ Rails.application.configure do
config.i18n.default_locale = :en config.i18n.default_locale = :en
config.i18n.fallbacks = true config.i18n.fallbacks = true
config.to_prepare do
# Force Status to always be SHAPE_TOO_COMPLEX
# Ref: https://github.com/mastodon/mastodon/issues/23644
10.times { |i| Status.allocate.instance_variable_set(:"@ivar_#{i}", nil) }
end
# Tell Active Support which deprecation messages to disallow. # Tell Active Support which deprecation messages to disallow.
config.active_support.disallowed_deprecation_warnings = [] config.active_support.disallowed_deprecation_warnings = []

View File

@ -3,6 +3,8 @@
Paperclip::DataUriAdapter.register Paperclip::DataUriAdapter.register
Paperclip::ResponseWithLimitAdapter.register Paperclip::ResponseWithLimitAdapter.register
PATH = ':prefix_url:class/:attachment/:id_partition/:style/:filename'
Paperclip.interpolates :filename do |attachment, style| Paperclip.interpolates :filename do |attachment, style|
if style == :original if style == :original
attachment.original_filename attachment.original_filename
@ -29,7 +31,7 @@ end
Paperclip::Attachment.default_options.merge!( Paperclip::Attachment.default_options.merge!(
use_timestamp: false, use_timestamp: false,
path: ':prefix_url:class/:attachment/:id_partition/:style/:filename', path: PATH,
storage: :fog storage: :fog
) )
@ -40,6 +42,8 @@ if ENV['S3_ENABLED'] == 'true'
s3_protocol = ENV.fetch('S3_PROTOCOL') { 'https' } s3_protocol = ENV.fetch('S3_PROTOCOL') { 'https' }
s3_hostname = ENV.fetch('S3_HOSTNAME') { "s3-#{s3_region}.amazonaws.com" } s3_hostname = ENV.fetch('S3_HOSTNAME') { "s3-#{s3_region}.amazonaws.com" }
Paperclip::Attachment.default_options[:path] = ENV.fetch('S3_KEY_PREFIX') + "/#{PATH}" if ENV.has_key?('S3_KEY_PREFIX')
Paperclip::Attachment.default_options.merge!( Paperclip::Attachment.default_options.merge!(
storage: :s3, storage: :s3,
s3_protocol: s3_protocol, s3_protocol: s3_protocol,
@ -64,7 +68,7 @@ if ENV['S3_ENABLED'] == 'true'
http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '5' }.to_i, http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '5' }.to_i,
http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '5' }.to_i, http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '5' }.to_i,
http_idle_timeout: 5, http_idle_timeout: 5,
retry_limit: 0, retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '0' }.to_i,
} }
) )
@ -159,7 +163,7 @@ else
Paperclip::Attachment.default_options.merge!( Paperclip::Attachment.default_options.merge!(
storage: :filesystem, storage: :filesystem,
path: File.join(ENV.fetch('PAPERCLIP_ROOT_PATH', File.join(':rails_root', 'public', 'system')), ':prefix_path:class', ':attachment', ':id_partition', ':style', ':filename'), path: File.join(ENV.fetch('PAPERCLIP_ROOT_PATH', File.join(':rails_root', 'public', 'system')), ':prefix_path:class', ':attachment', ':id_partition', ':style', ':filename'),
url: "#{ENV.fetch('PAPERCLIP_ROOT_URL', '/system')}/:prefix_url:class/:attachment/:id_partition/:style/:filename" url: ENV.fetch('PAPERCLIP_ROOT_URL', '/system') + "/#{PATH}"
) )
end end

View File

@ -174,7 +174,6 @@ be:
read:filters: бачыць свае фільтры read:filters: бачыць свае фільтры
read:follows: бачыць свае падпіскі read:follows: бачыць свае падпіскі
read:lists: бачыць свае спісы read:lists: бачыць свае спісы
read:me: чытайце толькі базавую інфармацыю аб сваім уліковым запісе
read:mutes: бачыць свае ігнараванні read:mutes: бачыць свае ігнараванні
read:notifications: бачыць свае абвесткі read:notifications: бачыць свае абвесткі
read:reports: бачыць свае скаргі read:reports: бачыць свае скаргі

View File

@ -135,6 +135,7 @@ bg:
media: Прикачена мултимедия media: Прикачена мултимедия
mutes: Заглушения mutes: Заглушения
notifications: Известия notifications: Известия
profile: Вашият профил в Mastodon
push: Изскачащи известия push: Изскачащи известия
reports: Доклади reports: Доклади
search: Търсене search: Търсене
@ -165,6 +166,7 @@ bg:
admin:write:reports: извършване на действия за модериране на докладвания admin:write:reports: извършване на действия за модериране на докладвания
crypto: употреба на цялостно шифроване crypto: употреба на цялостно шифроване
follow: промяна на взаимоотношенията на акаунта follow: промяна на взаимоотношенията на акаунта
profile: само за четене на сведенията ви за профила на акаунта
push: получаване на вашите изскачащи известия push: получаване на вашите изскачащи известия
read: четене на всички данни от акаунта ви read: четене на всички данни от акаунта ви
read:accounts: преглед на информация за акаунти read:accounts: преглед на информация за акаунти
@ -174,7 +176,6 @@ bg:
read:filters: преглед на вашите филтри read:filters: преглед на вашите филтри
read:follows: преглед на вашите последвания read:follows: преглед на вашите последвания
read:lists: преглед на вашите списъци read:lists: преглед на вашите списъци
read:me: четене само на основните сведения за акаунта ви
read:mutes: преглед на вашите заглушавания read:mutes: преглед на вашите заглушавания
read:notifications: преглед на вашите известия read:notifications: преглед на вашите известия
read:reports: преглед на вашите докладвания read:reports: преглед на вашите докладвания

View File

@ -104,6 +104,7 @@ br:
lists: Listennoù lists: Listennoù
media: Restroù media stag media: Restroù media stag
mutes: Kuzhet mutes: Kuzhet
profile: Ho profil Mastodon
search: Klask search: Klask
statuses: Toudoù statuses: Toudoù
layouts: layouts:

View File

@ -135,6 +135,7 @@ ca:
media: Adjunts multimèdia media: Adjunts multimèdia
mutes: Silenciats mutes: Silenciats
notifications: Notificacions notifications: Notificacions
profile: El vostre perfil de Mastodon
push: Notificacions push push: Notificacions push
reports: Informes reports: Informes
search: Cerca search: Cerca
@ -165,6 +166,7 @@ ca:
admin:write:reports: fer l'acció de moderació en els informes admin:write:reports: fer l'acció de moderació en els informes
crypto: usa xifrat d'extrem a extrem crypto: usa xifrat d'extrem a extrem
follow: modifica les relacions del compte follow: modifica les relacions del compte
profile: només llegir la informació del perfil del vostre compte
push: rebre notificacions push del teu compte push: rebre notificacions push del teu compte
read: llegir les dades del teu compte read: llegir les dades del teu compte
read:accounts: mira informació dels comptes read:accounts: mira informació dels comptes
@ -174,7 +176,6 @@ ca:
read:filters: mira els teus filtres read:filters: mira els teus filtres
read:follows: mira els teus seguiments read:follows: mira els teus seguiments
read:lists: mira les teves llistes read:lists: mira les teves llistes
read:me: llegir només la informació bàsica del vostre compte
read:mutes: mira els teus silenciats read:mutes: mira els teus silenciats
read:notifications: mira les teves notificacions read:notifications: mira les teves notificacions
read:reports: mira els teus informes read:reports: mira els teus informes

View File

@ -174,7 +174,6 @@ cs:
read:filters: vidět vaše filtry read:filters: vidět vaše filtry
read:follows: vidět vaše sledování read:follows: vidět vaše sledování
read:lists: vidět vaše seznamy read:lists: vidět vaše seznamy
read:me: číst pouze základní informace vašeho účtu
read:mutes: vidět vaše skrytí read:mutes: vidět vaše skrytí
read:notifications: vidět vaše oznámení read:notifications: vidět vaše oznámení
read:reports: vidět vaše hlášení read:reports: vidět vaše hlášení

View File

@ -174,7 +174,6 @@ cy:
read:filters: gweld eich hidlwyr read:filters: gweld eich hidlwyr
read:follows: gweld eich dilynwyr read:follows: gweld eich dilynwyr
read:lists: gweld eich rhestrau read:lists: gweld eich rhestrau
read:me: darllen dim ond manylion elfennol eich cyfrif
read:mutes: gweld eich anwybyddiadau read:mutes: gweld eich anwybyddiadau
read:notifications: gweld eich hysbysiadau read:notifications: gweld eich hysbysiadau
read:reports: gweld eich adroddiadau read:reports: gweld eich adroddiadau

View File

@ -135,6 +135,7 @@ da:
media: Medievedhæftninger media: Medievedhæftninger
mutes: Tavsgørelser mutes: Tavsgørelser
notifications: Notifikationer notifications: Notifikationer
profile: Din Mastodon-profil
push: Push-notifikationer push: Push-notifikationer
reports: Anmeldelser reports: Anmeldelser
search: Søgning search: Søgning
@ -165,6 +166,7 @@ da:
admin:write:reports: udfør modereringshandlinger på anmeldelser admin:write:reports: udfør modereringshandlinger på anmeldelser
crypto: benyt ende-til-ende kryptering crypto: benyt ende-til-ende kryptering
follow: ændre kontorelationer follow: ændre kontorelationer
profile: læs kun kontoprofiloplysningerne
push: modtag dine push-notifikationer push: modtag dine push-notifikationer
read: læs alle dine kontodata read: læs alle dine kontodata
read:accounts: se kontooplysninger read:accounts: se kontooplysninger
@ -174,7 +176,6 @@ da:
read:filters: se dine filtre read:filters: se dine filtre
read:follows: se dine følger read:follows: se dine følger
read:lists: se dine lister read:lists: se dine lister
read:me: læs kun kontoens basisoplysninger
read:mutes: se dine tavsgørelser read:mutes: se dine tavsgørelser
read:notifications: se dine notifikationer read:notifications: se dine notifikationer
read:reports: se dine anmeldelser read:reports: se dine anmeldelser

View File

@ -135,6 +135,7 @@ de:
media: Medienanhänge media: Medienanhänge
mutes: Stummschaltungen mutes: Stummschaltungen
notifications: Benachrichtigungen notifications: Benachrichtigungen
profile: Dein Mastodon-Profil
push: Push-Benachrichtigungen push: Push-Benachrichtigungen
reports: Meldungen reports: Meldungen
search: Suche search: Suche
@ -165,6 +166,7 @@ de:
admin:write:reports: Moderationsaktionen auf Meldungen ausführen admin:write:reports: Moderationsaktionen auf Meldungen ausführen
crypto: Ende-zu-Ende-Verschlüsselung verwenden crypto: Ende-zu-Ende-Verschlüsselung verwenden
follow: Kontenbeziehungen verändern follow: Kontenbeziehungen verändern
profile: nur die Profilinformationen deines Kontos lesen
push: deine Push-Benachrichtigungen erhalten push: deine Push-Benachrichtigungen erhalten
read: all deine Daten lesen read: all deine Daten lesen
read:accounts: deine Kontoinformationen einsehen read:accounts: deine Kontoinformationen einsehen
@ -174,7 +176,6 @@ de:
read:filters: deine Filter einsehen read:filters: deine Filter einsehen
read:follows: sehen, wem du folgst read:follows: sehen, wem du folgst
read:lists: deine Listen sehen read:lists: deine Listen sehen
read:me: nur deine grundlegenden Kontoinformationen lesen
read:mutes: deine Stummschaltungen einsehen read:mutes: deine Stummschaltungen einsehen
read:notifications: deine Benachrichtigungen sehen read:notifications: deine Benachrichtigungen sehen
read:reports: deine Meldungen sehen read:reports: deine Meldungen sehen

View File

@ -174,7 +174,6 @@ en-GB:
read:filters: see your filters read:filters: see your filters
read:follows: see your follows read:follows: see your follows
read:lists: see your lists read:lists: see your lists
read:me: read only your account's basic information
read:mutes: see your mutes read:mutes: see your mutes
read:notifications: see your notifications read:notifications: see your notifications
read:reports: see your reports read:reports: see your reports

View File

@ -135,6 +135,7 @@ es-AR:
media: Adjuntos de medios media: Adjuntos de medios
mutes: Silenciados mutes: Silenciados
notifications: Notificaciones notifications: Notificaciones
profile: Tu perfil de Mastodon
push: Notificaciones push push: Notificaciones push
reports: Denuncias reports: Denuncias
search: Buscar search: Buscar
@ -165,6 +166,7 @@ es-AR:
admin:write:reports: ejecutar acciones de moderación en denuncias admin:write:reports: ejecutar acciones de moderación en denuncias
crypto: usar cifrado de extremo a extremo crypto: usar cifrado de extremo a extremo
follow: modificar relaciones de cuenta follow: modificar relaciones de cuenta
profile: leer solo la información del perfil de tu cuenta
push: recibir tus notificaciones push push: recibir tus notificaciones push
read: leer todos los datos de tu cuenta read: leer todos los datos de tu cuenta
read:accounts: ver información de cuentas read:accounts: ver información de cuentas
@ -174,7 +176,6 @@ es-AR:
read:filters: ver tus filtros read:filters: ver tus filtros
read:follows: ver qué cuentas seguís read:follows: ver qué cuentas seguís
read:lists: ver tus listas read:lists: ver tus listas
read:me: leer solo la información básica de tu cuenta
read:mutes: ver qué cuentas silenciaste read:mutes: ver qué cuentas silenciaste
read:notifications: ver tus notificaciones read:notifications: ver tus notificaciones
read:reports: ver tus denuncias read:reports: ver tus denuncias

View File

@ -135,6 +135,7 @@ es-MX:
media: Archivos adjuntos media: Archivos adjuntos
mutes: Silenciados mutes: Silenciados
notifications: Notificaciones notifications: Notificaciones
profile: Tu perfil de Mastodon
push: Notificaciones push push: Notificaciones push
reports: Reportes reports: Reportes
search: Busqueda search: Busqueda
@ -165,6 +166,7 @@ es-MX:
admin:write:reports: realizar acciones de moderación en informes admin:write:reports: realizar acciones de moderación en informes
crypto: usar cifrado de extremo a extremo crypto: usar cifrado de extremo a extremo
follow: seguir, bloquear, desbloquear y dejar de seguir cuentas follow: seguir, bloquear, desbloquear y dejar de seguir cuentas
profile: leer sólo la información del perfil de tu cuenta
push: recibir tus notificaciones push push: recibir tus notificaciones push
read: leer los datos de tu cuenta read: leer los datos de tu cuenta
read:accounts: ver información de cuentas read:accounts: ver información de cuentas
@ -174,7 +176,6 @@ es-MX:
read:filters: ver tus filtros read:filters: ver tus filtros
read:follows: ver a quién sigues read:follows: ver a quién sigues
read:lists: ver tus listas read:lists: ver tus listas
read:me: leer solo la información básica de tu cuenta
read:mutes: ver a quién has silenciado read:mutes: ver a quién has silenciado
read:notifications: ver tus notificaciones read:notifications: ver tus notificaciones
read:reports: ver tus informes read:reports: ver tus informes

View File

@ -135,6 +135,7 @@ es:
media: Adjuntos multimedia media: Adjuntos multimedia
mutes: Silenciados mutes: Silenciados
notifications: Notificaciones notifications: Notificaciones
profile: Tu perfil de Mastodon
push: Notificaciones push push: Notificaciones push
reports: Informes reports: Informes
search: Buscar search: Buscar
@ -165,6 +166,7 @@ es:
admin:write:reports: realizar acciones de moderación en informes admin:write:reports: realizar acciones de moderación en informes
crypto: usar cifrado de extremo a extremo crypto: usar cifrado de extremo a extremo
follow: seguir, bloquear, desbloquear y dejar de seguir cuentas follow: seguir, bloquear, desbloquear y dejar de seguir cuentas
profile: leer sólo la información del perfil de tu cuenta
push: recibir tus notificaciones push push: recibir tus notificaciones push
read: leer los datos de tu cuenta read: leer los datos de tu cuenta
read:accounts: ver información de cuentas read:accounts: ver información de cuentas
@ -174,7 +176,6 @@ es:
read:filters: ver tus filtros read:filters: ver tus filtros
read:follows: ver a quién sigues read:follows: ver a quién sigues
read:lists: ver tus listas read:lists: ver tus listas
read:me: leer solo la información básica de tu cuenta
read:mutes: ver a quién has silenciado read:mutes: ver a quién has silenciado
read:notifications: ver tus notificaciones read:notifications: ver tus notificaciones
read:reports: ver tus informes read:reports: ver tus informes

View File

@ -174,7 +174,6 @@ eu:
read:filters: ikusi zure iragazkiak read:filters: ikusi zure iragazkiak
read:follows: ikusi zuk jarraitutakoak read:follows: ikusi zuk jarraitutakoak
read:lists: ikusi zure zerrendak read:lists: ikusi zure zerrendak
read:me: irakurri soilik zure kontuaren oinarrizko informazioa
read:mutes: ikusi zuk mutututakoak read:mutes: ikusi zuk mutututakoak
read:notifications: ikusi zure jakinarazpenak read:notifications: ikusi zure jakinarazpenak
read:reports: ikusi zure salaketak read:reports: ikusi zure salaketak

View File

@ -135,6 +135,7 @@ fi:
media: Medialiitteet media: Medialiitteet
mutes: Mykistykset mutes: Mykistykset
notifications: Ilmoitukset notifications: Ilmoitukset
profile: Mastodon-profiilisi
push: Puskuilmoitukset push: Puskuilmoitukset
reports: Raportit reports: Raportit
search: Hae search: Hae
@ -165,6 +166,7 @@ fi:
admin:write:reports: suorita valvontatoimia raporteille admin:write:reports: suorita valvontatoimia raporteille
crypto: käytä päästä päähän -salausta crypto: käytä päästä päähän -salausta
follow: muokkaa tilin suhteita follow: muokkaa tilin suhteita
profile: lue vain tilisi profiilitietoja
push: vastaanota puskuilmoituksiasi push: vastaanota puskuilmoituksiasi
read: lue kaikkia tilin tietoja read: lue kaikkia tilin tietoja
read:accounts: katso tilien tietoja read:accounts: katso tilien tietoja
@ -174,7 +176,6 @@ fi:
read:filters: katso suodattimiasi read:filters: katso suodattimiasi
read:follows: katso seurattujasi read:follows: katso seurattujasi
read:lists: katso listojasi read:lists: katso listojasi
read:me: lue tilisi perustietoja
read:mutes: katso mykistyksiäsi read:mutes: katso mykistyksiäsi
read:notifications: katso ilmoituksiasi read:notifications: katso ilmoituksiasi
read:reports: katso raporttejasi read:reports: katso raporttejasi

View File

@ -135,6 +135,7 @@ fo:
media: Viðfestir miðlar media: Viðfestir miðlar
mutes: Doyvir mutes: Doyvir
notifications: Fráboðanir notifications: Fráboðanir
profile: Tín Mastodon vangi
push: Skumpifráboðanir push: Skumpifráboðanir
reports: Meldingar reports: Meldingar
search: Leita search: Leita
@ -165,6 +166,7 @@ fo:
admin:write:reports: útinna kjakleiðsluatgerðir á meldingum admin:write:reports: útinna kjakleiðsluatgerðir á meldingum
crypto: brúka enda-til-enda bronglan crypto: brúka enda-til-enda bronglan
follow: broyta viðurskifti millum kontur follow: broyta viðurskifti millum kontur
profile: les bara vangaupplýsingar av tíni kontu
push: móttaka tínar skumpifráboðanir push: móttaka tínar skumpifráboðanir
read: lesa allar dátur í tíni kontu read: lesa allar dátur í tíni kontu
read:accounts: vís kontuupplýsingar read:accounts: vís kontuupplýsingar
@ -174,7 +176,6 @@ fo:
read:filters: síggja tíni filtur read:filters: síggja tíni filtur
read:follows: síggja hvørji tú fylgir read:follows: síggja hvørji tú fylgir
read:lists: síggja tínar listar read:lists: síggja tínar listar
read:me: les bara grundleggjandi upplýsingar av tínari kontu
read:mutes: síggja tínar doyvingar read:mutes: síggja tínar doyvingar
read:notifications: síggja tínar fráboðanir read:notifications: síggja tínar fráboðanir
read:reports: síggja tínar meldingar read:reports: síggja tínar meldingar

View File

@ -174,7 +174,6 @@ fy:
read:filters: jo filters besjen read:filters: jo filters besjen
read:follows: de accounts dytsto folgest besjen read:follows: de accounts dytsto folgest besjen
read:lists: jo listen besjen read:lists: jo listen besjen
read:me: allinnich de basisgegevens fan jo account lêze
read:mutes: jo negearre brûkers besjen read:mutes: jo negearre brûkers besjen
read:notifications: jo meldingen besjen read:notifications: jo meldingen besjen
read:reports: jo rapportearre berjochten besjen read:reports: jo rapportearre berjochten besjen

View File

@ -135,6 +135,7 @@ gl:
media: Anexos multimedia media: Anexos multimedia
mutes: Acaladas mutes: Acaladas
notifications: Notificacións notifications: Notificacións
profile: O teu perfil en Mastodon
push: Notificacións Push push: Notificacións Push
reports: Denuncias reports: Denuncias
search: Busca search: Busca
@ -165,6 +166,7 @@ gl:
admin:write:reports: executar accións de moderación nas denuncias admin:write:reports: executar accións de moderación nas denuncias
crypto: usar cifrado de extremo-a-extremo crypto: usar cifrado de extremo-a-extremo
follow: modificar as relacións da conta follow: modificar as relacións da conta
profile: ler só a información de perfil da túa conta
push: recibir notificacións push push: recibir notificacións push
read: ler todos os datos da tua conta read: ler todos os datos da tua conta
read:accounts: ver información das contas read:accounts: ver información das contas
@ -174,7 +176,6 @@ gl:
read:filters: ver os filtros read:filters: ver os filtros
read:follows: ver a quen segues read:follows: ver a quen segues
read:lists: ver as tuas listaxes read:lists: ver as tuas listaxes
read:me: ler só a información básica da túa conta
read:mutes: ver a quen tes acalado read:mutes: ver a quen tes acalado
read:notifications: ver as notificacións read:notifications: ver as notificacións
read:reports: ver as túas denuncias read:reports: ver as túas denuncias

View File

@ -135,6 +135,7 @@ he:
media: קבצי מדיה מצורפים media: קבצי מדיה מצורפים
mutes: השתקות mutes: השתקות
notifications: התראות notifications: התראות
profile: פרופיל המסטודון שלך
push: התראות בדחיפה push: התראות בדחיפה
reports: דיווחים reports: דיווחים
search: חיפוש search: חיפוש
@ -165,6 +166,7 @@ he:
admin:write:reports: ביצוע פעולות הנהלה על חשבונות admin:write:reports: ביצוע פעולות הנהלה על חשבונות
crypto: שימוש בהצפנה מקצה לקצה crypto: שימוש בהצפנה מקצה לקצה
follow: לעקוב, לחסום, להסיר חסימה ולהפסיק לעקוב אחרי חשבונות follow: לעקוב, לחסום, להסיר חסימה ולהפסיק לעקוב אחרי חשבונות
profile: קריאה של פרטי הפרופיל שלך בלבד
push: קבלת התראות בדחיפה push: קבלת התראות בדחיפה
read: לקרוא את המידע שבחשבונך read: לקרוא את המידע שבחשבונך
read:accounts: צפיה במידע על חשבונות read:accounts: צפיה במידע על חשבונות
@ -174,7 +176,6 @@ he:
read:filters: צפייה במסננים read:filters: צפייה במסננים
read:follows: צפייה בנעקבים read:follows: צפייה בנעקבים
read:lists: צפיה ברשימותיך read:lists: צפיה ברשימותיך
read:me: לקריאה בלבד של פרטי חשבונך הבסיסיים
read:mutes: צפיה במושתקיך read:mutes: צפיה במושתקיך
read:notifications: צפיה בהתראותיך read:notifications: צפיה בהתראותיך
read:reports: צפיה בדוחותיך read:reports: צפיה בדוחותיך

View File

@ -135,6 +135,7 @@ hu:
media: Médiamellékletek media: Médiamellékletek
mutes: Némítások mutes: Némítások
notifications: Értesítések notifications: Értesítések
profile: Saját Mastodon-profil
push: Push értesítések push: Push értesítések
reports: Bejelentések reports: Bejelentések
search: Keresés search: Keresés
@ -165,6 +166,7 @@ hu:
admin:write:reports: moderációs műveletek végzése bejelentéseken admin:write:reports: moderációs műveletek végzése bejelentéseken
crypto: végpontok közti titkosítás használata crypto: végpontok közti titkosítás használata
follow: fiókkapcsolatok módosítása follow: fiókkapcsolatok módosítása
profile: csak a saját profil alapvető adatainak olvasása
push: push értesítések fogadása push: push értesítések fogadása
read: saját fiók adatainak olvasása read: saját fiók adatainak olvasása
read:accounts: fiók adatainak megtekintése read:accounts: fiók adatainak megtekintése
@ -174,7 +176,6 @@ hu:
read:filters: szűrök megtekintése read:filters: szűrök megtekintése
read:follows: követések megtekintése read:follows: követések megtekintése
read:lists: listák megtekintése read:lists: listák megtekintése
read:me: csak a fiókod alapvető adatainak elolvasása
read:mutes: némítások megtekintése read:mutes: némítások megtekintése
read:notifications: értesítések megtekintése read:notifications: értesítések megtekintése
read:reports: bejelentések megtekintése read:reports: bejelentések megtekintése

View File

@ -174,7 +174,6 @@ ia:
read:filters: vider tu filtros read:filters: vider tu filtros
read:follows: vider qui tu seque read:follows: vider qui tu seque
read:lists: vider tu listas read:lists: vider tu listas
read:me: leger solmente le information basic de tu conto
read:mutes: vider qui tu silentia read:mutes: vider qui tu silentia
read:notifications: vider tu notificationes read:notifications: vider tu notificationes
read:reports: vider tu reportos read:reports: vider tu reportos

View File

@ -174,7 +174,6 @@ ie:
read:filters: vider tui filtres read:filters: vider tui filtres
read:follows: vider tui sequitores read:follows: vider tui sequitores
read:lists: vider tui listes read:lists: vider tui listes
read:me: leer solmen li basic information de tui conto
read:mutes: vider tui silentias read:mutes: vider tui silentias
read:notifications: vider tui notificationes read:notifications: vider tui notificationes
read:reports: vider tui raportes read:reports: vider tui raportes

View File

@ -135,6 +135,7 @@ is:
media: Myndefnisviðhengi media: Myndefnisviðhengi
mutes: Þagganir mutes: Þagganir
notifications: Tilkynningar notifications: Tilkynningar
profile: Mastodon notandasniðið þitt
push: Ýti-tilkynningar push: Ýti-tilkynningar
reports: Kærur reports: Kærur
search: Leita search: Leita
@ -165,6 +166,7 @@ is:
admin:write:reports: framkvæma umsjónaraðgerðir á kærur admin:write:reports: framkvæma umsjónaraðgerðir á kærur
crypto: nota enda-í-enda dulritun crypto: nota enda-í-enda dulritun
follow: breyta venslum aðgangs follow: breyta venslum aðgangs
profile: lesa einungis upplýsingar úr notandasniðinu þínu
push: taka á móti ýti-tilkynningum til þín push: taka á móti ýti-tilkynningum til þín
read: lesa öll gögn á notandaaðgangnum þínum read: lesa öll gögn á notandaaðgangnum þínum
read:accounts: sjá upplýsingar í notendaaðgöngum read:accounts: sjá upplýsingar í notendaaðgöngum
@ -174,7 +176,6 @@ is:
read:filters: skoða síurnar þínar read:filters: skoða síurnar þínar
read:follows: sjá hverjum þú fylgist með read:follows: sjá hverjum þú fylgist með
read:lists: skoða listana þína read:lists: skoða listana þína
read:me: lesa einungis grunnupplýsingar aðgangsins þíns
read:mutes: skoða hverja þú þaggar read:mutes: skoða hverja þú þaggar
read:notifications: sjá tilkynningarnar þínar read:notifications: sjá tilkynningarnar þínar
read:reports: skoða skýrslurnar þína read:reports: skoða skýrslurnar þína

View File

@ -135,6 +135,7 @@ it:
media: Allegati multimediali media: Allegati multimediali
mutes: Silenziati mutes: Silenziati
notifications: Notifiche notifications: Notifiche
profile: Il tuo profilo Mastodon
push: Notifiche push push: Notifiche push
reports: Segnalazioni reports: Segnalazioni
search: Cerca search: Cerca
@ -165,6 +166,7 @@ it:
admin:write:reports: eseguire azioni di moderazione sulle segnalazioni admin:write:reports: eseguire azioni di moderazione sulle segnalazioni
crypto: utilizzare la crittografia end-to-end crypto: utilizzare la crittografia end-to-end
follow: modifica le relazioni tra profili follow: modifica le relazioni tra profili
profile: leggi solo le informazioni sul profilo del tuo account
push: ricevere le tue notifiche push push: ricevere le tue notifiche push
read: leggere tutti i dati del tuo profilo read: leggere tutti i dati del tuo profilo
read:accounts: visualizzare le informazioni sui profili read:accounts: visualizzare le informazioni sui profili
@ -174,7 +176,6 @@ it:
read:filters: visualizzare i tuoi filtri read:filters: visualizzare i tuoi filtri
read:follows: visualizzare i tuoi seguiti read:follows: visualizzare i tuoi seguiti
read:lists: visualizzare i tuoi elenchi read:lists: visualizzare i tuoi elenchi
read:me: leggi solo le informazioni di base del tuo account
read:mutes: visualizzare i tuoi silenziamenti read:mutes: visualizzare i tuoi silenziamenti
read:notifications: visualizzare le tue notifiche read:notifications: visualizzare le tue notifiche
read:reports: visualizzare le tue segnalazioni read:reports: visualizzare le tue segnalazioni

View File

@ -174,7 +174,6 @@ ja:
read:filters: フィルターの読み取り read:filters: フィルターの読み取り
read:follows: フォローの読み取り read:follows: フォローの読み取り
read:lists: リストの読み取り read:lists: リストの読み取り
read:me: 自分のアカウントの基本的な情報の読み取りのみ
read:mutes: ミュートの読み取り read:mutes: ミュートの読み取り
read:notifications: 通知の読み取り read:notifications: 通知の読み取り
read:reports: 通報の読み取り read:reports: 通報の読み取り

View File

@ -135,6 +135,7 @@ ko:
media: 첨부된 미디어 media: 첨부된 미디어
mutes: 뮤트 mutes: 뮤트
notifications: 알림 notifications: 알림
profile: 내 마스토돈 프로필
push: 푸시 알림 push: 푸시 알림
reports: 신고 reports: 신고
search: 검색 search: 검색
@ -165,6 +166,7 @@ ko:
admin:write:reports: 신고에 모더레이션 조치 취하기 admin:write:reports: 신고에 모더레이션 조치 취하기
crypto: 종단간 암호화 사용 crypto: 종단간 암호화 사용
follow: 계정 관계 수정 follow: 계정 관계 수정
profile: 내 계정의 프로필 정보만을 읽습니다
push: 푸시 알림 받기 push: 푸시 알림 받기
read: 계정의 모든 데이터 읽기 read: 계정의 모든 데이터 읽기
read:accounts: 계정 정보 보기 read:accounts: 계정 정보 보기
@ -174,7 +176,6 @@ ko:
read:filters: 필터 보기 read:filters: 필터 보기
read:follows: 팔로우 보기 read:follows: 팔로우 보기
read:lists: 리스트 보기 read:lists: 리스트 보기
read:me: 내 계정의 기본 정보만을 읽습니다
read:mutes: 뮤트 보기 read:mutes: 뮤트 보기
read:notifications: 알림 보기 read:notifications: 알림 보기
read:reports: 신고 보기 read:reports: 신고 보기

View File

@ -174,7 +174,6 @@ lt:
read:filters: matyti tavo filtrus read:filters: matyti tavo filtrus
read:follows: matyti tavo sekimus read:follows: matyti tavo sekimus
read:lists: matyti tavo sąrašus read:lists: matyti tavo sąrašus
read:me: skaityti tik pagrindinę paskyros informaciją
read:mutes: matyti tavo nutildymus read:mutes: matyti tavo nutildymus
read:notifications: matyti tavo pranešimus read:notifications: matyti tavo pranešimus
read:reports: matyti tavo ataskaitas read:reports: matyti tavo ataskaitas

View File

@ -174,7 +174,6 @@ lv:
read:filters: apskatīt savus filtrus read:filters: apskatīt savus filtrus
read:follows: apskatīt savus sekotājus read:follows: apskatīt savus sekotājus
read:lists: apskatīt savus sarakstus read:lists: apskatīt savus sarakstus
read:me: lasīt tikai Tava konta pamatinformāciju
read:mutes: apskatīt savus apklusinātos read:mutes: apskatīt savus apklusinātos
read:notifications: apskatīt savus paziņojumus read:notifications: apskatīt savus paziņojumus
read:reports: apskatīt savus pārskatus read:reports: apskatīt savus pārskatus

View File

@ -135,6 +135,7 @@ nl:
media: Mediabijlagen media: Mediabijlagen
mutes: Negeren mutes: Negeren
notifications: Meldingen notifications: Meldingen
profile: Jouw Mastodonprofiel
push: Pushmeldingen push: Pushmeldingen
reports: Rapportages reports: Rapportages
search: Zoeken search: Zoeken
@ -165,6 +166,7 @@ nl:
admin:write:reports: moderatieacties op rapportages uitvoeren admin:write:reports: moderatieacties op rapportages uitvoeren
crypto: end-to-end-encryptie gebruiken crypto: end-to-end-encryptie gebruiken
follow: volgrelaties tussen accounts bewerken follow: volgrelaties tussen accounts bewerken
profile: alleen de profielgegevens van jouw account lezen
push: jouw pushmeldingen ontvangen push: jouw pushmeldingen ontvangen
read: alle gegevens van jouw account lezen read: alle gegevens van jouw account lezen
read:accounts: informatie accounts bekijken read:accounts: informatie accounts bekijken
@ -174,7 +176,6 @@ nl:
read:filters: jouw filters bekijken read:filters: jouw filters bekijken
read:follows: de accounts die jij volgt bekijken read:follows: de accounts die jij volgt bekijken
read:lists: jouw lijsten bekijken read:lists: jouw lijsten bekijken
read:me: alleen de basisgegevens van jouw account lezen
read:mutes: jouw genegeerde gebruikers bekijken read:mutes: jouw genegeerde gebruikers bekijken
read:notifications: jouw meldingen bekijken read:notifications: jouw meldingen bekijken
read:reports: jouw gerapporteerde berichten bekijken read:reports: jouw gerapporteerde berichten bekijken

View File

@ -174,7 +174,6 @@ nn:
read:filters: sjå filtera dine read:filters: sjå filtera dine
read:follows: sjå fylgjarane dine read:follows: sjå fylgjarane dine
read:lists: sjå listene dine read:lists: sjå listene dine
read:me: les berre kontoen din sin grunnleggjande informasjon
read:mutes: sjå kven du har målbunde read:mutes: sjå kven du har målbunde
read:notifications: sjå varsla dine read:notifications: sjå varsla dine
read:reports: sjå rapportane dine read:reports: sjå rapportane dine

View File

@ -135,6 +135,7 @@ pl:
media: Załączniki multimedialne media: Załączniki multimedialne
mutes: Wyciszenia mutes: Wyciszenia
notifications: Powiadomienia notifications: Powiadomienia
profile: Twój profil
push: Powiadomienia push push: Powiadomienia push
reports: Zgłoszenia reports: Zgłoszenia
search: Szukaj search: Szukaj
@ -165,6 +166,7 @@ pl:
admin:write:reports: wykonaj działania moderacyjne na zgłoszeniach admin:write:reports: wykonaj działania moderacyjne na zgłoszeniach
crypto: użyj szyfrowania end-to-end crypto: użyj szyfrowania end-to-end
follow: możliwość zarządzania relacjami kont follow: możliwość zarządzania relacjami kont
profile: odczytaj tylko informacje o profilu
push: otrzymywanie powiadomień push dla Twojego konta push: otrzymywanie powiadomień push dla Twojego konta
read: możliwość odczytu wszystkich danych konta read: możliwość odczytu wszystkich danych konta
read:accounts: dostęp do informacji o koncie read:accounts: dostęp do informacji o koncie
@ -174,7 +176,6 @@ pl:
read:filters: dostęp do filtrów read:filters: dostęp do filtrów
read:follows: dostęp do listy obserwowanych read:follows: dostęp do listy obserwowanych
read:lists: dostęp do Twoich list read:lists: dostęp do Twoich list
read:me: odczytaj tylko podstawowe informacje o koncie
read:mutes: dostęp do listy wyciszonych read:mutes: dostęp do listy wyciszonych
read:notifications: możliwość odczytu powiadomień read:notifications: możliwość odczytu powiadomień
read:reports: dostęp do Twoich zgłoszeń read:reports: dostęp do Twoich zgłoszeń

View File

@ -174,7 +174,6 @@ pt-BR:
read:filters: ver seus filtros read:filters: ver seus filtros
read:follows: ver quem você segue read:follows: ver quem você segue
read:lists: ver suas listas read:lists: ver suas listas
read:me: ler só as informações básicas da sua conta
read:mutes: ver seus silenciados read:mutes: ver seus silenciados
read:notifications: ver suas notificações read:notifications: ver suas notificações
read:reports: ver suas denúncias read:reports: ver suas denúncias

View File

@ -135,6 +135,7 @@ pt-PT:
media: Anexos de media media: Anexos de media
mutes: Silenciados mutes: Silenciados
notifications: Notificações notifications: Notificações
profile: O seu perfil Mastodon
push: Notificações push push: Notificações push
reports: Denúncias reports: Denúncias
search: Pesquisa search: Pesquisa
@ -165,6 +166,7 @@ pt-PT:
admin:write:reports: executar ações de moderação em denúncias admin:write:reports: executar ações de moderação em denúncias
crypto: usa encriptação ponta-a-ponta crypto: usa encriptação ponta-a-ponta
follow: siga, bloqueie, desbloqueie, e deixa de seguir contas follow: siga, bloqueie, desbloqueie, e deixa de seguir contas
profile: apenas ler as informações do perfil da sua conta
push: receber as suas notificações push push: receber as suas notificações push
read: tenha acesso aos dados da tua conta read: tenha acesso aos dados da tua conta
read:accounts: ver as informações da conta read:accounts: ver as informações da conta
@ -174,7 +176,6 @@ pt-PT:
read:filters: ver os seus filtros read:filters: ver os seus filtros
read:follows: ver quem você segue read:follows: ver quem você segue
read:lists: ver as suas listas read:lists: ver as suas listas
read:me: ler apenas as informações básicas da sua conta
read:mutes: ver os utilizadores que silenciou read:mutes: ver os utilizadores que silenciou
read:notifications: ver as suas notificações read:notifications: ver as suas notificações
read:reports: ver as suas denúncias read:reports: ver as suas denúncias

View File

@ -174,7 +174,6 @@ sl:
read:filters: oglejte si svoje filtre read:filters: oglejte si svoje filtre
read:follows: oglejte si svoje sledilce read:follows: oglejte si svoje sledilce
read:lists: oglejte si svoje sezname read:lists: oglejte si svoje sezname
read:me: preberi le osnovne podatke računa
read:mutes: oglejte si svoje utišane read:mutes: oglejte si svoje utišane
read:notifications: oglejte si svoja obvestila read:notifications: oglejte si svoja obvestila
read:reports: oglejte si svoje prijave read:reports: oglejte si svoje prijave

View File

@ -135,6 +135,7 @@ sq:
media: Bashkëngjitje media media: Bashkëngjitje media
mutes: Heshtime mutes: Heshtime
notifications: Njoftime notifications: Njoftime
profile: Profili juaj Mastodon
push: Njoftime Push push: Njoftime Push
reports: Raportime reports: Raportime
search: Kërkim search: Kërkim
@ -165,6 +166,7 @@ sq:
admin:write:reports: të kryejë veprime moderimi në raportime admin:write:reports: të kryejë veprime moderimi në raportime
crypto: përdor fshehtëzim skaj-më-skaj crypto: përdor fshehtëzim skaj-më-skaj
follow: të ndryshojë marrëdhënie llogarish follow: të ndryshojë marrëdhënie llogarish
profile: të lexojë vetëm hollësi profili llogarie tuaj
push: të marrë njoftime push për ju push: të marrë njoftime push për ju
read: të lexojë krejt të dhënat e llogarisë tuaj read: të lexojë krejt të dhënat e llogarisë tuaj
read:accounts: të shohë hollësi llogarish read:accounts: të shohë hollësi llogarish
@ -174,7 +176,6 @@ sq:
read:filters: të shohë filtrat tuaj read:filters: të shohë filtrat tuaj
read:follows: të shohë ndjekësit tuaj read:follows: të shohë ndjekësit tuaj
read:lists: të shohë listat tuaja read:lists: të shohë listat tuaja
read:me: të shohë vetëm hollësi elementare të llogarisë tuaj
read:mutes: të shohë çkeni heshtuar read:mutes: të shohë çkeni heshtuar
read:notifications: të shohë njoftimet tuaja read:notifications: të shohë njoftimet tuaja
read:reports: të shohë raportimet tuaja read:reports: të shohë raportimet tuaja

View File

@ -135,6 +135,7 @@ sr-Latn:
media: Multimedijalni prilozi media: Multimedijalni prilozi
mutes: Ignorisani mutes: Ignorisani
notifications: Obaveštenja notifications: Obaveštenja
profile: Vaš Mastodon profil
push: Prosleđena obaveštenja push: Prosleđena obaveštenja
reports: Prijave reports: Prijave
search: Pretraga search: Pretraga
@ -165,6 +166,7 @@ sr-Latn:
admin:write:reports: vršenje moderatorskih aktivnosti nad izveštajima admin:write:reports: vršenje moderatorskih aktivnosti nad izveštajima
crypto: korišćenje end-to-end enkripcije crypto: korišćenje end-to-end enkripcije
follow: menja odnose naloga follow: menja odnose naloga
profile: čita samo informacije o profilu vašeg naloga
push: primanje prosleđenih obaveštenja push: primanje prosleđenih obaveštenja
read: čita podatke Vašeg naloga read: čita podatke Vašeg naloga
read:accounts: pogledaj informacije o nalozima read:accounts: pogledaj informacije o nalozima
@ -174,7 +176,6 @@ sr-Latn:
read:filters: pogledaj svoje filtere read:filters: pogledaj svoje filtere
read:follows: pogledaj koga pratiš read:follows: pogledaj koga pratiš
read:lists: pogledaj svoje liste read:lists: pogledaj svoje liste
read:me: čita samo osnovne informacije o vašem nalogu
read:mutes: pogledaj ignorisanja read:mutes: pogledaj ignorisanja
read:notifications: pogledaj svoja obaveštenja read:notifications: pogledaj svoja obaveštenja
read:reports: pogledaj svoje prijave read:reports: pogledaj svoje prijave

View File

@ -135,6 +135,7 @@ sr:
media: Мултимедијални прилози media: Мултимедијални прилози
mutes: Игнорисани mutes: Игнорисани
notifications: Обавештења notifications: Обавештења
profile: Ваш Mastodon профил
push: Прослеђена обавештења push: Прослеђена обавештења
reports: Пријаве reports: Пријаве
search: Претрага search: Претрага
@ -165,6 +166,7 @@ sr:
admin:write:reports: вршење модераторских активности над извештајима admin:write:reports: вршење модераторских активности над извештајима
crypto: коришћење end-to-end енкрипције crypto: коришћење end-to-end енкрипције
follow: мења односе налога follow: мења односе налога
profile: чита само информације о профилу вашег налога
push: примање прослеђених обавештења push: примање прослеђених обавештења
read: чита податке Вашег налога read: чита податке Вашег налога
read:accounts: погледај информације о налозима read:accounts: погледај информације о налозима
@ -174,7 +176,6 @@ sr:
read:filters: погледај своје филтере read:filters: погледај своје филтере
read:follows: погледај кога пратиш read:follows: погледај кога пратиш
read:lists: погледај своје листе read:lists: погледај своје листе
read:me: чита само основне информације о вашем налогу
read:mutes: погледај игнорисања read:mutes: погледај игнорисања
read:notifications: погледај своја обавештења read:notifications: погледај своја обавештења
read:reports: погледај своје пријаве read:reports: погледај своје пријаве

View File

@ -174,7 +174,6 @@ sv:
read:filters: se dina filter read:filters: se dina filter
read:follows: se vem du följer read:follows: se vem du följer
read:lists: se dina listor read:lists: se dina listor
read:me: läs endast den grundläggande informationen för ditt konto
read:mutes: se dina tystningar read:mutes: se dina tystningar
read:notifications: se dina notiser read:notifications: se dina notiser
read:reports: se dina rapporter read:reports: se dina rapporter

View File

@ -174,7 +174,6 @@ th:
read:filters: ดูตัวกรองของคุณ read:filters: ดูตัวกรองของคุณ
read:follows: ดูการติดตามของคุณ read:follows: ดูการติดตามของคุณ
read:lists: ดูรายการของคุณ read:lists: ดูรายการของคุณ
read:me: อ่านเฉพาะข้อมูลพื้นฐานของบัญชีของคุณเท่านั้น
read:mutes: ดูการซ่อนของคุณ read:mutes: ดูการซ่อนของคุณ
read:notifications: ดูการแจ้งเตือนของคุณ read:notifications: ดูการแจ้งเตือนของคุณ
read:reports: ดูรายงานของคุณ read:reports: ดูรายงานของคุณ

View File

@ -135,6 +135,7 @@ tr:
media: Medya ekleri media: Medya ekleri
mutes: Sessize alınanlar mutes: Sessize alınanlar
notifications: Bildirimler notifications: Bildirimler
profile: Mastodon profiliniz
push: Anlık bildirimler push: Anlık bildirimler
reports: Şikayetler reports: Şikayetler
search: Arama search: Arama
@ -165,6 +166,7 @@ tr:
admin:write:reports: raporlarda denetleme eylemleri gerçekleştirin admin:write:reports: raporlarda denetleme eylemleri gerçekleştirin
crypto: uçtan uca şifreleme kullan crypto: uçtan uca şifreleme kullan
follow: hesap ilişkilerini değiştirin follow: hesap ilişkilerini değiştirin
profile: hesabınızın sadece profil bilgilerini okuma
push: anlık bildirimlerizi alın push: anlık bildirimlerizi alın
read: hesabınızın tüm verilerini okuyun read: hesabınızın tüm verilerini okuyun
read:accounts: hesap bilgilerini görün read:accounts: hesap bilgilerini görün
@ -174,7 +176,6 @@ tr:
read:filters: süzgeçlerinizi görün read:filters: süzgeçlerinizi görün
read:follows: takip ettiklerinizi görün read:follows: takip ettiklerinizi görün
read:lists: listelerinizi görün read:lists: listelerinizi görün
read:me: hesabınızın sadece temel bilgilerini okuma
read:mutes: sessize aldıklarınızı görün read:mutes: sessize aldıklarınızı görün
read:notifications: bildirimlerinizi görün read:notifications: bildirimlerinizi görün
read:reports: raporlarınızı görün read:reports: raporlarınızı görün

View File

@ -135,6 +135,7 @@ uk:
media: Мультимедійні вкладення media: Мультимедійні вкладення
mutes: Нехтувані mutes: Нехтувані
notifications: Сповіщення notifications: Сповіщення
profile: Ваш профіль Mastodon
push: Push-сповіщення push: Push-сповіщення
reports: Скарги reports: Скарги
search: Пошук search: Пошук
@ -171,6 +172,7 @@ uk:
admin:write:reports: модерувати скарги admin:write:reports: модерувати скарги
crypto: використовувати наскрізне шифрування crypto: використовувати наскрізне шифрування
follow: змінювати стосунки облікового запису follow: змінювати стосунки облікового запису
profile: читати лише інформацію профілю вашого облікового запису
push: отримувати Ваші Push-повідомлення push: отримувати Ваші Push-повідомлення
read: читати усі дані вашого облікового запису read: читати усі дані вашого облікового запису
read:accounts: бачити інформацію про облікові записи read:accounts: бачити інформацію про облікові записи
@ -180,7 +182,6 @@ uk:
read:filters: бачити Ваші фільтри read:filters: бачити Ваші фільтри
read:follows: бачити Ваші підписки read:follows: бачити Ваші підписки
read:lists: бачити Ваші списки read:lists: бачити Ваші списки
read:me: читайте лише основну інформацію вашого облікового запису
read:mutes: бачити ваші нехтування read:mutes: бачити ваші нехтування
read:notifications: бачити Ваші сповіщення read:notifications: бачити Ваші сповіщення
read:reports: бачити Ваші скарги read:reports: бачити Ваші скарги

View File

@ -174,7 +174,6 @@ vi:
read:filters: xem bộ lọc read:filters: xem bộ lọc
read:follows: xem những người theo dõi read:follows: xem những người theo dõi
read:lists: xem danh sách read:lists: xem danh sách
read:me: chỉ đọc thông tin cơ bản tài khoản
read:mutes: xem những người đã ẩn read:mutes: xem những người đã ẩn
read:notifications: xem thông báo read:notifications: xem thông báo
read:reports: xem báo cáo của bạn read:reports: xem báo cáo của bạn

View File

@ -135,6 +135,7 @@ zh-CN:
media: 媒体文件 media: 媒体文件
mutes: 已被隐藏的 mutes: 已被隐藏的
notifications: 通知 notifications: 通知
profile: 你的 Mastodon 个人资料
push: 推送通知 push: 推送通知
reports: 举报 reports: 举报
search: 搜索 search: 搜索
@ -165,6 +166,7 @@ zh-CN:
admin:write:reports: 对举报执行管理操作 admin:write:reports: 对举报执行管理操作
crypto: 使用端到端加密 crypto: 使用端到端加密
follow: 关注或屏蔽用户 follow: 关注或屏蔽用户
profile: 仅读取你账户中的个人资料信息
push: 接收你的账户的推送通知 push: 接收你的账户的推送通知
read: 读取你的账户数据 read: 读取你的账户数据
read:accounts: 查看账号信息 read:accounts: 查看账号信息
@ -174,7 +176,6 @@ zh-CN:
read:filters: 查看你的过滤器 read:filters: 查看你的过滤器
read:follows: 查看你的关注 read:follows: 查看你的关注
read:lists: 查看你的列表 read:lists: 查看你的列表
read:me: 只读取你账户的基本信息
read:mutes: 查看你的隐藏列表 read:mutes: 查看你的隐藏列表
read:notifications: 查看你的通知 read:notifications: 查看你的通知
read:reports: 查看你的举报 read:reports: 查看你的举报

View File

@ -174,7 +174,6 @@ zh-HK:
read:filters: 檢視你的過濾條件 read:filters: 檢視你的過濾條件
read:follows: 檢視你關注的人 read:follows: 檢視你關注的人
read:lists: 檢視你的清單 read:lists: 檢視你的清單
read:me: 僅讀取帳號的基本資訊
read:mutes: 檢視被你靜音的人 read:mutes: 檢視被你靜音的人
read:notifications: 檢視你的通知 read:notifications: 檢視你的通知
read:reports: 檢視你的檢舉 read:reports: 檢視你的檢舉

View File

@ -135,6 +135,7 @@ zh-TW:
media: 多媒體附加檔案 media: 多媒體附加檔案
mutes: 靜音 mutes: 靜音
notifications: 通知 notifications: 通知
profile: 您 Mastodon 個人檔案
push: 推播通知 push: 推播通知
reports: 檢舉報告 reports: 檢舉報告
search: 搜尋 search: 搜尋
@ -165,6 +166,7 @@ zh-TW:
admin:write:reports: 對報告進行管理動作 admin:write:reports: 對報告進行管理動作
crypto: 使用端到端加密 crypto: 使用端到端加密
follow: 修改帳號關係 follow: 修改帳號關係
profile: 僅讀取您的帳號個人檔案資訊
push: 接收帳號的推播通知 push: 接收帳號的推播通知
read: 讀取您所有的帳號資料 read: 讀取您所有的帳號資料
read:accounts: 檢視帳號資訊 read:accounts: 檢視帳號資訊
@ -174,7 +176,6 @@ zh-TW:
read:filters: 檢視您的過濾條件 read:filters: 檢視您的過濾條件
read:follows: 檢視您跟隨之使用者 read:follows: 檢視您跟隨之使用者
read:lists: 檢視您的列表 read:lists: 檢視您的列表
read:me: 僅讀取您的帳號基本資訊
read:mutes: 檢視您靜音的人 read:mutes: 檢視您靜音的人
read:notifications: 檢視您的通知 read:notifications: 檢視您的通知
read:reports: 檢視您的檢舉 read:reports: 檢視您的檢舉

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class ChangeMentionStatusIdNonNullable < ActiveRecord::Migration[7.1]
def change
add_check_constraint :mentions, 'status_id IS NOT NULL', name: 'mentions_status_id_null', validate: false
end
end

View File

@ -0,0 +1,14 @@
# frozen_string_literal: true
class ValidateChangeMentionStatusIdNonNullable < ActiveRecord::Migration[7.1]
def up
validate_check_constraint :mentions, name: 'mentions_status_id_null'
change_column_null :mentions, :status_id, false
remove_check_constraint :mentions, name: 'mentions_status_id_null'
end
def down
add_check_constraint :mentions, 'status_id IS NOT NULL', name: 'mentions_status_id_null', validate: false
change_column_null :mentions, :status_id, true
end
end

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class ChangeMentionAccountIdNonNullable < ActiveRecord::Migration[7.1]
def change
add_check_constraint :mentions, 'account_id IS NOT NULL', name: 'mentions_account_id_null', validate: false
end
end

View File

@ -0,0 +1,14 @@
# frozen_string_literal: true
class ValidateChangeMentionAccountIdNonNullable < ActiveRecord::Migration[7.1]
def up
validate_check_constraint :mentions, name: 'mentions_account_id_null'
change_column_null :mentions, :account_id, false
remove_check_constraint :mentions, name: 'mentions_account_id_null'
end
def down
add_check_constraint :mentions, 'account_id IS NOT NULL', name: 'mentions_account_id_null', validate: false
change_column_null :mentions, :account_id, true
end
end

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_06_03_195202) do ActiveRecord::Schema[7.1].define(version: 2024_06_07_094856) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -661,10 +661,10 @@ ActiveRecord::Schema[7.1].define(version: 2024_06_03_195202) do
end end
create_table "mentions", force: :cascade do |t| create_table "mentions", force: :cascade do |t|
t.bigint "status_id" t.bigint "status_id", null: false
t.datetime "created_at", precision: nil, null: false t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false t.datetime "updated_at", precision: nil, null: false
t.bigint "account_id" t.bigint "account_id", null: false
t.boolean "silent", default: false, null: false t.boolean "silent", default: false, null: false
t.index ["account_id", "status_id"], name: "index_mentions_on_account_id_and_status_id", unique: true t.index ["account_id", "status_id"], name: "index_mentions_on_account_id_and_status_id", unique: true
t.index ["status_id"], name: "index_mentions_on_status_id" t.index ["status_id"], name: "index_mentions_on_status_id"

View File

@ -13,6 +13,7 @@ module Mastodon::CLI
option :remove_headers, type: :boolean, default: false option :remove_headers, type: :boolean, default: false
option :include_follows, type: :boolean, default: false option :include_follows, type: :boolean, default: false
option :concurrency, type: :numeric, default: 5, aliases: [:c] option :concurrency, type: :numeric, default: 5, aliases: [:c]
option :verbose, type: :boolean, default: false, aliases: [:v]
option :dry_run, type: :boolean, default: false option :dry_run, type: :boolean, default: false
desc 'remove', 'Remove remote media files, headers or avatars' desc 'remove', 'Remove remote media files, headers or avatars'
long_desc <<-DESC long_desc <<-DESC

View File

@ -12,6 +12,8 @@ module Paperclip
attachment.instance.blurhash = Blurhash.encode(width, height, data, **(options[:blurhash] || {})) attachment.instance.blurhash = Blurhash.encode(width, height, data, **(options[:blurhash] || {}))
@file @file
rescue Vips::Error => e
raise Paperclip::Error, "Error while generating blurhash for #{@basename}: #{e}"
end end
private private

View File

@ -69,6 +69,8 @@ module Paperclip
attachment.instance.file.instance_write(:meta, (attachment.instance.file.instance_read(:meta) || {}).merge(meta)) attachment.instance.file.instance_write(:meta, (attachment.instance.file.instance_read(:meta) || {}).merge(meta))
@file @file
rescue Vips::Error => e
raise Paperclip::Error, "Error while extracting colors for #{@basename}: #{e}"
end end
private private

View File

@ -68,7 +68,7 @@ module Paperclip
end end
dst dst
rescue Terrapin::ExitStatusError => e rescue Vips::Error, Terrapin::ExitStatusError => e
raise Paperclip::Error, "Error while optimizing #{@basename}: #{e}" raise Paperclip::Error, "Error while optimizing #{@basename}: #{e}"
rescue Terrapin::CommandNotFoundError rescue Terrapin::CommandNotFoundError
raise Paperclip::Errors::CommandNotFoundError, 'Could not run the `ffmpeg` command. Please install ffmpeg.' raise Paperclip::Errors::CommandNotFoundError, 'Could not run the `ffmpeg` command. Please install ffmpeg.'

View File

@ -69,20 +69,22 @@ RSpec.describe Admin::AccountAction do
end end
end end
it 'sends notification, log the action, and closes other reports', :aggregate_failures do it 'sends email to target account user', :sidekiq_inline do
other_report = Fabricate(:report, target_account: target_account)
emails = []
expect do
emails = capture_emails { subject } emails = capture_emails { subject }
end.to (change(Admin::ActionLog.where(action: type), :count).by 1)
.and(change { other_report.reload.action_taken? }.from(false).to(true))
expect(emails).to contain_exactly( expect(emails).to contain_exactly(
have_attributes( have_attributes(
to: contain_exactly(target_account.user.email) to: contain_exactly(target_account.user.email)
) )
) )
end
it 'sends notification, log the action, and closes other reports', :aggregate_failures do
other_report = Fabricate(:report, target_account: target_account)
expect { subject }
.to (change(Admin::ActionLog.where(action: type), :count).by 1)
.and(change { other_report.reload.action_taken? }.from(false).to(true))
expect(LocalNotificationWorker).to have_enqueued_sidekiq_job(target_account.id, anything, 'AccountWarning', 'moderation_warning') expect(LocalNotificationWorker).to have_enqueued_sidekiq_job(target_account.id, anything, 'AccountWarning', 'moderation_warning')
end end

View File

@ -2,7 +2,7 @@
require 'rails_helper' require 'rails_helper'
RSpec.describe CustomEmoji do RSpec.describe CustomEmoji, :paperclip_processing do
describe '#search' do describe '#search' do
subject { described_class.search(search_term) } subject { described_class.search(search_term) }

View File

@ -10,10 +10,16 @@ RSpec.describe 'Account actions' do
let(:headers) { { 'Authorization' => "Bearer #{token.token}" } } let(:headers) { { 'Authorization' => "Bearer #{token.token}" } }
shared_examples 'a successful notification delivery' do shared_examples 'a successful notification delivery' do
it 'notifies the user about the action taken' do it 'notifies the user about the action taken', :sidekiq_inline do
expect { subject } emails = capture_emails { subject }
.to have_enqueued_job(ActionMailer::MailDeliveryJob)
.with('UserMailer', 'warning', 'deliver_now!', args: [User, AccountWarning]) expect(emails.size)
.to eq(1)
expect(emails.first)
.to have_attributes(
to: contain_exactly(target_account.user.email)
)
end end
end end

View File

@ -33,8 +33,7 @@ RSpec.describe 'Reports' do
it_behaves_like 'forbidden for wrong scope', 'read read:reports' it_behaves_like 'forbidden for wrong scope', 'read read:reports'
it 'creates a report', :aggregate_failures do it 'creates a report', :aggregate_failures, :sidekiq_inline do
perform_enqueued_jobs do
emails = capture_emails { subject } emails = capture_emails { subject }
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
@ -57,7 +56,6 @@ RSpec.describe 'Reports' do
subject: eq(I18n.t('admin_mailer.new_report.subject', instance: Rails.configuration.x.local_domain, id: target_account.targeted_reports.first.id)) subject: eq(I18n.t('admin_mailer.new_report.subject', instance: Rails.configuration.x.local_domain, id: target_account.targeted_reports.first.id))
) )
end end
end
context 'when a status does not belong to the reported account' do context 'when a status does not belong to the reported account' do
let(:target_account) { Fabricate(:account) } let(:target_account) { Fabricate(:account) }

View File

@ -2,7 +2,7 @@
require 'rails_helper' require 'rails_helper'
RSpec.describe AppealService do RSpec.describe AppealService, :sidekiq_inline do
describe '#call' do describe '#call' do
let!(:admin) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } let!(:admin) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }