Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream 20241126 #912

Merged
merged 76 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
4259828
Use group/count approach in annual report classes (#32914)
mjankowski Nov 19, 2024
06fcee0
DB Replica database_tasks as ENV (#32908)
shleeable Nov 19, 2024
e856838
Fix notification polling showing a loading bar in web UI (#32960)
Gargron Nov 19, 2024
436a5d2
Update dependency aws-sdk-s3 to v1.172.0 (#32964)
renovate[bot] Nov 19, 2024
9fc2fc2
New Crowdin Translations (automated) (#32969)
github-actions[bot] Nov 19, 2024
87e7ad9
Add `LoginActivity` model spec and `BrowserDetection` concern shared …
mjankowski Nov 19, 2024
f2976ec
Extract `Notification::Groups` concern (#32968)
mjankowski Nov 19, 2024
2b5faa2
Change lists to reflect added and removed users retroactively (#32930)
Gargron Nov 19, 2024
37f00fb
Use hash arguments to `group` when possible (#32916)
mjankowski Nov 19, 2024
30e9c71
Fix error when viewing statuses to deleted replies in moderation view…
ClearlyClaire Nov 19, 2024
41b033e
Update dependency opentelemetry-instrumentation-rails to '~> 0.33.0' …
renovate[bot] Nov 20, 2024
b66fbae
Add `AccountWarning` case to `Report#history` spec (#32984)
mjankowski Nov 20, 2024
4252b13
New Crowdin Translations (automated) (#32990)
github-actions[bot] Nov 20, 2024
174c687
Update dependency json-schema to v5.1.0 (#32992)
renovate[bot] Nov 20, 2024
e68b26c
Fix posts made in the future being allowed to trend (#32996)
ClearlyClaire Nov 20, 2024
683db3a
Add ability to middle-mouse click posts in web UI (#32988)
Gargron Nov 20, 2024
2526b32
block scheduled status from frozen users (#30729)
PauloVilarinho Nov 20, 2024
420ed15
Fix wrong video dimensions for some rotated videos (#33008)
Gargron Nov 21, 2024
e4d5cc0
New Crowdin Translations (automated) (#33010)
github-actions[bot] Nov 21, 2024
4517e18
Update dependency doorkeeper to v5.8.0 (#33000)
ThisIsMissEm Nov 21, 2024
dbddd40
Add stop-gap antispam code (#32981)
ClearlyClaire Nov 21, 2024
7385016
`rel="me"` check should be case-insenstive (#32238)
c960657 Nov 21, 2024
6260350
Change design of lists in web UI (#32881)
Gargron Nov 21, 2024
4bfb888
Fix duplicate notifications in notification groups when using slow mo…
ClearlyClaire Nov 21, 2024
68c7782
improve nginx.conf by setting gzip_static to on (#30698)
Joshix-1 Nov 21, 2024
0518613
LinkDetailsExtractor adjustments (#31357)
c960657 Nov 22, 2024
d75088d
Fix pushing hashtag-followed posts to feeds of inactive users (#33018)
Gargron Nov 22, 2024
be2d461
Rely on Rails to enable YJIT when available (#33017)
mjankowski Nov 22, 2024
2e5abe4
Update Yarn to v4.5.2 (#33021)
renovate[bot] Nov 22, 2024
4719008
New Crowdin Translations (automated) (#33020)
github-actions[bot] Nov 22, 2024
d0753ec
Update dependency aws-sdk-s3 to v1.173.0 (#33019)
renovate[bot] Nov 22, 2024
9ebed5d
Fix CSS warnings (#32266)
c960657 Nov 22, 2024
0ad5c21
Fix accounts table long display name (#29316)
WebCoder49 Nov 22, 2024
35683ac
Remove webauthn credentials on `tootctl accounts modify --disable-2fa…
mszpro Nov 22, 2024
9d34146
Remove redundant temporary index creation in `tootctl status remove` …
ClearlyClaire Nov 22, 2024
04ce593
Prevent delivery of new posts to suspended followers (#27509)
ClearlyClaire Nov 22, 2024
99f36f1
Tweak antispam a bit (#33024)
ClearlyClaire Nov 22, 2024
2e66dd0
Show default time zone (#31803)
c960657 Nov 22, 2024
21a8612
Prevent delivery of posts to (even more) suspended followers (#33030)
oneiros Nov 22, 2024
27e79da
Update immutable imports for v5 (#33037)
nschonni Nov 22, 2024
91cc180
Update dependency puma to v6.5.0 (#33041)
renovate[bot] Nov 23, 2024
8c322cc
Update dependency mutex_m to v0.3.0 (#32991)
renovate[bot] Nov 23, 2024
a20dca7
Restore stdout logging setting in development environment (#33057)
mjankowski Nov 24, 2024
1333ed4
Update docker/dockerfile Docker tag to v1.11 (#33060)
renovate[bot] Nov 25, 2024
4521390
New Crowdin Translations (automated) (#33043)
github-actions[bot] Nov 25, 2024
7fb0880
Update dependency husky to v9.1.7 (#33058)
renovate[bot] Nov 25, 2024
fd90f04
Add coverage for `UserRole` validations (#33029)
mjankowski Nov 25, 2024
ab9c62e
Add coverage for `User` validations (#33028)
mjankowski Nov 25, 2024
74df47a
Add coverage for `Webhook` validations (#33026)
mjankowski Nov 25, 2024
1be83c6
Fix username and display name being hidden on narrow screens in moder…
ClearlyClaire Nov 25, 2024
1a88c05
Fix arrow in the wrong place on empty list members screen in web UI (…
Gargron Nov 25, 2024
2d8fed2
Fix `TagFollow` records not being correctly handled in account operat…
ClearlyClaire Nov 25, 2024
9a7130d
Fix direct inbox delivery pushing posts into inactive followers' time…
ClearlyClaire Nov 25, 2024
6d62581
Update ✨binstub✨ templates (#32335)
mjankowski Nov 25, 2024
8a075ba
Merge remote-tracking branch 'parent/main' into upstream-20241126
kmycode Nov 26, 2024
0ea9d81
Remove `body_class_string` helper (#33072)
mjankowski Nov 26, 2024
3e901d1
Update dependency selenium-webdriver to v4.27.0 (#33071)
renovate[bot] Nov 26, 2024
36496f4
Update Yarn to v4.5.3 (#33069)
renovate[bot] Nov 26, 2024
6b1dd1b
New Crowdin Translations (automated) (#33074)
github-actions[bot] Nov 26, 2024
72f623c
Update dependency @dnd-kit/sortable to v9 (#33051)
renovate[bot] Nov 26, 2024
b702cd7
Update dependency @dnd-kit/core to v6.2.0 (#33050)
renovate[bot] Nov 26, 2024
6efa320
Fix `Style/SafeNavigation` cop (#32970)
mjankowski Nov 26, 2024
0891451
Update dependency postcss-preset-env to v10.1.1 (#32947)
renovate[bot] Nov 26, 2024
7ba19ec
Update dependency webauthn to v3.2.2 (#32879)
renovate[bot] Nov 26, 2024
5c3a64d
Update dependency aws-sdk-s3 to v1.174.0 (#33076)
renovate[bot] Nov 26, 2024
f0855fd
Update dependency axios to v1.7.8 (#33075)
renovate[bot] Nov 26, 2024
a27bafa
Add `UserRole#bypass_block?` method for notification check (#32974)
mjankowski Nov 26, 2024
429e08e
Remove old notifications route from web UI (#33038)
Gargron Nov 26, 2024
7a3dea3
Change onboarding flow in web UI (#32998)
Gargron Nov 26, 2024
46c43d2
Change avatar and header size limits from 2MB to 8MB when using libvi…
Gargron Nov 26, 2024
041b05b
Wip: アンテナ編集画面 アカウント・ドメイン
kmycode Nov 27, 2024
946f5bc
Wip: アンテナ編集画面周辺
kmycode Nov 28, 2024
f1e701f
Fix lint
kmycode Nov 28, 2024
3359008
Merge remote-tracking branch 'parent/main' into upstream-2024112
kmycode Nov 28, 2024
9bd0a92
Fix: タイムライン上の公開範囲アイコン
kmycode Nov 28, 2024
61e1031
Wip: いろいろ修正
kmycode Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/bundler-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
bundler-cache: true

- name: Run bundler-audit
run: bundle exec bundler-audit check --update
run: bin/bundler-audit check --update
10 changes: 5 additions & 5 deletions .github/workflows/check-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ jobs:
git diff --exit-code

- name: Check locale file normalization
run: bundle exec i18n-tasks check-normalized
run: bin/i18n-tasks check-normalized

- name: Check for unused strings
run: bundle exec i18n-tasks unused
run: bin/i18n-tasks unused

- name: Check for missing strings in English YML
run: |
bundle exec i18n-tasks add-missing -l en
bin/i18n-tasks add-missing -l en
git diff --exit-code

- name: Check for wrong string interpolations
run: bundle exec i18n-tasks check-consistent-interpolations
run: bin/i18n-tasks check-consistent-interpolations

- name: Check that all required locale files exist
run: bundle exec rake repo:check_locales_files
run: bin/rake repo:check_locales_files
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-download-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: ./.github/actions/setup-ruby

- name: Run i18n normalize task
run: bundle exec i18n-tasks normalize
run: bin/i18n-tasks normalize

# Create or update the pull request
- name: Create Pull Request
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-haml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
- name: Run haml-lint
run: |
echo "::add-matcher::.github/workflows/haml-lint-problem-matcher.json"
bundle exec haml-lint --reporter github
bin/haml-lint --reporter github
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax=docker/dockerfile:1.10
# syntax=docker/dockerfile:1.11

# This file is designed for production server deployment, not local development work
# For a containerized local dev environment, see: https://github.com/mastodon/mastodon/blob/main/README.md#docker
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ group :opentelemetry do
gem 'opentelemetry-instrumentation-net_http', '~> 0.22.4', require: false
gem 'opentelemetry-instrumentation-pg', '~> 0.29.0', require: false
gem 'opentelemetry-instrumentation-rack', '~> 0.25.0', require: false
gem 'opentelemetry-instrumentation-rails', '~> 0.32.0', require: false
gem 'opentelemetry-instrumentation-rails', '~> 0.33.0', require: false
gem 'opentelemetry-instrumentation-redis', '~> 0.25.3', require: false
gem 'opentelemetry-instrumentation-sidekiq', '~> 0.25.2', require: false
gem 'opentelemetry-sdk', '~> 1.4', require: false
Expand Down
43 changes: 21 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,17 @@ GEM
annotaterb (4.13.0)
ast (2.4.2)
attr_required (1.0.2)
awrence (1.2.1)
aws-eventstream (1.3.0)
aws-partitions (1.1008.0)
aws-sdk-core (3.213.0)
aws-partitions (1.1013.0)
aws-sdk-core (3.214.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.95.0)
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.171.0)
aws-sdk-s3 (1.174.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -200,7 +199,7 @@ GEM
activerecord (>= 4.2, < 9.0)
docile (1.4.1)
domain_name (0.6.20240107)
doorkeeper (5.7.1)
doorkeeper (5.8.0)
railties (>= 5)
dotenv (3.1.4)
drb (2.2.1)
Expand Down Expand Up @@ -346,10 +345,11 @@ GEM
json-ld-preloaded (3.3.1)
json-ld (~> 3.3)
rdf (~> 3.3)
json-schema (5.0.1)
json-schema (5.1.0)
addressable (~> 2.8)
jsonapi-renderer (0.2.2)
jwt (2.7.1)
jwt (2.9.3)
base64
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
Expand Down Expand Up @@ -411,7 +411,7 @@ GEM
minitest (5.25.1)
msgpack (1.7.5)
multi_json (1.15.0)
mutex_m (0.2.0)
mutex_m (0.3.0)
net-http (0.5.0)
uri
net-imap (0.5.1)
Expand All @@ -424,7 +424,7 @@ GEM
timeout
net-smtp (0.5.0)
net-protocol
nio4r (2.7.3)
nio4r (2.7.4)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -478,13 +478,13 @@ GEM
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-active_support (~> 0.1)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-action_pack (0.9.0)
opentelemetry-instrumentation-action_pack (0.10.0)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-rack (~> 0.21)
opentelemetry-instrumentation-action_view (0.7.2)
opentelemetry-instrumentation-action_view (0.7.3)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-active_support (~> 0.1)
opentelemetry-instrumentation-active_support (~> 0.6)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-active_job (0.7.8)
opentelemetry-api (~> 1.0)
Expand Down Expand Up @@ -527,10 +527,10 @@ GEM
opentelemetry-instrumentation-rack (0.25.0)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-rails (0.32.0)
opentelemetry-instrumentation-rails (0.33.0)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-action_mailer (~> 0.2.0)
opentelemetry-instrumentation-action_pack (~> 0.9.0)
opentelemetry-instrumentation-action_pack (~> 0.10.0)
opentelemetry-instrumentation-action_view (~> 0.7.0)
opentelemetry-instrumentation-active_job (~> 0.7.0)
opentelemetry-instrumentation-active_record (~> 0.8.0)
Expand Down Expand Up @@ -580,7 +580,7 @@ GEM
psych (5.2.0)
stringio
public_suffix (6.0.1)
puma (6.4.3)
puma (6.5.0)
nio4r (~> 2.0)
pundit (2.4.0)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -752,7 +752,7 @@ GEM
activerecord (>= 4.0.0)
railties (>= 4.0.0)
securerandom (0.3.2)
selenium-webdriver (4.26.0)
selenium-webdriver (4.27.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
Expand Down Expand Up @@ -844,9 +844,8 @@ GEM
public_suffix
warden (1.2.9)
rack (>= 2.0.9)
webauthn (3.1.0)
webauthn (3.2.2)
android_key_attestation (~> 0.3.0)
awrence (~> 1.1)
bindata (~> 2.4)
cbor (~> 0.5.9)
cose (~> 1.1)
Expand Down Expand Up @@ -966,7 +965,7 @@ DEPENDENCIES
opentelemetry-instrumentation-net_http (~> 0.22.4)
opentelemetry-instrumentation-pg (~> 0.29.0)
opentelemetry-instrumentation-rack (~> 0.25.0)
opentelemetry-instrumentation-rails (~> 0.32.0)
opentelemetry-instrumentation-rails (~> 0.33.0)
opentelemetry-instrumentation-redis (~> 0.25.3)
opentelemetry-instrumentation-sidekiq (~> 0.25.2)
opentelemetry-sdk (~> 1.4)
Expand Down Expand Up @@ -1031,7 +1030,7 @@ DEPENDENCIES
xorcist (~> 1.1)

RUBY VERSION
ruby 3.3.5p100
ruby 3.3.6p108

BUNDLED WITH
2.5.22
2.5.23
51 changes: 0 additions & 51 deletions app/controllers/antennas_controller.rb

This file was deleted.

13 changes: 2 additions & 11 deletions app/controllers/api/v1/lists/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@ def show
end

def create
ApplicationRecord.transaction do
list_accounts.each do |account|
@list.accounts << account
end
end

AddAccountsToListService.new.call(@list, Account.find(account_ids))
render_empty
end

def destroy
ListAccount.where(list: @list, account_id: account_ids).destroy_all
RemoveAccountsFromListService.new.call(@list, Account.where(id: account_ids))
render_empty
end

Expand All @@ -43,10 +38,6 @@ def load_accounts
end
end

def list_accounts
Account.find(account_ids)
end

def account_ids
Array(resource_params[:account_ids])
end
Expand Down
5 changes: 0 additions & 5 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class ApplicationController < ActionController::Base
helper_method :use_seamless_external_login?
helper_method :sso_account_settings
helper_method :limited_federation_mode?
helper_method :body_class_string
helper_method :skip_csrf_meta_tags?

rescue_from ActionController::ParameterMissing, Paperclip::AdapterRegistry::NoHandlerError, with: :bad_request
Expand Down Expand Up @@ -158,10 +157,6 @@ def current_theme
current_user.setting_theme
end

def body_class_string
@body_classes || ''
end

def respond_with_error(code)
respond_to do |format|
format.any { render "errors/#{code}", layout: 'error', status: code, formats: [:html] }
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/concerns/cache_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def render_with_cache(**options)
return render(options)
end

key = options.delete(:key) || [[params[:controller], params[:action]].join('/'), options[:json].respond_to?(:cache_key) ? options[:json].cache_key : nil, options[:fields].nil? ? nil : options[:fields].join(',')].compact.join(':')
key = options.delete(:key) || [[params[:controller], params[:action]].join('/'), options[:json].respond_to?(:cache_key) ? options[:json].cache_key : nil, options[:fields]&.join(',')].compact.join(':')
expires_in = options.delete(:expires_in) || 3.minutes
body = Rails.cache.read(key, raw: true)

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def opengraph(property, content)
end

def body_classes
output = body_class_string.split
output = []
output << content_for(:body_classes)
output << "theme-#{current_theme.parameterize}"
output << 'system-font' if current_account&.user&.setting_system_font_ui
Expand Down
Loading
Loading