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 5ef26d8fd50081c642b858a82bf0c5431b1c7e83 #2444

Merged
merged 73 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7d2cd71
Add variable delay before link verification of remote account links (…
ClearlyClaire Oct 11, 2023
66becf9
Fix haml-lint `InstanceVariables` rule for admin/reports/actions (#27…
mjankowski Oct 11, 2023
0111e48
Update dependency sidekiq to v6.5.12 (#27358)
renovate[bot] Oct 11, 2023
f9abe70
Fix haml-lint `InstanceVariables` rule for auth/registrations/status …
mjankowski Oct 11, 2023
1afb7f4
Update dependency lograge to v0.14.0 (#27363)
renovate[bot] Oct 11, 2023
608cd66
Update README requirements from node 14 to node 16 (#27369)
znarf Oct 11, 2023
d0a3331
Update dependency rubocop to v1.57.0 (#27371)
renovate[bot] Oct 11, 2023
f1ae72b
New Crowdin Translations (automated) (#27364)
github-actions[bot] Oct 11, 2023
d7a8f6b
Fix haml-lint `InstanceVariables` rule for relationships/account (#27…
mjankowski Oct 11, 2023
85b36fb
Update dependency devise to v4.9.3 (#27373)
renovate[bot] Oct 12, 2023
d4c2dca
Fix haml-lint `InstanceVariables` rule for auth/sessions/two_factor/o…
mjankowski Oct 12, 2023
c348b90
New Crowdin Translations (automated) (#27376)
github-actions[bot] Oct 12, 2023
c86ad45
Change PWA start URL from `/home` to `/` (#27377)
ClearlyClaire Oct 12, 2023
133f218
Add system specs for admin area `batch` actions (#25027)
mjankowski Oct 13, 2023
6a9aab3
Update dependency devise-two-factor to v4.1.1 (#27382)
renovate[bot] Oct 13, 2023
773d25e
New Crowdin Translations (automated) (#27388)
github-actions[bot] Oct 13, 2023
45bdd60
Fix when unfollow a tag, my post also disappears from the home timeli…
kmycode Oct 13, 2023
5c287c4
Update dependency rubocop to v1.57.1 (#27389)
renovate[bot] Oct 13, 2023
77098c6
Delete .github/FUNDING.yml (#27390)
renchap Oct 13, 2023
4230d1e
Migrate to request specs in `/api/v1/timelines/tag/:hashtag` (#25797)
danielmbrasil Oct 13, 2023
7664e3b
Migrate to request specs in `/api/v1/statuses/:status_id/source` (#25…
danielmbrasil Oct 13, 2023
ecdb31d
Migrate to request specs in `/api/v1/favourites` (#25518)
danielmbrasil Oct 13, 2023
fd9dea2
DB speedup in `API::` controller/request specs (#25516)
mjankowski Oct 13, 2023
bc6cd27
Migrate to request specs in `/api/v1/followed_tags` (#25472)
danielmbrasil Oct 13, 2023
abf0e1f
Move `SignedReqestHelpers` rspec config to separate file (#25453)
mjankowski Oct 13, 2023
058f73a
Add request specs for `/api/v1/reports` (#25475)
danielmbrasil Oct 13, 2023
cad8cc9
Speed-up on `MoveWorker` spec (#25528)
mjankowski Oct 13, 2023
71cfdd7
Fix duplicate tests (#27395)
ClearlyClaire Oct 13, 2023
1b195ce
Speed-up on `Rack::Attack` spec (#25542)
mjankowski Oct 13, 2023
82beeb2
Migrate to request specs in `/api/v1/admin/trends/links` (#25739)
danielmbrasil Oct 13, 2023
e0da64b
Fix empty ENV variables not using default nil value (#27400)
renchap Oct 13, 2023
f0ef87b
Update dependency i18n-tasks to v1.0.13 (#27403)
renovate[bot] Oct 16, 2023
a00fc83
Update dependency bufferutil to v4.0.8 (#27412)
renovate[bot] Oct 16, 2023
13456ef
New Crowdin Translations (automated) (#27410)
github-actions[bot] Oct 16, 2023
23f8e93
Fixes #23135 - Allow cross origin request for /nodeinfo/2.0 API (#27413)
palant Oct 16, 2023
299aa71
Fix handling of `inLanguage` attribute in preview card processing (#2…
ClearlyClaire Oct 16, 2023
00e92b4
Add coverage for `CLI::Statuses` command (#25321)
mjankowski Oct 16, 2023
f8afa0f
Remove unused stub json ld context (#25454)
mjankowski Oct 16, 2023
f5bc1f2
Add coverage for `ExistingUsernameValidator` (#25592)
mjankowski Oct 16, 2023
d9caa6e
Migrate to request specs in `/api/v1/admin/accounts` (#25563)
danielmbrasil Oct 16, 2023
8e61165
Migrate to request specs in `/api/v1/blocks` (#25517)
danielmbrasil Oct 16, 2023
cafdaec
Migrate to request specs in `/api/v1/lists/:id/accounts` (#25468)
danielmbrasil Oct 16, 2023
c91c017
Extract `card` partial from `disputes/strikes/show` view (#27426)
mjankowski Oct 16, 2023
08a376c
Fix `Style/CombinableLoops` cop (#27429)
mjankowski Oct 16, 2023
e0ed0f8
Migrate to request specs in `/api/v1/notifications` (#25553)
danielmbrasil Oct 16, 2023
708299b
Misc coverage improvements for `Admin::` and `Settings::` controllers…
mjankowski Oct 16, 2023
893b2f3
Extract shared example for cacheable response in specs (#25388)
mjankowski Oct 16, 2023
8d0f12f
Extract partials from `admin/accounts/show` view (#27428)
mjankowski Oct 16, 2023
33b073f
Extract partials from `admin/reports/show` view (#27427)
mjankowski Oct 16, 2023
fc9ab61
Expand spec coverage of `CLI::Media` (#27437)
mjankowski Oct 16, 2023
1084703
Update changelog (#27440)
ClearlyClaire Oct 17, 2023
19900f6
Add coverage for `UnreservedUsernameValidator` (#25590)
mjankowski Oct 17, 2023
d54fec2
Add coverage for `CLI::PreviewCards#remove` command (#27441)
mjankowski Oct 17, 2023
12bb7be
Spec speed ups on `AccountsController` spec (#25391)
mjankowski Oct 17, 2023
c4bddc9
Add spec for poll model (#23399)
leevic31 Oct 17, 2023
935d541
Fix missing redirections to make sure /home redirect to the advanced …
Signez Oct 17, 2023
1fb4e40
Run scheduled actions only on the main repo (#27343)
renchap Oct 17, 2023
c0cda1a
Let use http_hidden_proxy on docker-compose (#27054)
tribela Oct 17, 2023
b34a2b1
Fix errors in CLI specs (#27399)
ClearlyClaire Oct 17, 2023
65cd070
Refactor domains cli to remove model call from regex (#25878)
mjankowski Oct 17, 2023
1996fb6
Update dependency puma to v6.4.0 (#27006)
renovate[bot] Oct 17, 2023
2528a07
Update `rubocop-capybara` to version 2.19.0 (#26982)
mjankowski Oct 17, 2023
ad44d83
Support "in:public" search filter (#26976)
tribela Oct 17, 2023
0036de4
Update dependency rubocop-performance to v1.19.1 (#26949)
renovate[bot] Oct 17, 2023
71447ab
Fix `Capybara/ClickLinkOrButtonStyle` cop in spec/features/admin area…
mjankowski Oct 17, 2023
5ef26d8
Add RSpec GitHub annotations gem (#24040)
nschonni Oct 17, 2023
656a41d
Merge commit '77098c6f1c25958960df98a1510b28352a39704f' into glitch-s…
ClearlyClaire Oct 17, 2023
b867d45
Merge commit 'c91c0175db1cc8b954a977d29472886234ce9586' into glitch-s…
ClearlyClaire Oct 17, 2023
c10a667
Merge commit '935d54124e80e9fe5365c724e5c8827a2b3ed5b3' into glitch-s…
ClearlyClaire Oct 17, 2023
8bbbd01
[Glitch] Fix missing redirections to make sure /home redirect to the …
Signez Oct 17, 2023
63179f0
Merge commit '5ef26d8fd50081c642b858a82bf0c5431b1c7e83' into glitch-s…
ClearlyClaire Oct 17, 2023
0d18c47
Enable scheduled actions only on glitch-soc's repo
ClearlyClaire Oct 17, 2023
68401fc
[Glitch] Support "in:public" search filter
tribela Oct 17, 2023
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
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
compute-suffix:
runs-on: ubuntu-latest
if: github.repository == 'glitch-soc/mastodon'
steps:
- id: version_vars
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
download-translations:
runs-on: ubuntu-latest
if: github.repository == 'glitch-soc/mastodon'

steps:
- name: Checkout
Expand Down
12 changes: 2 additions & 10 deletions .haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2023-10-03 08:32:28 -0400 using Haml-Lint version 0.51.0.
# on 2023-10-11 11:31:24 -0400 using Haml-Lint version 0.51.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: 944
# Offense count: 946
LineLength:
enabled: false

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

# Offense count: 15
InstanceVariables:
exclude:
- 'app/views/admin/reports/_actions.html.haml'
- 'app/views/auth/registrations/_status.html.haml'
- 'app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml'
- 'app/views/relationships/_account.html.haml'

# Offense count: 2
IdNames:
exclude:
Expand Down
9 changes: 0 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ RSpec/LetSetup:
- 'spec/controllers/admin/reports/actions_controller_spec.rb'
- 'spec/controllers/admin/statuses_controller_spec.rb'
- 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb'
- 'spec/controllers/api/v1/admin/accounts_controller_spec.rb'
- 'spec/controllers/api/v1/filters_controller_spec.rb'
- 'spec/controllers/api/v1/followed_tags_controller_spec.rb'
- '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'
Expand Down Expand Up @@ -418,7 +416,6 @@ Rails/SkipsModelValidations:
- 'lib/mastodon/cli/accounts.rb'
- 'lib/mastodon/cli/main.rb'
- 'lib/mastodon/cli/maintenance.rb'
- 'spec/controllers/api/v1/admin/accounts_controller_spec.rb'
- 'spec/lib/activitypub/activity/follow_spec.rb'
- 'spec/services/follow_service_spec.rb'
- 'spec/services/update_account_service_spec.rb'
Expand Down Expand Up @@ -523,12 +520,6 @@ Style/ClassVars:
Exclude:
- 'config/initializers/devise.rb'

# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CombinableLoops:
Exclude:
- 'app/models/form/custom_emoji_batch.rb'
- 'app/models/form/ip_block_batch.rb'

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,46 @@

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

## [4.2.1] - 2023-10-10

### Added

- Add redirection on `/deck` URLs for logged-out users ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27128))
- Add support for v4.2.0 migrations to `tootctl maintenance fix-duplicates` ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27147))

### Changed

- Change some worker lock TTLs to be shorter-lived ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27246))
- Change user archive export allowed period from 7 days to 6 days ([suddjian](https://github.com/mastodon/mastodon/pull/27200))

### Fixed

- Fix duplicate reports being sent when reporting some remote posts ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27355))
- Fix clicking on already-opened thread post scrolling to the top of the thread ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27331), [ClearlyClaire](https://github.com/mastodon/mastodon/pull/27338), [ClearlyClaire](https://github.com/mastodon/mastodon/pull/27350))
- Fix some remote posts getting truncated ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27307))
- Fix some cases of infinite scroll code trying to fetch inaccessible posts in a loop ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27286))
- Fix `Vary` headers not being set on some redirects ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27272))
- Fix mentions being matched in some URL query strings ([mjankowski](https://github.com/mastodon/mastodon/pull/25656))
- Fix unexpected linebreak in version string in the Web UI ([vmstan](https://github.com/mastodon/mastodon/pull/26986))
- Fix double scroll bars in some columns in advanced interface ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27187))
- Fix boosts of local users being filtered in account timelines ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27204))
- Fix multiple instances of the trend refresh scheduler sometimes running at once ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27253))
- Fix importer returning negative row estimates ([jgillich](https://github.com/mastodon/mastodon/pull/27258))
- Fix incorrectly keeping outdated update notices absent from the API endpoint ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27021))
- Fix import progress not updating on certain failures ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27247))
- Fix websocket connections being incorrectly decremented twice on errors ([ThisIsMissEm](https://github.com/mastodon/mastodon/pull/27238))
- Fix explore prompt appearing because of posts being received out of order ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27211))
- Fix explore prompt sometimes showing up when the home TL is loading ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27062))
- Fix link handling of mentions in user profiles when logged out ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27185))
- Fix filtering audit log for entries about disabling 2FA ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27186))
- Fix notification toasts not respecting reduce-motion ([c960657](https://github.com/mastodon/mastodon/pull/27178))
- Fix retention dashboard not displaying correct month ([vmstan](https://github.com/mastodon/mastodon/pull/27180))
- Fix tIME chunk not being properly removed from PNG uploads ([TheEssem](https://github.com/mastodon/mastodon/pull/27111))
- Fix division by zero in video in bitrate computation code ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27129))
- Fix inefficient queries in “Follows and followers” as well as several admin pages ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27116), [ClearlyClaire](https://github.com/mastodon/mastodon/pull/27306))
- Fix ActiveRecord using two connection pools when no replica is defined ([ClearlyClaire](https://github.com/mastodon/mastodon/pull/27061))
- Fix the search documentation URL in system checks ([renchap](https://github.com/mastodon/mastodon/pull/27036))

## [4.2.0] - 2023-09-21

The following changelog entries focus on changes visible to users, administrators, client developers or federated software developers, but there has also been a lot of code modernization, refactoring, and tooling work, in particular by [@danielmbrasil](https://github.com/danielmbrasil), [@mjankowski](https://github.com/mjankowski), [@nschonni](https://github.com/nschonni), [@renchap](https://github.com/renchap), and [@takayamaki](https://github.com/takayamaki).
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ group :test do
# Used to split testing into chunks in CI
gem 'rspec_chunked', '~> 0.6'

# Adds RSpec Error/Warning annotations to GitHub PRs on the Files tab
gem 'rspec-github', '~> 2.4', require: false

# RSpec progress bar formatter
gem 'fuubar', '~> 2.5'

Expand Down
49 changes: 26 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ GEM
net-http-persistent (~> 4.0)
nokogiri (~> 1, >= 1.10.8)
base64 (0.1.1)
bcrypt (3.1.18)
bcrypt (3.1.19)
better_errors (2.10.1)
erubi (>= 1.0.0)
rack (>= 0.9.0)
rouge (>= 1.0.0)
better_html (2.0.1)
better_html (2.0.2)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
Expand Down Expand Up @@ -210,17 +210,17 @@ GEM
database_cleaner-core (2.0.1)
date (3.3.3)
debug_inspector (1.1.0)
devise (4.9.2)
devise (4.9.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise-two-factor (4.1.0)
activesupport (< 7.1)
devise-two-factor (4.1.1)
activesupport (~> 7.0)
attr_encrypted (>= 1.3, < 5, != 2)
devise (~> 4.0)
railties (< 7.1)
railties (~> 7.0)
rotp (~> 6.0)
devise_pam_authenticatable2 (9.2.0)
devise (>= 4.0.0)
Expand Down Expand Up @@ -345,14 +345,14 @@ GEM
rainbow (>= 2.0.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
i18n-tasks (1.0.12)
i18n-tasks (1.0.13)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
better_html (>= 1.0, < 3.0)
erubi
highline (>= 2.0.0)
i18n
parser (>= 2.2.3.0)
parser (>= 3.2.2.1)
rails-i18n
rainbow (>= 2.2.2, < 4.0)
terminal-table (>= 1.5.1)
Expand Down Expand Up @@ -412,12 +412,12 @@ GEM
llhttp-ffi (0.4.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
lograge (0.13.0)
lograge (0.14.0)
actionpack (>= 4)
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.21.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
Expand All @@ -440,7 +440,7 @@ GEM
mime-types-data (3.2023.0808)
mini_mime (1.1.5)
mini_portile2 (2.8.4)
minitest (5.19.0)
minitest (5.20.0)
msgpack (1.7.1)
multi_json (1.15.0)
multipart-post (2.3.0)
Expand Down Expand Up @@ -493,7 +493,7 @@ GEM
orm_adapter (0.5.0)
ox (2.14.17)
parallel (1.23.0)
parser (3.2.2.3)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
parslet (2.0.0)
Expand All @@ -513,7 +513,7 @@ GEM
premailer (~> 1.7, >= 1.7.9)
private_address_check (0.5.0)
public_suffix (5.0.3)
puma (6.3.1)
puma (6.4.0)
nio4r (~> 2.0)
pundit (2.3.0)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -554,14 +554,14 @@ GEM
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
activesupport (>= 5.0.1.rc1)
rails-dom-testing (2.1.1)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.7)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.0.8)
Expand All @@ -583,10 +583,10 @@ GEM
redis (>= 4)
redlock (1.3.2)
redis (>= 3.0.0, < 6.0)
regexp_parser (2.8.1)
regexp_parser (2.8.2)
request_store (1.5.1)
rack (>= 1.4)
responders (3.1.0)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.2.6)
Expand All @@ -602,6 +602,8 @@ GEM
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-github (2.4.0)
rspec-core (~> 3.0)
rspec-mocks (3.12.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
Expand All @@ -620,12 +622,12 @@ GEM
sidekiq (>= 5, < 8)
rspec-support (3.12.1)
rspec_chunked (0.6)
rubocop (1.56.4)
rubocop (1.57.1)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.3)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
Expand All @@ -634,11 +636,11 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.18.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.23.1)
rubocop (~> 1.33)
rubocop-performance (1.19.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.20.2)
Expand Down Expand Up @@ -671,7 +673,7 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.0.0)
sidekiq (6.5.11)
sidekiq (6.5.12)
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
Expand Down Expand Up @@ -789,7 +791,7 @@ GEM
xorcist (1.1.3)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.11)
zeitwerk (2.6.12)

PLATFORMS
ruby
Expand Down Expand Up @@ -885,6 +887,7 @@ DEPENDENCIES
redis (~> 4.5)
redis-namespace (~> 1.10)
rqrcode (~> 2.2)
rspec-github (~> 2.4)
rspec-rails (~> 6.0)
rspec-sidekiq (~> 4.0)
rspec_chunked (~> 0.6)
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/concerns/two_factor_authentication_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module TwoFactorAuthenticationConcern

included do
prepend_before_action :authenticate_with_two_factor, if: :two_factor_enabled?, only: [:create]
helper_method :webauthn_enabled?
end

def two_factor_enabled?
Expand Down Expand Up @@ -89,4 +90,10 @@ def prompt_for_two_factor(user)

set_locale { render :two_factor }
end

protected

def webauthn_enabled?
@webauthn_enabled
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Search extends PureComponent {
{ label: <><mark>before:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('before:'); } },
{ label: <><mark>during:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('during:'); } },
{ label: <><mark>after:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('after:'); } },
{ label: <><mark>in:</mark> <FormattedList type='disjunction' value={['all', 'library']} /></>, action: e => { e.preventDefault(); this._insertText('in:'); } }
{ label: <><mark>in:</mark> <FormattedList type='disjunction' value={['all', 'library', 'public']} /></>, action: e => { e.preventDefault(); this._insertText('in:'); } }
];

setRef = c => {
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/flavours/glitch/features/ui/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ class SwitchingColumnsArea extends PureComponent {

{singleColumn ? <Redirect from='/deck' to='/home' exact /> : null}
{singleColumn && pathName.startsWith('/deck/') ? <Redirect from={pathName} to={pathName.slice(5)} /> : null}
{/* Redirect old bookmarks (without /deck) with home-like routes to the advanced interface */}
{!singleColumn && pathName === '/getting-started' ? <Redirect from='/getting-started' to='/deck/getting-started' exact /> : null}
{!singleColumn && pathName === '/home' ? <Redirect from='/home' to='/deck/getting-started' exact /> : null}

<WrappedRoute path='/getting-started' component={GettingStarted} content={children} />
<WrappedRoute path='/keyboard-shortcuts' component={KeyboardShortcuts} content={children} />
Expand Down
1 change: 1 addition & 0 deletions app/javascript/flavours/glitch/initial_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const initialPath = document.querySelector("head meta[name=initialPath]")?.getAt
/** @type {boolean} */
export const hasMultiColumnPath = initialPath === '/'
|| initialPath === '/getting-started'
|| initialPath === '/home'
|| initialPath.startsWith('/deck');

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Search extends PureComponent {
{ label: <><mark>before:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('before:'); } },
{ label: <><mark>during:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('during:'); } },
{ label: <><mark>after:</mark> <FormattedMessage id='search_popout.specific_date' defaultMessage='specific date' /></>, action: e => { e.preventDefault(); this._insertText('after:'); } },
{ label: <><mark>in:</mark> <FormattedList type='disjunction' value={['all', 'library']} /></>, action: e => { e.preventDefault(); this._insertText('in:'); } }
{ label: <><mark>in:</mark> <FormattedList type='disjunction' value={['all', 'library', 'public']} /></>, action: e => { e.preventDefault(); this._insertText('in:'); } }
];

setRef = c => {
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/mastodon/features/ui/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ class SwitchingColumnsArea extends PureComponent {

{singleColumn ? <Redirect from='/deck' to='/home' exact /> : null}
{singleColumn && pathName.startsWith('/deck/') ? <Redirect from={pathName} to={pathName.slice(5)} /> : null}
{/* Redirect old bookmarks (without /deck) with home-like routes to the advanced interface */}
{!singleColumn && pathName === '/getting-started' ? <Redirect from='/getting-started' to='/deck/getting-started' exact /> : null}
{!singleColumn && pathName === '/home' ? <Redirect from='/home' to='/deck/getting-started' exact /> : null}

<WrappedRoute path='/getting-started' component={GettingStarted} content={children} />
<WrappedRoute path='/keyboard-shortcuts' component={KeyboardShortcuts} content={children} />
Expand Down
Loading
Loading