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

Bump version to 8.1 #206

Merged
merged 161 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
640421f
Add 4.2.x to supported versions in SECURITY.md (#27317)
andypiper Oct 7, 2023
eabe839
Update eslint (non-major) (#27328)
renovate[bot] Oct 9, 2023
5fc5a54
Update DefinitelyTyped types (non-major) (#27327)
renovate[bot] Oct 9, 2023
89b4868
New Crowdin Translations (automated) (#27321)
github-actions[bot] Oct 9, 2023
c310374
Fix clicking on already-opened thread post scrolling to the top of th…
ClearlyClaire Oct 9, 2023
774e118
Change `eslint` config to autofix missing comma and indentation in JS…
renchap Oct 9, 2023
4c2aca7
Fix clicking on already-loaded thread scrolling to the top of the thr…
ClearlyClaire Oct 9, 2023
1745c58
Update dependency sidekiq to v6.5.11 (#27345)
renovate[bot] Oct 10, 2023
1a2a4c3
New Crowdin Translations (automated) (#27347)
github-actions[bot] Oct 10, 2023
9d1c3d0
Fix scroll position in thread view reseting when closing a modal (#27…
ClearlyClaire Oct 10, 2023
e761229
Merge pull request #57 from kmycode/kb-draft-5.3-lts
kmycode Oct 10, 2023
80498c8
Merge remote-tracking branch 'parent/main' into kb-merge-231010
kmycode Oct 10, 2023
27e84c0
Fix duplicate reports being sent when reporting some remote posts (#2…
ClearlyClaire Oct 10, 2023
74dd325
Fix duplicate reports being sent when reporting some remote posts (po…
ClearlyClaire Oct 10, 2023
243e141
Merge remote-tracking branch 'parent/stable-4.2' into kb_lts
kmycode Oct 11, 2023
54898d5
Merge commit '27e84c069112a3d2abfad947642457cc997a261a' into kb-merge…
kmycode Oct 11, 2023
5cb8cca
Merge pull request #80 from kmycode/kb-merge-231010
kmycode Oct 11, 2023
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
68e251c
Merge remote-tracking branch 'parent/main' into kb-upstream-231012
kmycode Oct 12, 2023
2e7cdd0
Fix: #89 NodeInfo向けの機能一覧表を作成して区別 (#103)
kmycode Oct 12, 2023
12d068d
Fix: #83 フレンドサーバーでの全投稿配送で、アカウントドメインブロックが無視される問題 (#102)
kmycode Oct 12, 2023
8549f78
Merge pull request #104 from kmycode/kb-upstream-231012
kmycode 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
6451b85
Change: #82 フレンド申請時、自分のサーバーのInbox URLを伝える
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
369f3c6
Merge pull request #110 from kmycode/kbtopic-82-friend-server-inbox-url
kmycode Oct 13, 2023
61b8693
Change: #100 リモートのスタンプに相乗りした時、それをフォロワーのいるサーバーに配送 (#111)
kmycode 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
f21c264
Change: #52 購読拒否設定項目を追加設定画面に移動 (#112)
kmycode Oct 13, 2023
6019592
Merge remote-tracking branch 'parent/main' into kb-upstream-20231014
kmycode Oct 13, 2023
f918a13
Fix: テスト
kmycode Oct 15, 2023
b896ab2
Fix when unfollow a tag, my post also disappears from the home timeli…
kmycode Oct 13, 2023
c2f0960
Change: #52 購読拒否設定項目を追加設定画面に移動 (#112)
kmycode Oct 13, 2023
dd46f62
Merge pull request from GHSA-jw42-6m49-65x8
kmycode Oct 15, 2023
5ac46b4
Bump version to 5.5 LTS
kmycode Oct 15, 2023
e7e70b2
Fix: スタンプのテスト
kmycode Oct 15, 2023
b96a720
Merge branch 'kb_development' into kb-connect-lts-to-development
kmycode Oct 15, 2023
b0e077e
Merge branch 'kb_development' into kb-connect-patch-to-development
kmycode Oct 15, 2023
4a91033
Merge pull request #119 from kmycode/kb-connect-patch-to-development
kmycode Oct 15, 2023
f9325d0
Merge pull request #118 from kmycode/kb-connect-lts-to-development
kmycode Oct 15, 2023
a772f72
Merge pull request #116 from kmycode/kb-upstream-20231014
kmycode Oct 15, 2023
d0f0dd7
Change: #68 限定投稿の検索許可を反応者に設定可能に (#120)
kmycode Oct 15, 2023
86a8b26
Change: ブックマーク分類のページネーション (#123)
kmycode Oct 16, 2023
7d6684f
Fix: ブックマーク・ブックマーク分類・サークル・お気に入り・スタンプの投稿一覧で、ヘッダを押してもスクロールできない問題(本家由来) …
kmycode Oct 16, 2023
9b746fa
Fix: 概要画面でエラーが発生する場合がある問題 (#125)
kmycode Oct 16, 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
a8cc6c5
Merge branch 'kb_development' into kb-connect-7.2-to-development
kmycode Oct 16, 2023
c042987
Merge pull request #128 from kmycode/kb-connect-7.2-to-development
kmycode Oct 16, 2023
04bb467
Fix: 翻訳のマージ衝突が頻繁に起きる問題、バージョン番号の修正 (#129)
kmycode Oct 16, 2023
1b76a51
Test: `/api/v1/circles`、`/api/v1/circles/:id/accounts`のテストを更新 (#130)
kmycode Oct 16, 2023
6245420
Update dependency i18n-tasks to v1.0.13 (#27403)
renovate[bot] Oct 16, 2023
1a437bc
Update dependency bufferutil to v4.0.8 (#27412)
renovate[bot] Oct 16, 2023
483f8af
New Crowdin Translations (automated) (#27410)
github-actions[bot] Oct 16, 2023
cc92de1
Fixes #23135 - Allow cross origin request for /nodeinfo/2.0 API (#27413)
palant Oct 16, 2023
6d1916c
Fix handling of `inLanguage` attribute in preview card processing (#2…
ClearlyClaire Oct 16, 2023
d8e007d
Add coverage for `CLI::Statuses` command (#25321)
mjankowski Oct 16, 2023
e885b44
Remove unused stub json ld context (#25454)
mjankowski Oct 16, 2023
99baed3
Add coverage for `ExistingUsernameValidator` (#25592)
mjankowski Oct 16, 2023
e35c862
Migrate to request specs in `/api/v1/admin/accounts` (#25563)
danielmbrasil Oct 16, 2023
39633eb
Migrate to request specs in `/api/v1/blocks` (#25517)
danielmbrasil Oct 16, 2023
c1a0e05
Migrate to request specs in `/api/v1/lists/:id/accounts` (#25468)
danielmbrasil Oct 16, 2023
eb5ebdb
Extract `card` partial from `disputes/strikes/show` view (#27426)
mjankowski Oct 16, 2023
a730517
Fix `Style/CombinableLoops` cop (#27429)
mjankowski Oct 16, 2023
4966331
Migrate to request specs in `/api/v1/notifications` (#25553)
danielmbrasil Oct 16, 2023
7537837
Misc coverage improvements for `Admin::` and `Settings::` controllers…
mjankowski Oct 16, 2023
e9e0af9
Extract shared example for cacheable response in specs (#25388)
mjankowski Oct 16, 2023
f9613f9
Extract partials from `admin/accounts/show` view (#27428)
mjankowski Oct 16, 2023
e4e9855
Extract partials from `admin/reports/show` view (#27427)
mjankowski Oct 16, 2023
72d18cb
Expand spec coverage of `CLI::Media` (#27437)
mjankowski Oct 16, 2023
4735d23
Add: カスタム絵文字の専用編集画面/Fix: リモートの絵文字をローカルにコピー時、ライセンス情報が消失する問題 (#133)
kmycode Oct 17, 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
9b1821d
Test: `UnEmojiReactService`のテスト (#138)
kmycode Oct 18, 2023
d62a135
スタンプ機能のリファクタリング、投稿の反応者へも配送 (#140)
kmycode Oct 18, 2023
b73eb1b
Test: API呼び出しによってスタンプをつけるテスト (#139)
kmycode Oct 18, 2023
1d9c770
Fix: 他のサーバーの同じ絵文字を複数つけられる問題 (#141)
kmycode Oct 18, 2023
84eae6f
Merge
kmycode Oct 18, 2023
9972dfa
Revert "Merge"
kmycode Oct 18, 2023
527ded8
Merge remote-tracking branch 'parent/main' into kb-upstream-20231018
kmycode Oct 18, 2023
da662d2
Merge pull request #144 from kmycode/kb-upstream-20231018
kmycode Oct 18, 2023
3a2030d
Add: #43 フォローしていないアカウントからのリプライのNGワード (#148)
kmycode Oct 19, 2023
42c613b
#150 ローカルユーザーの投稿にもメンションのNGワードを適用 (#151)
kmycode Oct 19, 2023
292fbbb
Change: #93 引用投稿よりも添付画像を先に表示 (#152)
kmycode Oct 20, 2023
89ef448
Fix: #154 サークル投稿履歴が遡れない問題 (#156)
kmycode Oct 21, 2023
d789304
Add: #136 自分が引用した投稿が編集されたときに通知 (#157)
kmycode Oct 21, 2023
1213d5f
Fix: #137 ローカルのカスタム絵文字に`remote_url`が設定されるバグを修正したのに伴う、既存のデータから削除するマイグレ…
kmycode Oct 21, 2023
76edf82
Fix: ブーストが1つでもあると投稿のエクスポート時にエラーが出る問題 (#149)
kmycode Oct 21, 2023
5497e2a
Add: カスタム絵文字のエイリアス名を連合 (#135)
kmycode Oct 22, 2023
4f37ede
Fix: #162 編集/他のサーバーからの編集で、フォローしていない相手からのメンションに関するNGワードに対応 (#163)
kmycode Oct 22, 2023
eb52b72
Fix: 他のサーバー同士のスタンプで`emoji_reaction_policy`が適用される問題 (#165)
kmycode Oct 22, 2023
3174ad3
Change: #101 セキュリティ関連文書の邦訳 (#167)
kmycode Oct 22, 2023
e3ec2f9
Add: #22 拡張ドメインブロックの設定画面に見出し (#164)
kmycode Oct 22, 2023
bcb3acd
Fix: フレンドサーバーおよびMisskeyで編集が連合できない問題 (#168)
kmycode Oct 22, 2023
b77e309
Bump version to 8.0
kmycode Oct 22, 2023
67eced5
Add: 他のサーバーに公開する情報に、制限設定などを追加
kmycode Oct 22, 2023
1fc8032
Fix: `quote_of_id`のインデックス
kmycode Oct 22, 2023
dd6db1f
Fix: #172 他のサーバーからの相乗り絵文字削除が反映されない
kmycode Oct 23, 2023
4918161
Test: #166 リモートから自分の絵文字を受け取った時、ライセンスが上書きされないことを確認するテスト
kmycode Oct 23, 2023
e2bc9be
Merge pull request from GHSA-c7p6-c688-fhgp
kmycode Oct 25, 2023
540565b
Merge commit 'e2bc9be0e892b852f718ed73ff22bee37983e697' into kb-draft…
kmycode Oct 31, 2023
d317663
Fix: 投稿の更新が他サーバーに配信されない問題 (#204)
kmycode Oct 31, 2023
ce0f324
Bump version to 8.1
kmycode Oct 31, 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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
'plugin:import/recommended',
'plugin:promise/recommended',
'plugin:jsdoc/recommended',
'plugin:prettier/recommended',
],

env: {
Expand Down Expand Up @@ -63,7 +62,9 @@ module.exports = {
'consistent-return': 'error',
'dot-notation': 'error',
eqeqeq: ['error', 'always', { 'null': 'ignore' }],
'indent': ['error', 2],
'jsx-quotes': ['error', 'prefer-single'],
'semi': ['error', 'always'],
'no-case-declarations': 'off',
'no-catch-shadow': 'error',
'no-console': [
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: バグ報告
description: kmyblueのバグ報告
description: kmyblueのバグ報告(ただし情報改竄、秘密情報の漏洩、システムの破損などが発生するバグは、こちらではなく「Security」タブよりセキュリティインシデントとして報告してください)
labels: [bug]
body:
- type: textarea
Expand Down
8 changes: 2 additions & 6 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 @@ -30,10 +30,6 @@ linters:
# 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'
- 'app/views/application/_sidebar.html.haml'

# Offense count: 2
Expand Down
9 changes: 0 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,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 @@ -416,7 +414,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 @@ -526,12 +523,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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.

### 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))
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 @@ -622,12 +624,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 @@ -636,11 +638,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 @@ -673,7 +675,7 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.0.0)
sidekiq (6.5.10)
sidekiq (6.5.12)
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
Expand Down Expand Up @@ -791,7 +793,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 @@ -887,6 +889,7 @@ DEPENDENCIES
redis (~> 4.5)
redis-namespace (~> 1.10)
rqrcode (~> 2.2)
rspec-github (~> 2.4)
rspec-rails (~> 6.0)
rspec-retry (>= 0.6.2)
rspec-sidekiq (~> 4.0)
Expand Down
33 changes: 18 additions & 15 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# Security Policy
# セキュリティポリシー

If you believe you've identified a security vulnerability in Mastodon (a bug that allows something to happen that shouldn't be possible), you can either:
kmyblueのプログラムにおいてセキュリティインシデントを発見した場合、kmyblueに報告してください。

- open a [Github security issue on the Mastodon project](https://github.com/mastodon/mastodon/security/advisories/new)
- reach us at <[email protected]>
kmyblueにセキュリティインシデントを報告する場合、以下の手順を踏んでください。

You should _not_ report such issues on public GitHub issues or in other public spaces to give us time to publish a fix for the issue without exposing Mastodon's users to increased risk.
- [こちらのリンクから新規インシデントを起票してください](https://github.com/kmycode/mastodon/security/advisories/new)
- メール <[email protected]>、または[@[email protected]](https://kmy.blue/@askyq)宛に、**セキュリティインシデントを起票したことだけ**を連絡してください。セキュリティインシデントの内容は、絶対に連絡に含めないでください(リンクくらいなら含めていいかな)

## Scope
他のkmyblueフォークの利用者の安全のために少しでも時間稼ぎをしなければいけないので、この問題をIssueを含む公開された場所で記述しないでください。

A "vulnerability in Mastodon" is a vulnerability in the code distributed through our main source code repository on GitHub. Vulnerabilities that are specific to a given installation (e.g. misconfiguration) should be reported to the owner of that installation and not us.
## 範囲

## Supported Versions
こちらが対応できる範囲は、当リポジトリで公開しているソースコードのみとなります。当リポジトリの依存パッケージ内に問題がある場合は、そちらに報告してください。

| Version | Supported |
| ------- | ---------------- |
| 4.2.x | Yes |
| 4.1.x | Yes |
| 4.0.x | Until 2023-10-31 |
| 3.5.x | Until 2023-12-31 |
| < 3.5 | No |
もしあなたに専門知識があり、それが本家Mastodon由来の問題であると信じるに足る根拠がある場合、kmyblueではなくMastodonのほうに報告してください。kmyblueに報告されても、Mastodonより先に修正してしまうことでMastodonにセキュリティリスクを発生させる可能性がありますし、本家Mastodonの対応を待つにしてもkmyblueのほうに来てしまったセキュリティインシデントの対応に困ります(本家がなかなか対応してくれない可能性を考えると削除しづらい)。もし間違ってkmyblueに来た場合、kmyblue開発者の責任で振り分けを行います。

## サポートするバージョン

下記以外のバージョンは、セキュリティインシデントを起票されても対応しません。

- 最新メジャーバージョン、かつ、最新マイナーバージョン
- 最新メジャーバージョンのサポートは、次のメジャーバージョンが出た時点で終了します
- LTS
- LTSのサポートは、次のLTSが出た時点で終了します(ただし移行期間があってもいいと思ってるので、1〜3ヶ月以内ならセキュリティインシデントの程度に応じて対応する可能性があります)
31 changes: 29 additions & 2 deletions app/controllers/admin/custom_emojis_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module Admin
class CustomEmojisController < BaseController
before_action :set_custom_emoji, only: [:edit, :update]

def index
authorize :custom_emoji, :index?

Expand All @@ -15,6 +17,10 @@ def new
@custom_emoji = CustomEmoji.new
end

def edit
authorize :custom_emoji, :create?
end

def create
authorize :custom_emoji, :create?

Expand All @@ -28,6 +34,19 @@ def create
end
end

def update
authorize :custom_emoji, :create?

@custom_emoji.assign_attributes(update_params)

if @custom_emoji.save
log_action :create, @custom_emoji
redirect_to admin_custom_emojis_path(filter_params), notice: I18n.t('admin.custom_emojis.updated_msg')
else
render :new
end
end

def batch
authorize :custom_emoji, :index?

Expand All @@ -43,8 +62,16 @@ def batch

private

def set_custom_emoji
@custom_emoji = CustomEmoji.find(params[:id])
end

def resource_params
params.require(:custom_emoji).permit(:shortcode, :image, :visible_in_picker)
params.require(:custom_emoji).permit(:shortcode, :image, :visible_in_picker, :aliases_raw, :license)
end

def update_params
params.require(:custom_emoji).permit(:visible_in_picker, :aliases_raw, :license)
end

def filtered_custom_emojis
Expand Down Expand Up @@ -74,7 +101,7 @@ def action_from_button
end

def form_custom_emoji_batch_params
params.require(:form_custom_emoji_batch).permit(:action, :category_id, :category_name, :aliases_raw, custom_emoji_ids: [])
params.require(:form_custom_emoji_batch).permit(:action, :category_id, :category_name, custom_emoji_ids: [])
end
end
end
Loading
Loading