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 20241021 #896

Merged
merged 50 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6d99f84
Fix: Use consistent REDIS_USER environment variable in streaming (#32…
ThisIsMissEm Oct 15, 2024
51345e5
Fix back arrow pointing to the incorrect direction in RTL languages (…
renchap Oct 15, 2024
b5e8bc4
Update dependency strong_migrations to v2.0.1 (#32503)
renovate[bot] Oct 15, 2024
5ac6415
Update dependency pghero to v3.6.1 (#32502)
renovate[bot] Oct 15, 2024
7d89cea
New Crowdin Translations (automated) (#32339)
github-actions[bot] Oct 15, 2024
f2378ac
add SWIFT object storage uri to CSP media hosts (#32439)
kenkiku1021 Oct 15, 2024
5e4cc1a
Fix follow recommendation carrousel scrolling on RTL layouts, for rea…
ClearlyClaire Oct 15, 2024
5afdb81
Fix reblog icons on account media view (#32506)
tribela Oct 15, 2024
a1eb1a9
Update issue templates ot use the new GH Types, and add Troubleshooti…
renchap Oct 15, 2024
d74c2c5
Extend spec coverage for `Poll` model (#32500)
mjankowski Oct 15, 2024
0cc21f1
Reduce factory creation (132 -> 40) in lib/vacuum/* specs (#32498)
mjankowski Oct 15, 2024
a11b599
Expand coverage for `Scheduler::IpCleanupScheduler` worker (#32499)
mjankowski Oct 15, 2024
b1c1096
Reduce factory creation (48 -> 8) in `AP::Note` serializer spec (#32492)
mjankowski Oct 15, 2024
d1d2278
Reduce factory creation (73 -> 64) in `PublicFeed` spec (#32491)
mjankowski Oct 15, 2024
92bb197
Use `context` for repeated scenarios in `AccountStatusCleanupPolicy` …
mjankowski Oct 15, 2024
6a39212
Reduce factories (36 > 12) in `AccountReachFinder` spec (#32482)
mjankowski Oct 15, 2024
227d468
Translate to regional language variant (e.g. pt-BR) (#32428)
c960657 Oct 15, 2024
bfb41e6
Expand coverage for `Block` model (#32480)
mjankowski Oct 15, 2024
c19397b
Update formatjs monorepo (#32304)
renovate[bot] Oct 15, 2024
c772b41
Update dependency react-textarea-autosize to v8.5.4 (#32401)
renovate[bot] Oct 15, 2024
27f05e9
Expand coverage for `User#token_for_app` (#32434)
mjankowski Oct 15, 2024
e9b2785
Reduce factory creation (14 -> 8) in `ActivityPub::Activity::Block` s…
mjankowski Oct 15, 2024
0e58dc9
Use array compact style for classes in `nothing_here` helper (#32403)
mjankowski Oct 15, 2024
92c8860
Update babel monorepo to v7.25.8 (#32391)
renovate[bot] Oct 15, 2024
b742ce9
Reduce factory creation (17 -> 0) in `PlainTextFormatter` spec (#32487)
mjankowski Oct 15, 2024
b785979
Fix missing content warning text in rss formatter (#32406)
mjankowski Oct 15, 2024
52bc331
Add mention of encryption secrets to production sample (#32512)
mjankowski Oct 15, 2024
28131b4
Convert status embed controller to request spec (#32448)
mjankowski Oct 15, 2024
9e8f099
Improve `app/policies` coverage (#32426)
mjankowski Oct 15, 2024
c40cd79
Convert `admin/invites` controller specs to system specs (#32450)
mjankowski Oct 15, 2024
7a7a7cc
Add back a 6 hours mute duration option (#32522)
renchap Oct 16, 2024
25f8003
Fix only the first paragraph being displayed in some notifications (…
ClearlyClaire Oct 16, 2024
5900c8c
Run migration tests against postgres 16 and 17 as well (#32416)
jippi Oct 16, 2024
f8ba212
Explicitly install ImageMagick in CI (except for libvips tests) (#32534)
ClearlyClaire Oct 16, 2024
bfe3d49
Add `inline_jobs` to admin/reset spec (#32517)
mjankowski Oct 16, 2024
acc1973
New Crowdin Translations (automated) (#32533)
github-actions[bot] Oct 16, 2024
6c87c76
Add ability to group follow notifications in WebUI (#32520)
renchap Oct 16, 2024
6ff1954
Change Active Record Encryption variable check to check for emptiness…
ClearlyClaire Oct 16, 2024
bc2e642
Fix: Reword 'pick one' to 'single choice' for polls (#32397)
ThisIsMissEm Oct 16, 2024
a0c7b31
Update rails to version 7.1.4.1 (#32542)
mjankowski Oct 16, 2024
5103abc
Fix trailing slash newline in changelog (#32545)
mjankowski Oct 17, 2024
b23ff05
Fix missing or incorrect cache-control headers for Streaming server (…
ThisIsMissEm Oct 17, 2024
009f2eb
New Crowdin Translations (automated) (#32553)
github-actions[bot] Oct 17, 2024
8b56509
Add more explicit explanations about author attribution and `fedivers…
ClearlyClaire Oct 17, 2024
bd6c96f
Fix broken i18n in text welcome mailer tags area (#32571)
mjankowski Oct 18, 2024
0f37b7d
Fix column-settings spacing in local timeline in advanced view (#32567)
lindwurm Oct 18, 2024
8eae0d0
New Crowdin Translations (automated) (#32573)
github-actions[bot] Oct 18, 2024
2391937
Fix follow recommendation moderation page default language when using…
ClearlyClaire Oct 18, 2024
1fc165d
Remove ability to get embed code for remote posts (#32578)
ClearlyClaire Oct 18, 2024
ab58aed
Merge remote-tracking branch 'parent/main' into upstream-20241021
kmycode Oct 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .env.production.sample
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ ES_PASS=password
SECRET_KEY_BASE=
OTP_SECRET=

# Encryption secrets
# ------------------
# Must be available (and set to same values) for all server processes
# These are private/secret values, do not share outside hosting environment
# Use `bin/rails db:encryption:init` to generate fresh secrets
# Do not change these secrets once in use, as this would cause data loss and other issues
# ------------------
# ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
# ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
# ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=

# Web Push
# --------
# Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
Expand Down
74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/3.troubleshooting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Deployment troubleshooting
description: |
You are a server administrator and you are encountering a technical issue during installation, upgrade or operations of Mastodon.
labels: ['status/to triage']
type: 'Troubleshooting'
body:
- type: markdown
attributes:
value: |
Make sure that you are submitting a new bug that was not previously reported or already fixed.

Please use a concise and distinct title for the issue.
- type: textarea
attributes:
label: Steps to reproduce the problem
description: What were you trying to do?
value: |
1.
2.
3.
...
validations:
required: true
- type: input
attributes:
label: Expected behaviour
description: What should have happened?
validations:
required: true
- type: input
attributes:
label: Actual behaviour
description: What happened?
validations:
required: true
- type: textarea
attributes:
label: Detailed description
validations:
required: false
- type: input
attributes:
label: Mastodon instance
description: The address of the Mastodon instance where you experienced the issue
placeholder: mastodon.social
validations:
required: true
- type: input
attributes:
label: Mastodon version
description: |
This is displayed at the bottom of the About page, eg. `v4.4.0-alpha.1`
placeholder: v4.3.0
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
Details about your environment, like how Mastodon is deployed, if containers are used, version numbers, etc.
value: |
Please at least include those informations:
- Operating system: (eg. Ubuntu 22.04)
- Ruby version: (from `ruby --version`, eg. v3.3.5)
- Node.js version: (from `node --version`, eg. v20.18.0)
validations:
required: false
- type: textarea
attributes:
label: Technical details
description: |
Any additional technical details you may have, like logs or error traces
validations:
required: false
2 changes: 2 additions & 0 deletions .github/workflows/test-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
postgres:
- 14-alpine
- 15-alpine
- 16-alpine
- 17-alpine

services:
postgres:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg libpam-dev
additional-system-dependencies: ffmpeg imagemagick libpam-dev

- name: Load database schema
run: |
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg libpam-dev libyaml-dev
additional-system-dependencies: ffmpeg libpam-dev

- name: Load database schema
run: './bin/rails db:create db:schema:load db:seed'
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg
additional-system-dependencies: ffmpeg imagemagick

- name: Set up Javascript environment
uses: ./.github/actions/setup-javascript
Expand Down Expand Up @@ -450,7 +450,7 @@ jobs:
uses: ./.github/actions/setup-ruby
with:
ruby-version: ${{ matrix.ruby-version}}
additional-system-dependencies: ffmpeg
additional-system-dependencies: ffmpeg imagemagick

- name: Set up Javascript environment
uses: ./.github/actions/setup-javascript
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The following changelog entries focus on changes visible to users, administrator
```html
<meta name="fediverse:creator" content="username@domain" />
```
On the API side, this is represented by a new `authors` attribute to the `PreviewCard` entity: https://docs.joinmastodon.org/entities/PreviewCard/#authors\
On the API side, this is represented by a new `authors` attribute to the `PreviewCard` entity: https://docs.joinmastodon.org/entities/PreviewCard/#authors \
Users can allow arbitrary domains to use `fediverse:creator` to credit them by visiting `/settings/verification`.\
This is federated as a new `attributionDomains` property in the `http://joinmastodon.org/ns` namespace, containing an array of domain names: https://docs.joinmastodon.org/spec/activitypub/#properties-used-1
- **Add in-app notifications for moderation actions and warnings** (#30065, #30082, and #30081 by @ClearlyClaire)\
Expand Down
110 changes: 55 additions & 55 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,51 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (7.1.4)
actionpack (= 7.1.4)
activesupport (= 7.1.4)
actioncable (7.1.4.1)
actionpack (= 7.1.4.1)
activesupport (= 7.1.4.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.4)
actionpack (= 7.1.4)
activejob (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
actionmailbox (7.1.4.1)
actionpack (= 7.1.4.1)
activejob (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.4)
actionpack (= 7.1.4)
actionview (= 7.1.4)
activejob (= 7.1.4)
activesupport (= 7.1.4)
actionmailer (7.1.4.1)
actionpack (= 7.1.4.1)
actionview (= 7.1.4.1)
activejob (= 7.1.4.1)
activesupport (= 7.1.4.1)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.2)
actionpack (7.1.4)
actionview (= 7.1.4)
activesupport (= 7.1.4)
actionpack (7.1.4.1)
actionview (= 7.1.4.1)
activesupport (= 7.1.4.1)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.4)
actionpack (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
actiontext (7.1.4.1)
actionpack (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.4)
activesupport (= 7.1.4)
actionview (7.1.4.1)
activesupport (= 7.1.4.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
Expand All @@ -64,22 +64,22 @@ GEM
activemodel (>= 4.1)
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
activejob (7.1.4)
activesupport (= 7.1.4)
activejob (7.1.4.1)
activesupport (= 7.1.4.1)
globalid (>= 0.3.6)
activemodel (7.1.4)
activesupport (= 7.1.4)
activerecord (7.1.4)
activemodel (= 7.1.4)
activesupport (= 7.1.4)
activemodel (7.1.4.1)
activesupport (= 7.1.4.1)
activerecord (7.1.4.1)
activemodel (= 7.1.4.1)
activesupport (= 7.1.4.1)
timeout (>= 0.4.0)
activestorage (7.1.4)
actionpack (= 7.1.4)
activejob (= 7.1.4)
activerecord (= 7.1.4)
activesupport (= 7.1.4)
activestorage (7.1.4.1)
actionpack (= 7.1.4.1)
activejob (= 7.1.4.1)
activerecord (= 7.1.4.1)
activesupport (= 7.1.4.1)
marcel (~> 1.0)
activesupport (7.1.4)
activesupport (7.1.4.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
Expand Down Expand Up @@ -591,7 +591,7 @@ GEM
pastel (0.8.0)
tty-color (~> 0.5)
pg (1.5.8)
pghero (3.6.0)
pghero (3.6.1)
activerecord (>= 6.1)
premailer (1.27.0)
addressable
Expand Down Expand Up @@ -638,20 +638,20 @@ GEM
rackup (1.0.0)
rack (< 3)
webrick
rails (7.1.4)
actioncable (= 7.1.4)
actionmailbox (= 7.1.4)
actionmailer (= 7.1.4)
actionpack (= 7.1.4)
actiontext (= 7.1.4)
actionview (= 7.1.4)
activejob (= 7.1.4)
activemodel (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
rails (7.1.4.1)
actioncable (= 7.1.4.1)
actionmailbox (= 7.1.4.1)
actionmailer (= 7.1.4.1)
actionpack (= 7.1.4.1)
actiontext (= 7.1.4.1)
actionview (= 7.1.4.1)
activejob (= 7.1.4.1)
activemodel (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
bundler (>= 1.15.0)
railties (= 7.1.4)
railties (= 7.1.4.1)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
Expand All @@ -666,9 +666,9 @@ GEM
rails-i18n (7.0.9)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.1.4)
actionpack (= 7.1.4)
activesupport (= 7.1.4)
railties (7.1.4.1)
actionpack (= 7.1.4.1)
activesupport (= 7.1.4.1)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
Expand Down Expand Up @@ -822,7 +822,7 @@ GEM
stoplight (4.1.0)
redlock (~> 1.0)
stringio (3.1.1)
strong_migrations (2.0.0)
strong_migrations (2.0.1)
activerecord (>= 6.1)
swd (1.3.0)
activesupport (>= 3)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v1/statuses/translations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def create
private

def set_translation
@translation = TranslateStatusService.new.call(@status, content_locale)
@translation = TranslateStatusService.new.call(@status, I18n.locale.to_s)
end
end
5 changes: 5 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ def copyable_input(options = {})
tag.input(type: :text, maxlength: 999, spellcheck: false, readonly: true, **options)
end

def recent_tag_usage(tag)
people = tag.history.aggregate(2.days.ago.to_date..Time.zone.today).accounts
I18n.t 'user_mailer.welcome.hashtags_recent_count', people: number_with_delimiter(people), count: people
end

private

def storage_host_var
Expand Down
Loading
Loading