Skip to content

Commit

Permalink
Merge pull request mastodon#1941 from ClearlyClaire/glitch-soc/merge-…
Browse files Browse the repository at this point in the history
…upstream

Merge upstream changes
  • Loading branch information
ClearlyClaire committed Nov 16, 2022
2 parents 7efe2cf + 1901829 commit ad84fd2
Show file tree
Hide file tree
Showing 73 changed files with 2,383 additions and 820 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Changelog

All notable changes to this project will be documented in this file.

## [4.0.2] - 2022-11-15
### Fixed

- Fix wrong color on mentions hidden behind content warning in web UI ([Gargron](https://github.com/mastodon/mastodon/pull/20724))
- Fix filters from other users being used in the streaming service ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/20719))
- Fix `unsafe-eval` being used when `wasm-unsafe-eval` is enough in Content Security Policy ([Gargron](https://github.com/mastodon/mastodon/pull/20729), [prplecake](https://github.com/mastodon/mastodon/pull/20606))

## [4.0.1] - 2022-11-14
### Fixed

Expand Down
16 changes: 8 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ GEM
multi_json (~> 1.15)
rack (~> 2.2)
rdf (~> 3.2, >= 3.2.9)
json-ld-preloaded (3.2.0)
json-ld-preloaded (3.2.2)
json-ld (~> 3.2)
rdf (~> 3.2)
jsonapi-renderer (0.2.2)
Expand Down Expand Up @@ -395,7 +395,7 @@ GEM
mario-redis-lock (1.2.1)
redis (>= 3.0.5)
matrix (0.4.2)
memory_profiler (1.0.0)
memory_profiler (1.0.1)
method_source (1.0.0)
microformats (4.4.1)
json (~> 2.2)
Expand All @@ -414,15 +414,15 @@ GEM
net-ssh (>= 2.6.5, < 8.0.0)
net-ssh (7.0.1)
nio4r (2.5.8)
nokogiri (1.13.8)
nokogiri (1.13.9)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nsa (0.2.8)
activesupport (>= 4.2, < 7)
concurrent-ruby (~> 1.0, >= 1.0.2)
sidekiq (>= 3.5)
statsd-ruby (~> 1.4, >= 1.4.0)
oj (3.13.21)
oj (3.13.23)
omniauth (1.9.2)
hashie (>= 3.4.6)
rack (>= 1.6.2, < 3)
Expand Down Expand Up @@ -457,7 +457,7 @@ GEM
parslet (2.0.0)
pastel (0.8.0)
tty-color (~> 0.5)
pg (1.4.3)
pg (1.4.4)
pghero (2.8.3)
activerecord (>= 5)
pkg-config (1.4.9)
Expand Down Expand Up @@ -611,8 +611,8 @@ GEM
activerecord (>= 4.0.0)
railties (>= 4.0.0)
semantic_range (3.0.0)
sidekiq (6.5.7)
connection_pool (>= 2.2.5)
sidekiq (6.5.8)
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
sidekiq-bulk (0.2.0)
Expand Down Expand Up @@ -684,7 +684,7 @@ GEM
unf (~> 0.1.0)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2022.4)
tzinfo-data (1.2022.6)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def authorize_if_got_token!(*scopes)
end

def set_cache_headers
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
response.headers['Cache-Control'] = 'private, no-store'
end

def disallow_unauthenticated_api_access?
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/auth/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ def require_rules_acceptance!
end

def set_cache_headers
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
response.headers['Cache-Control'] = 'private, no-store'
end
end
2 changes: 1 addition & 1 deletion app/controllers/oauth/authorizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def truthy_param?(key)
end

def set_cache_headers
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
response.headers['Cache-Control'] = 'private, no-store'
end
end
2 changes: 1 addition & 1 deletion app/controllers/settings/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def set_body_classes
end

def set_cache_headers
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
response.headers['Cache-Control'] = 'private, no-store'
end

def require_not_suspended!
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class StatusContent extends React.PureComponent {
let mentionsPlaceholder = '';

const mentionLinks = status.get('mentions').map(item => (
<Link to={`/@${item.get('acct')}`} key={item.get('id')} className='mention'>
<Link to={`/@${item.get('acct')}`} key={item.get('id')} className='status-link mention'>
@<span>{item.get('username')}</span>
</Link>
)).reduce((aggregate, item) => [...aggregate, item, ' '], []);
Expand Down
44 changes: 22 additions & 22 deletions app/javascript/mastodon/locales/ast.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"about.blocks": "Moderated servers",
"about.contact": "Contact:",
"about.blocks": "Servidor Moderáu",
"about.contact": "Contautu:",
"about.disclaimer": "Mastodon ye software gratuito y de códigu llibre, y una marca rexistrada de Mastodon gGmbH.",
"about.domain_blocks.no_reason_available": "El motivu nun ta disponible",
"about.domain_blocks.preamble": "Mastodon generally allows you to view content from and interact with users from any other server in the fediverse. These are the exceptions that have been made on this particular server.",
"about.domain_blocks.silenced.explanation": "You will generally not see profiles and content from this server, unless you explicitly look it up or opt into it by following.",
"about.domain_blocks.silenced.title": "Limited",
"about.domain_blocks.suspended.explanation": "No data from this server will be processed, stored or exchanged, making any interaction or communication with users from this server impossible.",
"about.domain_blocks.suspended.title": "Suspended",
"about.not_available": "This information has not been made available on this server.",
"about.powered_by": "Decentralized social media powered by {mastodon}",
"about.rules": "Server rules",
"about.domain_blocks.preamble": "En xeneral Mastodon permite-y ver conteníos y interactuar con usuarios de cualesquier otru servidor nel fediversu. Estes son les excepciones que se ficieron nesti servidor en concretu.",
"about.domain_blocks.silenced.explanation": "Polo xeneral, nun verá los perfiles y el conteniu dʼesti servidor, a menos que lu busque explícitamente o opte por seguilu.",
"about.domain_blocks.silenced.title": "Limitao",
"about.domain_blocks.suspended.explanation": "Nengún datu dʼesti servidor sedrá procesáu, almacenáu o intercambiáu, imposibilitando cualesquier interacción o comunicación colos usuarios dʼesti servidor.",
"about.domain_blocks.suspended.title": "Suspendíu",
"about.not_available": "Esta información nun ta algamable nesti servidor.",
"about.powered_by": "Rede social descentralizada gracies a {mastodon}",
"about.rules": "Regles del servidor",
"account.account_note_header": "Nota",
"account.add_or_remove_from_list": "Add or Remove from lists",
"account.add_or_remove_from_list": "Amestar o Quitar de les llistes",
"account.badges.bot": "Robó",
"account.badges.group": "Grupu",
"account.block": "Bloquiar a @{name}",
"account.block_domain": "Block domain {domain}",
"account.blocked": "Blocked",
"account.browse_more_on_origin_server": "Browse more on the original profile",
"account.cancel_follow_request": "Withdraw follow request",
"account.direct": "Direct message @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "Domain blocked",
"account.block_domain": "Bloquear el dominiu {domain}",
"account.blocked": "Bloqueado",
"account.browse_more_on_origin_server": "Gueta más nel perfil orixinal",
"account.cancel_follow_request": "Quita la solicitú de seguimientu",
"account.direct": "Mensaxe direutu @{name}",
"account.disable_notifications": "Dexar de comunícame cuando @{name} escriba daqué",
"account.domain_blocked": "Dominiu bloquiáu",
"account.edit_profile": "Editar el perfil",
"account.enable_notifications": "Notify me when @{name} posts",
"account.enable_notifications": "Avísame cuando @{name} ponga daqué",
"account.endorse": "Destacar nel perfil",
"account.featured_tags.last_status_at": "Last post on {date}",
"account.featured_tags.last_status_never": "No posts",
"account.featured_tags.title": "{name}'s featured hashtags",
"account.featured_tags.last_status_at": "Última publicación {date}",
"account.featured_tags.last_status_never": "En sin mensaxes",
"account.featured_tags.title": "Etiquetes destacáes de: {name}",
"account.follow": "Siguir",
"account.followers": "Siguidores",
"account.followers.empty": "Naide sigue a esti usuariu entá.",
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/locales/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@
"server_banner.learn_more": "Learn more",
"server_banner.server_stats": "Server stats:",
"sign_in_banner.create_account": "Create account",
"sign_in_banner.sign_in": "Sign in",
"sign_in_banner.sign_in": "Kevreañ",
"sign_in_banner.text": "Sign in to follow profiles or hashtags, favourite, share and reply to posts, or interact from your account on a different server.",
"status.admin_account": "Digeriñ etrefas evezherezh evit @{name}",
"status.admin_status": "Digeriñ an toud e-barzh an etrefas evezherezh",
Expand All @@ -550,7 +550,7 @@
"status.detailed_status": "Gwel kaozeadenn munudek",
"status.direct": "Kas ur c'hemennad prevez da @{name}",
"status.edit": "Aozañ",
"status.edited": "Edited {date}",
"status.edited": "Aozet {date}",
"status.edited_x_times": "Edited {count, plural, one {{count} time} other {{count} times}}",
"status.embed": "Enframmañ",
"status.favourite": "Muiañ-karet",
Expand Down
Loading

0 comments on commit ad84fd2

Please sign in to comment.