Merge branch 'master' into glitch-soc/merge-upstream

Conflicts:
- `app/controllers/api/v1/statuses_controller.rb`:
  Conflict due to upstream adding a new parameter (with_rate_limit),
  too close to glitch-soc's own additional parameter (content_type).
  Added upstream's parameter.
- `app/services/post_status_service.rb`:
  Conflict due to upstream adding a new parameter (rate_limit),
  too close to glitch-soc's own additional parameter (content_type).
  Added upstream's parameter.
- `app/views/settings/preferences/appearance/show.html.haml`:
  Conflict due to us not exposing theme settings here (as we have
  a different flavour/skin menu).
  Took upstream change, while still not exposing theme settings.
- `config/webpack/shared.js`:
  Coding style fixes for a part we have rewritten.
  Discarded upstream changes.
This commit is contained in:
Thibaut Girka
2020-03-08 19:38:53 +01:00
138 changed files with 573 additions and 317 deletions

View File

@@ -70,7 +70,6 @@ class Rack::Attack
req.remote_ip if req.post? && req.path == '/api/v1/accounts'
end
# Throttle paging, as it is mainly used for public pages and AP collections
throttle('throttle_authenticated_paging', limit: 300, period: 15.minutes) do |req|
req.authenticated_user_id if req.paging_request?
end

View File

@@ -550,6 +550,9 @@ en:
trends:
desc_html: Publicly display previously reviewed hashtags that are currently trending
title: Trending hashtags
site_uploads:
delete: Delete uploaded file
destroyed_msg: Site upload successfully deleted!
statuses:
back_to_account: Back to account page
batch:
@@ -738,7 +741,7 @@ en:
'422':
content: Security verification failed. Are you blocking cookies?
title: Security verification failed
'429': Throttled
'429': Too many requests
'500':
content: We're sorry, but something went wrong on our end.
title: This page is not correct

View File

@@ -46,8 +46,8 @@ en:
setting_default_language: The language of your toots can be detected automatically, but it's not always accurate
setting_default_sensitive: Sensitive media is hidden by default and can be revealed with a click
setting_display_media_default: Hide media marked as sensitive
setting_display_media_hide_all: Always hide all media
setting_display_media_show_all: Always show media marked as sensitive
setting_display_media_hide_all: Always hide media
setting_display_media_show_all: Always show media
setting_hide_network: Who you follow and who follows you will not be shown on your profile
setting_noindex: Affects your public profile and status pages
setting_show_application: The application you use to toot will be displayed in the detailed view of your toots

View File

@@ -188,6 +188,7 @@ Rails.application.routes.draw do
end
resource :settings, only: [:edit, :update]
resources :site_uploads, only: [:destroy]
resources :invites, only: [:index, :create, :destroy] do
collection do

View File

@@ -54,7 +54,7 @@ module.exports = merge(sharedConfig, {
watchOptions: Object.assign(
{},
settings.dev_server.watch_options,
watchOptions
watchOptions,
),
writeToDisk: filePath => /ocr/.test(filePath),
},

View File

@@ -98,7 +98,7 @@ module.exports = {
// temporary fix for https://github.com/ReactTraining/react-router/issues/5576
// to reduce bundle size
resource.request = resource.request.replace(/^history/, 'history/es');
}
},
),
new MiniCssExtractPlugin({
filename: 'css/[name]-[contenthash:8].css',