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

Merge upstream changes up to 3554c527954441fd924586a49c7d99a89101ac7e #2339

Merged
merged 101 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
6edd404
Cleanup unused portions of statuses/status partial (#26045)
mjankowski Jul 19, 2023
4c18928
Wrong count in response when removing favourite/reblog (#24365)
c960657 Jul 19, 2023
b848ba3
Paperclip: add support for Azure blob storage (#23607)
mistydemeo Jul 19, 2023
586b1c9
Fix a missing redirection on getting-started in multi column mode (#2…
Signez Jul 20, 2023
df05ece
Fix haml-lint Rubocop `Style/NumericPredicate` cop (#26040)
mjankowski Jul 20, 2023
cabe1ea
Change casing for 'Server Settings' string (#26011)
gunchleoc Jul 20, 2023
285a3df
Move localized subject mailer shared example to separate file (#25889)
mjankowski Jul 20, 2023
a5842df
Fix haml-lint Rubocop `Lint/UnusedBlockArguments` cop (#26039)
mjankowski Jul 20, 2023
1cceb62
Fix `Lint/Void` cop (#25922)
mjankowski Jul 20, 2023
1e3b192
Add stricter protocol fields validation for accounts (#25937)
ClearlyClaire Jul 20, 2023
4ea041f
Improve the bug report templates (#25621)
renchap Jul 21, 2023
42698b4
Fix the crossorigin attribute (#26096)
renchap Jul 21, 2023
5cbc402
Fix replica being used even if not explicitly defined (#26074)
ClearlyClaire Jul 21, 2023
144a406
Clean up unused application records (#24871)
ClearlyClaire Jul 21, 2023
e4ea80d
Change thread view to scroll to the selected post rather than the pos…
ClearlyClaire Jul 21, 2023
934c7b3
Change default KeyGenerator digest to SHA1 to fix cookies in rolling …
ClearlyClaire Jul 21, 2023
59478a1
change focus ui for keyboard only input (#25935)
Jul 21, 2023
14fad60
Use username as display name for suspended users or users with blank …
ClearlyClaire Jul 21, 2023
e5f1000
Fix CSP headers being unintendedly wide (#26105)
ClearlyClaire Jul 21, 2023
5b45796
Fix linting issue (#26106)
ClearlyClaire Jul 21, 2023
217ef7f
Replace 'favourite' by 'favorite' for American English (#26009)
gunchleoc Jul 21, 2023
296ec6c
Override default Action Mailer `preview_path` (#26110)
c960657 Jul 21, 2023
1b4cf0e
Favourits -> Favorites (#26109)
nabijaczleweli Jul 21, 2023
f2c6833
Bump version to v4.1.5 (#26108)
ClearlyClaire Jul 21, 2023
0078e7e
Fix incorrect connect timeout in outgoing requests (#26116)
ClearlyClaire Jul 22, 2023
db310f3
Fix missing translation strings for importing lists (#26120)
mgmn Jul 23, 2023
3abe0fc
Use valid email address for first account (#26114)
c960657 Jul 23, 2023
67016dd
Update haml-lint 0.49.1 (#26118)
nschonni Jul 23, 2023
cfd50f3
Fix focus and hover styles in web UI (#26125)
Gargron Jul 23, 2023
5e8cbb5
Remove back button from bookmarks, favourites and lists screens in we…
Gargron Jul 23, 2023
4d01d1a
Remove 16:9 cropping from web UI (#26132)
Gargron Jul 24, 2023
6b2952d
Change design of link previews in web UI (#26136)
Gargron Jul 24, 2023
80809ef
change poll form element colors to fit with the rest of the ui (#26139)
Jul 24, 2023
76fce34
Add `lang` attribute to trending links (#26111)
c960657 Jul 24, 2023
d31b31a
Update dependency rdf-normalize to v0.6.1 (#26130)
renovate[bot] Jul 24, 2023
e56dc93
Update dependency brakeman to v6.0.1 (#26141)
renovate[bot] Jul 24, 2023
3cbc69f
Update dependency postcss to v8.4.27 (#26144)
renovate[bot] Jul 24, 2023
b629e21
Fix unexpected redirection to /explore after sign-in (#26143)
ClearlyClaire Jul 24, 2023
173a268
Update dependency aws-sdk-s3 to v1.131.0 (#26145)
renovate[bot] Jul 24, 2023
394d1f1
Add report.updated webhook (#24211)
VyrCossont Jul 24, 2023
2dfa8f7
Fix LinkCrawlWorker crashing on `null` `created_at` (#26151)
ClearlyClaire Jul 24, 2023
9a567ec
Fix UI Overlap with the loupe icon in the Explore Tab (#26113)
gol-cha Jul 24, 2023
d1a9f60
Fix missing border on error screen in light theme in web UI (#26152)
Gargron Jul 24, 2023
714a206
Fix missing action label on sensitive videos and embeds in web UI (#2…
Gargron Jul 24, 2023
4299208
Fix `lang` for UI texts in link preview (#26149)
c960657 Jul 24, 2023
f826a95
Add published date and author to news on the explore screen in web UI…
Gargron Jul 24, 2023
50ff3d3
Coverage for `Auth::OmniauthCallbacks` controller (#26147)
mjankowski Jul 25, 2023
49d2e89
fix poll input active style (#26162)
Jul 25, 2023
7bd8ef3
Add `published_at` attribute to preview cards (#26153)
Gargron Jul 25, 2023
edc104c
Update dependency sass to v1.64.1 (#26146)
renovate[bot] Jul 25, 2023
ce1f35d
Revert poll colors to green outside of compose form (#26164)
ClearlyClaire Jul 25, 2023
6781dc6
Preserve translation on status re-import (#26168)
c960657 Jul 25, 2023
a4b69be
Fix missing GIF badge in account gallery (#26166)
c960657 Jul 26, 2023
7d62e3b
Reformat large text arg in `FetchLinkCardService` spec (#26183)
mjankowski Jul 26, 2023
bada7a6
Ignore long line in regex initializer (#26182)
mjankowski Jul 26, 2023
2d9808f
Reformat large key values in service specs (#26181)
mjankowski Jul 26, 2023
8ac5a93
Reformat large hash in `ContextHelper` module (#26180)
mjankowski Jul 26, 2023
a2dca50
Use heredoc SQL blocks in `AddFromAccountIdToNotifications` migration…
mjankowski Jul 26, 2023
84d520e
Extract private methods in `StatusCacheHydrator` (#26177)
mjankowski Jul 26, 2023
b9adea9
New Crowdin Translations (automated) (#26072)
github-actions[bot] Jul 26, 2023
b06763d
Remove the `sr` locale override .rb files (#25927)
mjankowski Jul 26, 2023
f48d345
Use correct naming on controller concern specs (#26197)
mjankowski Jul 27, 2023
812a84f
Migrate to request specs in `/api/v2/filters` (#25721)
danielmbrasil Jul 27, 2023
1814990
Fix wrong filters sometimes applying in streaming (#26159)
ClearlyClaire Jul 27, 2023
ddaf200
Refactor streaming's filtering logic & improve documentation (#26213)
ThisIsMissEm Jul 27, 2023
1e4ccc6
Add role badges to the WebUI (#25649)
ClearlyClaire Jul 27, 2023
b4e739f
Change interaction modal in web UI (#26075)
ClearlyClaire Jul 27, 2023
6c3c5bb
Fix crash when processing Flag activity with no status (#26189)
ClearlyClaire Jul 27, 2023
12a6cf5
Storage: add :azure to remaining callers (#26080)
mistydemeo Jul 27, 2023
317cd26
Remove queued_at value from pubsub payloads (#26173)
ThisIsMissEm Jul 27, 2023
bbea052
Fix emoji picker button scrolling with textarea content in single-col…
ClearlyClaire Jul 27, 2023
a4ec187
Change the wording of the dismissable explore prompt (#25917)
ClearlyClaire Jul 27, 2023
255606d
Update dependency haml_lint to v0.49.2 (#26222)
renovate[bot] Jul 28, 2023
81cdc0f
Fix: Streaming server memory leak in HTTP EventSource cleanup (#26228)
ThisIsMissEm Jul 28, 2023
446821a
Swap debug statements in streaming server (#26231)
ClearlyClaire Jul 28, 2023
3554c52
Fix missing return values in streaming (#26233)
renchap Jul 28, 2023
993d0a9
Merge commit '1e3b19230a48174acf524cf1a9f5a498e220ea7d' into glitch-s…
ClearlyClaire Jul 30, 2023
d3d6147
[Glitch] Wrong count in response when removing favourite/reblog
c960657 Jul 19, 2023
f05effe
[Glitch] Fix a missing redirection on getting-started in multi column…
Signez Jul 20, 2023
7635c67
Merge commit '144a406d332b034caa812ade2629df03ed4898d7' into glitch-s…
ClearlyClaire Jul 30, 2023
42f36aa
Merge commit '5b457961fc1189a71599dc6c06b3f159b195a455' into glitch-s…
ClearlyClaire Jul 30, 2023
5914dfd
[Glitch] Change thread view to scroll to the selected post rather tha…
ClearlyClaire Jul 21, 2023
b2515fe
Merge commit 'cfd50f30bb5dda4dd90e1ad01f3e62c99135c36f' into glitch-s…
ClearlyClaire Jul 30, 2023
09ebf7e
[Glitch] Replace 'favourite' by 'favorite' for American English
gunchleoc Jul 21, 2023
bd349cb
Merge commit 'ce1f35d7e213327549b960bb64f63c67a141ea40' into glitch-s…
ClearlyClaire Jul 30, 2023
f3bd96c
[Glitch] change poll form element colors to fit with the rest of the ui
Jul 24, 2023
1d4df97
[Glitch] Add `lang` attribute to trending links
c960657 Jul 24, 2023
168fadb
[Glitch] Fix UI Overlap with the loupe icon in the Explore Tab
gol-cha Jul 24, 2023
4b26e44
[Glitch] Fix missing border on error screen in light theme in web UI
Gargron Jul 24, 2023
e48a6a5
[Glitch] Fix missing action label on sensitive videos and embeds in w…
Gargron Jul 24, 2023
e92dde0
[Glitch] fix poll input active style
Jul 25, 2023
887a17b
[Glitch] Revert poll colors to green outside of compose form
ClearlyClaire Jul 25, 2023
450f75b
[Glitch] Add published date and author to news on the explore screen …
Gargron Jul 24, 2023
454d856
Merge commit '1814990a3d117555153321216fa593e4d9e84de3' into glitch-s…
ClearlyClaire Jul 30, 2023
88ba538
[Glitch] Preserve translation on status re-import
c960657 Jul 25, 2023
879c7ed
[Glitch] Fix missing GIF badge in account gallery
c960657 Jul 26, 2023
92fa9d3
Merge commit '3554c527954441fd924586a49c7d99a89101ac7e' into glitch-s…
ClearlyClaire Jul 30, 2023
a1f1424
Fix interaction modal being broken because of glitch-soc's theming sy…
ClearlyClaire Jul 30, 2023
aa1789f
[Glitch] Change interaction modal in web UI
ClearlyClaire Jul 27, 2023
403a5c0
[Glitch] Change the wording of the dismissable explore prompt
ClearlyClaire Jul 27, 2023
73a3228
Fix CSP tests in glitch-soc
ClearlyClaire Jul 30, 2023
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
  •  
  •  
  •  
56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/1.web_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Bug Report (Web Interface)
description: If you are using Mastodon's web interface and something is not working as expected
labels: [bug, 'status/to triage', 'area/web interface']
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.1.2+nightly-20230627`
placeholder: v4.1.2
validations:
required: true
- type: input
attributes:
label: Browser name and version
description: |
What browser are you using when getting this bug? Please specify the version as well.
placeholder: Firefox 105.0.3
validations:
required: true
- type: input
attributes:
label: Operating system
description: |
What OS are you running? Please specify the version as well.
placeholder: macOS 13.4.1
validations:
required: true
- type: textarea
attributes:
label: Technical details
description: |
Any additional technical details you may have. This can include the full error log, inspector's output…
validations:
required: false
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/2.server_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Bug Report (server / API)
description: |
If something is not working as expected, but is not from using the web interface.
labels: [bug, 'status/to triage']
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: false
- type: input
attributes:
label: Mastodon version
description: |
This is displayed at the bottom of the About page, eg. `v4.1.2+nightly-20230627`
placeholder: v4.1.2
validations:
required: false
- type: textarea
attributes:
label: Technical details
description: |
Any additional technical details you may have, like logs or error traces
value: |
If this is happening on your own Mastodon server, please fill out those:
- Ruby version: (from `ruby --version`, eg. v3.1.2)
- Node.js version: (from `node --version`, eg. v18.16.0)
validations:
required: false
4 changes: 4 additions & 0 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ jobs:
PAM_ENABLED: true
PAM_DEFAULT_SERVICE: pam_test
PAM_CONTROLLED_SERVICE: pam_test_controlled
OIDC_ENABLED: true
OIDC_SCOPE: read
SAML_ENABLED: true
CAS_ENABLED: true
BUNDLE_WITH: 'pam_authentication test'
CI_JOBS: ${{ matrix.ci_job }}/4

Expand Down
9 changes: 4 additions & 5 deletions .haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2023-07-18 11:56:05 -0400 using Haml-Lint version 0.48.0.
# on 2023-07-20 09:47:50 -0400 using Haml-Lint version 0.48.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.

linters:
# Offense count: 959
# Offense count: 951
LineLength:
enabled: false

# Offense count: 22
UnnecessaryStringOutput:
enabled: false

# Offense count: 63
# Offense count: 57
RuboCop:
enabled: false

Expand All @@ -26,7 +26,7 @@ linters:
- 'app/views/admin/reports/show.html.haml'
- 'app/views/disputes/strikes/show.html.haml'

# Offense count: 40
# Offense count: 32
InstanceVariables:
exclude:
- 'app/views/admin/reports/_actions.html.haml'
Expand All @@ -38,7 +38,6 @@ linters:
- 'app/views/invites/_form.html.haml'
- 'app/views/relationships/_account.html.haml'
- 'app/views/shared/_og.html.haml'
- 'app/views/statuses/_status.html.haml'

# Offense count: 3
IdNames:
Expand Down
6 changes: 0 additions & 6 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@ RSpec/FilePath:
Exclude:
- 'spec/config/initializers/rack_attack_spec.rb' # namespaces usually have separate folder
- 'spec/lib/sanitize_config_spec.rb' # namespaces usually have separate folder
- 'spec/controllers/concerns/account_controller_concern_spec.rb' # Concerns describe ApplicationController and don't fit naming
- 'spec/controllers/concerns/export_controller_concern_spec.rb'
- 'spec/controllers/concerns/localized_spec.rb'
- 'spec/controllers/concerns/rate_limit_headers_spec.rb'
- 'spec/controllers/concerns/signature_verification_spec.rb'
- 'spec/controllers/concerns/user_tracking_concern_spec.rb'

# Reason:
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnamedsubject
Expand Down
17 changes: 1 addition & 16 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ Lint/UselessAssignment:
- 'spec/services/resolve_url_service_spec.rb'
- 'spec/views/statuses/show.html.haml_spec.rb'

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
- 'spec/services/resolve_account_service_spec.rb'

# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 150
Expand All @@ -152,13 +146,6 @@ Metrics/CyclomaticComplexity:
Metrics/PerceivedComplexity:
Max: 27

# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Exclude:
- 'config/locales/sr-Latn.rb'

# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Expand Down Expand Up @@ -287,7 +274,6 @@ RSpec/LetSetup:
- 'spec/controllers/api/v2/admin/accounts_controller_spec.rb'
- 'spec/controllers/api/v2/filters/keywords_controller_spec.rb'
- 'spec/controllers/api/v2/filters/statuses_controller_spec.rb'
- 'spec/controllers/api/v2/filters_controller_spec.rb'
- 'spec/controllers/auth/confirmations_controller_spec.rb'
- 'spec/controllers/auth/passwords_controller_spec.rb'
- 'spec/controllers/auth/sessions_controller_spec.rb'
Expand All @@ -297,6 +283,7 @@ RSpec/LetSetup:
- 'spec/controllers/oauth/tokens_controller_spec.rb'
- 'spec/controllers/settings/imports_controller_spec.rb'
- 'spec/lib/activitypub/activity/delete_spec.rb'
- 'spec/lib/vacuum/applications_vacuum_spec.rb'
- 'spec/lib/vacuum/preview_cards_vacuum_spec.rb'
- 'spec/models/account_spec.rb'
- 'spec/models/account_statuses_cleanup_policy_spec.rb'
Expand Down Expand Up @@ -841,8 +828,6 @@ Style/RedundantConstantBase:
Exclude:
- 'config/environments/production.rb'
- 'config/initializers/sidekiq.rb'
- 'config/locales/sr-Latn.rb'
- 'config/locales/sr.rb'

# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SafeForConstants.
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

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

## [4.1.5] - 2023-07-21

### Added

- Add check preventing Sidekiq workers from running with Makara configured ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/25850))

### Changed

- Change request timeout handling to use a longer deadline ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/26055))

### Fixed

- Fix moderation interface for remote instances with a .zip TLD ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/25885))
- Fix remote accounts being possibly persisted to database with incomplete protocol values ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/25886))
- Fix trending publishers table not rendering correctly on narrow screens ([vmstan](https://github.com/mastodon/mastodon/pull/25945))

### Security

- Fix CSP headers being unintentionally wide ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/26105))

## [4.1.4] - 2023-07-07

### Fixed
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ gem 'aws-sdk-s3', '~> 1.123', require: false
gem 'fog-core', '<= 2.4.0'
gem 'fog-openstack', '~> 0.3', require: false
gem 'kt-paperclip', '~> 7.2'
gem 'md-paperclip-azure', '~> 2.2', require: false
gem 'blurhash', '~> 0.1'

gem 'active_model_serializers', '~> 0.10'
Expand Down
Loading
Loading