Skip to content

Commit 879d703

Browse files
authored
Merge pull request #595 from imas/update/imastodon-v4.7.4
v4.7.4 に追従する
2 parents fab0f26 + 5a8ab93 commit 879d703

149 files changed

Lines changed: 2409 additions & 314 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/setup-ruby/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
${{ inputs.additional-system-dependencies }}
2525
2626
- name: Set up Ruby
27-
uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1
27+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
2828
with:
2929
ruby-version: ${{ inputs.ruby-version }}
3030
bundler-cache: true

‎.github/workflows/bundler-audit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
3333

3434
- name: Set up Ruby
35-
uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1
35+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
3636
with:
3737
bundler-cache: true
3838

‎.github/workflows/lint-haml.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
3636

3737
- name: Set up Ruby
38-
uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1
38+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
3939
with:
4040
bundler-cache: true
4141

‎.github/workflows/lint-ruby.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
3838

3939
- name: Set up Ruby
40-
uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1
40+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
4141
with:
4242
bundler-cache: true
4343

‎.ruby-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.6
1+
4.0.9

‎CHANGELOG.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

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

5+
## [4.7.4] - 2026-10-29
6+
7+
### Security
8+
9+
- Fix insufficient ActivityPub identifier verification ([GHSA-288h-6j8h-6x5j](https://github.com/mastodon/mastodon/security/advisories/GHSA-288h-6j8h-6x5j))
10+
- Added security challenge e-mail to users that try to log in after long period of inactivity (#40745 by @jhbabon)
11+
- Updated dependencies, in particular to address security advisories in Ruby, NodeJS, `excon`, `css_parser`, `pghero`, and `sanitize`
12+
13+
### Fixed
14+
15+
- Fix inefficiency in some hashtag timeline queries (#41132 by @hugogameiro)
16+
- Fix minor inefficiency in timeline deliveries (#41079 by @isidzukuri)
17+
- Fix account timeline with `exclude_direct` also excluding followers-only posts for non-followed users (#41019 by @ClearlyClaire)
18+
- Fix error in `dev:populate_sample_data` task (#40995 and #41051 by @isidzukuri and @mjankowski)
19+
- Fix local collection item revocation not being properly federated (#40930 by @oneiros)
20+
521
## [4.7.3] - 2026-10-01
622

723
### Security

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG BASE_REGISTRY="docker.io"
1313

1414
# Ruby image to use for base image, change with [--build-arg RUBY_VERSION="4.0.x"]
1515
# renovate: datasource=docker depName=docker.io/ruby
16-
ARG RUBY_VERSION="4.0.6"
16+
ARG RUBY_VERSION="4.0.9"
1717
# # Node.js version to use in base image, change with [--build-arg NODE_MAJOR_VERSION="22"]
1818
# renovate: datasource=node-version depName=node
1919
ARG NODE_MAJOR_VERSION="24"

‎Gemfile.lock‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ GEM
9898
activesupport (>= 6.0.0)
9999
ast (2.4.3)
100100
attr_required (1.0.2)
101-
aws-eventstream (1.4.0)
101+
aws-eventstream (1.4.1)
102102
aws-partitions (1.1279.0)
103-
aws-sdk-core (3.257.0)
104-
aws-eventstream (~> 1, >= 1.3.0)
103+
aws-sdk-core (3.261.0)
104+
aws-eventstream (~> 1, >= 1.4.1)
105105
aws-partitions (~> 1, >= 1.992.0)
106106
aws-sigv4 (~> 1.9)
107107
base64
@@ -112,8 +112,8 @@ GEM
112112
aws-sdk-kms (1.130.0)
113113
aws-sdk-core (~> 3, >= 3.254.0)
114114
aws-sigv4 (~> 1.5)
115-
aws-sdk-s3 (1.232.3)
116-
aws-sdk-core (~> 3, >= 3.256.0)
115+
aws-sdk-s3 (1.235.0)
116+
aws-sdk-core (~> 3, >= 3.258.0)
117117
aws-sdk-kms (~> 1)
118118
aws-sigv4 (~> 1.5)
119119
aws-sdk-ssm (1.186.0)
@@ -185,7 +185,7 @@ GEM
185185
crack (1.0.1)
186186
bigdecimal
187187
rexml
188-
crass (1.0.7)
188+
crass (1.0.8)
189189
css_parser (3.3.0)
190190
addressable
191191
base64
@@ -236,7 +236,7 @@ GEM
236236
erubi (1.13.1)
237237
et-orbi (1.4.1)
238238
tzinfo
239-
excon (1.7.0)
239+
excon (1.8.0)
240240
logger
241241
fabrication (3.0.0)
242242
faker (3.8.0)
@@ -600,7 +600,7 @@ GEM
600600
pastel (0.8.0)
601601
tty-color (~> 0.5)
602602
pg (1.6.3)
603-
pghero (4.0.1)
603+
pghero (4.1.0)
604604
activerecord (>= 7.2)
605605
playwright-ruby-client (1.62.0)
606606
base64
@@ -815,8 +815,8 @@ GEM
815815
fugit (~> 1.1, >= 1.11.1)
816816
safety_net_attestation (0.5.0)
817817
jwt (>= 2.0, < 4.0)
818-
sanitize (7.0.0)
819-
crass (~> 1.0.2)
818+
sanitize (7.0.1)
819+
crass (~> 1.0.8)
820820
nokogiri (>= 1.16.8)
821821
scenic (1.9.0)
822822
activerecord (>= 4.0.0)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# frozen_string_literal: true
2+
3+
module Admin
4+
class Users::SignInTokenAuthenticationsController < BaseController
5+
before_action :set_target_user
6+
7+
def create
8+
authorize @user, :enable_sign_in_token?
9+
@user.enable_sign_in_token!
10+
log_action :enable_sign_in_token, @user
11+
redirect_to admin_account_path(@user.account_id)
12+
end
13+
14+
def destroy
15+
authorize @user, :disable_sign_in_token?
16+
@user.disable_sign_in_token!
17+
log_action :disable_sign_in_token, @user
18+
redirect_to admin_account_path(@user.account_id)
19+
end
20+
21+
private
22+
23+
def set_target_user
24+
@user = User.find(params[:user_id])
25+
end
26+
end
27+
end

‎app/controllers/auth/sessions_controller.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Auth::SessionsController < Devise::SessionsController
1717
prepend_before_action :check_suspicious!, only: [:create]
1818

1919
include Auth::TwoFactorAuthenticationConcern
20+
include Auth::SignInTokenAuthenticationConcern
2021

2122
content_security_policy only: :new do |p|
2223
p.form_action(false)
@@ -62,7 +63,7 @@ def find_user_from_params
6263
end
6364

6465
def user_params
65-
params.expect(user: [:email, :password, :otp_attempt, credential: {}])
66+
params.expect(user: [:email, :password, :otp_attempt, :sign_in_token_attempt, credential: {}])
6667
end
6768

6869
def after_sign_in_path_for(resource)

0 commit comments

Comments
 (0)