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

CI test PR #18

Open
wants to merge 232 commits into
base: neko
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
3dae0b9
가입버튼 삭제 + 버전명 변경
laonmofu Apr 15, 2024
050aa2e
NODE_ENV 빌드 오류 수정
laonmofu Apr 15, 2024
f080536
경고문 삭제
laonmofu Apr 15, 2024
fa12976
로그인 버튼 그라데이션화
laonmofu Apr 20, 2024
2b52d2f
아이콘 교체
seojangho Apr 24, 2024
b4bdb32
버전명 변경
laonmofu Apr 24, 2024
eb483f7
버전명 재수정
laonmofu Apr 24, 2024
3022891
버전명 변경 +neko-rc
laonmofu Apr 26, 2024
46810d0
fix: compact incoming signed activities
tesaguri Apr 26, 2024
008a66d
[skip ci] Update CHANGELOG.md (prepend template)
github-actions[bot] Jul 31, 2024
6e3e7d7
Update about-misskey.vue
syuilo Aug 8, 2024
820becb
fix import
syuilo Aug 9, 2024
f244d42
ci: change prerelease channels to alpha, beta, and rc (#14376)
anatawa12 Aug 9, 2024
0d508db
fix(backend): check visibility of following/followers of remote users…
tesaguri Aug 9, 2024
f509413
fix: readAllNotifications message not working (#14374)
anatawa12 Aug 9, 2024
01a815f
fix(general): some fixes and improvements of Play visibility (#14384)
zyoshoka Aug 10, 2024
7e3dedb
fix(frontend): ページ遷移に失敗することがある問題を修正 (bump vue version) (#14380)
kakkokari-gtyih Aug 10, 2024
1532d5f
ci: skip chromatic / storybook CI for pull requests targets master (#…
anatawa12 Aug 10, 2024
cb10156
fix(frontend): iOSでacctなどがリンクとして誤検知されるのを抑制 (#14354)
kakkokari-gtyih Aug 10, 2024
93c569c
refactor
syuilo Aug 10, 2024
37c9d91
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Aug 10, 2024
046f243
fix(frontend): mCaptchaを使用していてもbotプロテクションに関する警告が消えないのを修正 (#14390)
kakkokari-gtyih Aug 11, 2024
0aaf74e
fix(backend): InstanceEntityService.packMany に me が渡っていないのを修正 (#14360)
kakkokari-gtyih Aug 11, 2024
93fc06d
fix(backend): getApTypeでエラーを投げないように (#14361)
kakkokari-gtyih Aug 11, 2024
ab7bbd4
fix(backend): ダイレクト投稿をユーザーごとのチャートから除外 (#14350)
kakkokari-gtyih Aug 11, 2024
94b8c00
docker-compose.yml, compose.ymlを追跡対象外に追加 (#14345)
t1nyb0x Aug 11, 2024
2a2bbcd
New Crowdin updates (#14341)
syuilo Aug 11, 2024
4d75786
Bump version to 2024.8.0-alpha.0
github-actions[bot] Aug 11, 2024
41936c1
chore: fix some comments (#14394)
timesince Aug 12, 2024
cd21000
enhance(backend): 凍結されたアカウントのフォローリクエストを表示しないように
syuilo Aug 14, 2024
86dd4ab
Revert "enhance(backend): 凍結されたアカウントのフォローリクエストを表示しないように"
syuilo Aug 14, 2024
b68b2ee
refactor(frontend): remove stale reload method call on `/admin/users`…
zyoshoka Aug 14, 2024
45d8857
enhance(frontend): improve usability
syuilo Aug 15, 2024
a8810af
fix(backend): リバーシの設定変更が反映されないのを修正 (#14404)
kakkokari-gtyih Aug 16, 2024
2632204
fix(frontend): correct condition to displayed as system account on mo…
zyoshoka Aug 16, 2024
6db3c50
fix(frontend): Misskeyの利用中に使用できるタイムラインの種類が変化した場合、使用できないタイムラインが表示されないよ…
kakkokari-gtyih Aug 16, 2024
748a7e8
feat: localizable dialog title for enter section title (#14401)
anatawa12 Aug 16, 2024
571566d
Update timeline.vue (fix wrong type)
kakkokari-gtyih Aug 16, 2024
d3cdc08
fix(backend): 無制限にストリーミングのチャンネルに接続できる問題を修正
syuilo Aug 17, 2024
bfaf938
update misskey-dev/eslint-plugin
syuilo Aug 17, 2024
ef950a3
suspend周りの改修 (#14409)
syuilo Aug 17, 2024
2ab5ee8
Bump version to 2024.8.0-alpha.1
github-actions[bot] Aug 17, 2024
61cc3b5
New Crowdin updates (#14393)
syuilo Aug 17, 2024
059eb6d
fix(frontend): リノートの判定が甘いのを修正 (#14396)
kakkokari-gtyih Aug 17, 2024
06684fe
fix(backend): ベースロールのポリシー変更時モデレーションログが残るように (#14418)
kakkokari-gtyih Aug 17, 2024
68ec745
Bump version to 2024.8.0-beta.2
github-actions[bot] Aug 17, 2024
383c41b
:art:
syuilo Aug 17, 2024
fd744f4
enhance(backend): ページ、ギャラリー、Playのモデレーション強化 (#13523)
zyoshoka Aug 17, 2024
9fbc1b7
enhance(backend): headタグ内にrel=alternateの指定のあるlinkタグがある場合、記述されたURLを参照し…
tai-cha Aug 17, 2024
6cdecd7
Bump version to 2024.8.0-rc.3
github-actions[bot] Aug 17, 2024
75b0315
Update timeline.vue (refactor)
kakkokari-gtyih Aug 17, 2024
c0de57c
Update about-misskey.vue
syuilo Aug 17, 2024
4e0d570
fix(frontend): 以前のpopupの呼び出し方を修正 (#14421)
kakkokari-gtyih Aug 17, 2024
0b98554
Update CHANGELOG.md
kakkokari-gtyih Aug 17, 2024
83c04c5
fix(misskey-js): eliminate any (follow-up of #13523) (#14422)
kakkokari-gtyih Aug 17, 2024
129af06
Update packages/backend/src/core/activitypub/ApRequestService.ts
kakkokari-gtyih Aug 17, 2024
bf8c42e
Fix(beckend): html content-type detection on signedGet (#14424)
tai-cha Aug 17, 2024
e790aa0
[skip ci] New Crowdin updates (#14423)
syuilo Aug 17, 2024
ba9c5c3
Remove undefined style (#14427)
woxtu Aug 17, 2024
427f4a2
Update about-misskey.vue
syuilo Aug 18, 2024
1629c0e
New Crowdin updates (#14426)
syuilo Aug 18, 2024
9b78ce8
:art:
syuilo Aug 18, 2024
3cd5f86
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Aug 18, 2024
9ce44b2
fix(backend): memory leak in memory caches (#14363)
warriordog Aug 18, 2024
b708b27
Bump version to 2024.8.0-rc.4
github-actions[bot] Aug 18, 2024
b53ee54
fix(frontend): focustrapがzindexを考慮するように (#14431)
kakkokari-gtyih Aug 18, 2024
2e8a102
Bump version to 2024.8.0-rc.5
github-actions[bot] Aug 18, 2024
f4f55ef
New translations ja-jp.yml (English) (#14432)
syuilo Aug 18, 2024
621626a
Release: 2024.8.0
github-actions[bot] Aug 18, 2024
6c5593d
[skip ci] Update CHANGELOG.md (prepend template)
github-actions[bot] Aug 18, 2024
e78110a
refactor
syuilo Aug 19, 2024
130ff36
refactor
syuilo Aug 19, 2024
59e8360
refactor
syuilo Aug 19, 2024
1b5f057
:art:
syuilo Aug 20, 2024
21a3095
fix button translation (#14444)
kakkokari-gtyih Aug 20, 2024
043ab1f
fix(backend): Fix chart generation non-matching blockedHosts (#14441)
atsu1125 Aug 20, 2024
1008fa3
better boot error screen
syuilo Aug 22, 2024
f85aa7b
fix(backend): ファイルがサイズの制限を超えてアップロードされた際にエラーを返さなかった問題を修正
syuilo Aug 23, 2024
2f009f7
add note
syuilo Aug 23, 2024
8032a4e
enhance(frontend): サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように
syuilo Aug 23, 2024
44f6216
enhance(frontend): error message i18n
syuilo Aug 24, 2024
255c8bd
fix: 投稿フォームの字数上限計算を実際の投稿内容に合わせる (#14466)
KisaragiEffective Aug 26, 2024
36dff66
refactor
syuilo Aug 27, 2024
b6fdd71
消し忘れ
syuilo Aug 27, 2024
3e85052
fix(backend): correct `app`-type notification schema (#14471)
zyoshoka Aug 29, 2024
06855f7
refactor(sw): use fully typed locales (#14470)
zyoshoka Aug 30, 2024
7fe3035
fix(backend): use `prefixItems` in `admin/queue/*-delayed` endpoint s…
zyoshoka Aug 30, 2024
3fe7e37
fix(frontend): server metrics look strange after reload (#14467)
zyoshoka Aug 30, 2024
8be624a
refactor(sw): fix type errors (#14478)
zyoshoka Aug 30, 2024
74c93fc
Update .gitignore
syuilo Sep 5, 2024
c8f49b6
chore(ci/lint): ESLintのキャッシュが保存できない問題を修正 (#14506)
taiyme Sep 6, 2024
f7398fa
enhance(frontend): アイコンデコレーション管理画面にプレビューを追加 (#14511)
kakkokari-gtyih Sep 6, 2024
cdb0566
refactor(frontend): scss deprecated 警告に対応 (#14513)
kakkokari-gtyih Sep 6, 2024
8d19bdb
fix(misskey-js): content-typeはapplication/jsonでないもののみを記録するように (#14508)
kakkokari-gtyih Sep 6, 2024
567acea
fix(frontend): instance infoページで不必要なapiリクエストが飛ぶのを抑止 (#14515)
kakkokari-gtyih Sep 6, 2024
0d0cd73
refactor(misskey-js): warnを除去 (#14520)
kakkokari-gtyih Sep 6, 2024
2cbe1d1
feat(frontend): ノート・ユーザータイムライン埋め込み (#13929)
kakkokari-gtyih Sep 9, 2024
672779a
fix(frontend-embed): 不足していたスタイル・インポートを追加 (#14531)
kakkokari-gtyih Sep 9, 2024
29e5467
release: nekoplanet 2024.8.0+neko-rc
seojangho Sep 10, 2024
f393b6b
fix(frontend/frontend-embed): インポートパス・テーマまわりなどの修正 (#14535)
kakkokari-gtyih Sep 10, 2024
05c944c
Update CHANGELOG.md (書き方を揃える)
kakkokari-gtyih Sep 10, 2024
0c2cfe3
Dev: cypressをdev containerで実行可に(e2e-dev-container) (#14526)
kanarikanaru Sep 10, 2024
837a8e1
refactor(frontend): frontend-embed/src/to-be-sharedを共通化 (#14536)
kakkokari-gtyih Sep 10, 2024
e0f54d6
fix(frontend): MkDateSeparatedListで月の違う同じ日はセパレータが出ないのを修正 (#14545)
kakkokari-gtyih Sep 15, 2024
be0906a
fix(backend): happy-domで外部HTMLをパースする際に関連リソースが読み込まれる問題を修正 (#14521)
kakkokari-gtyih Sep 15, 2024
1544ba9
refactor(frontend): 非推奨の表現を改める (#14517)
kakkokari-gtyih Sep 15, 2024
6b2072f
fix(backend/antenna): キーワードが与えられなかった場合のエラーをApiErrorとして投げる (#14491)
KisaragiEffective Sep 15, 2024
366b79e
Update CHANGELOG.md
syuilo Sep 15, 2024
07f26bc
refactor(backend): use Reflet for autobind deco (#14482)
zzau13 Sep 15, 2024
0e4b6d1
enhance(frontend): adminのファイルリストでセンシティブファイルに枠線を追加 (#14510)
kakkokari-gtyih Sep 15, 2024
887c709
chore(deps): bump body-parser from 1.20.2 to 1.20.3 in /packages/back…
dependabot[bot] Sep 15, 2024
7d7a12d
fix(deps): broken lockfile (#14556)
kakkokari-gtyih Sep 15, 2024
6bd6af4
fix(frontend): 絵文字関連のスタイルが崩れているのを修正 (#14559)
kakkokari-gtyih Sep 17, 2024
0134e6e
refactor
syuilo Sep 17, 2024
cacdf9d
refactor
syuilo Sep 17, 2024
a5e61b8
Revert "refactor"
syuilo Sep 17, 2024
daf9ae5
ScratchpadにUIインスペクターを追加 (#14565)
FineArchs Sep 17, 2024
ce95323
fix(antenna): src=list && userListId=null の場合クエリータイムアウトが発生する問題を修正 (Mi…
kakkokari-gtyih Sep 17, 2024
3bf63dd
fix(frontend): 設定変更時のリロード確認ダイアログが複数個表示されることがある問題を修正 (#14543)
kakkokari-gtyih Sep 17, 2024
ceb4640
fix(frontend): viteの一時ファイルがgitの変更に含まれないように (#14571)
kakkokari-gtyih Sep 18, 2024
4ac8aad
feat: UserWebhook/SystemWebhookのテスト送信機能を追加 (#14489)
samunohito Sep 19, 2024
f5563c8
Update CHANGELOG.md (書き方を揃える)
kakkokari-gtyih Sep 19, 2024
2d0e9e0
Bump version to 2024.9.0-alpha.0
github-actions[bot] Sep 19, 2024
8d23122
fix(frontend): run pnpm build-assets (#14585)
kakkokari-gtyih Sep 19, 2024
f585f70
Update CHANGELOG.md (埋め込み機能のドキュメントへのリンク)
kakkokari-gtyih Sep 20, 2024
0b062f1
Misskey® Reactions Buffering Technology™ (#14579)
syuilo Sep 20, 2024
f0834ca
enhance: ユーザーコンテンツのインポート操作の実行可否をロールで制御できるように (#14583)
kakkokari-gtyih Sep 20, 2024
7e9d54f
fix(frontend): ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正 (#14588)
kakkokari-gtyih Sep 20, 2024
a18a6ac
chore(deps): bump actions/setup-node from 4.0.3 to 4.0.4 (#14590)
dependabot[bot] Sep 20, 2024
2ee19ee
chore(deps-dev): bump vite in /scripts/changelog-checker (#14569)
dependabot[bot] Sep 20, 2024
d3f1b0f
Bump version to 2024.9.0-alpha.1
github-actions[bot] Sep 20, 2024
d4d15f3
fix: EmailServiceでインラインスタイルを適用するように (#14600)
1673beta Sep 21, 2024
9cd784c
ci: api.jsonの差分がない時は折りたたみを生成しないようにする (#14598)
KisaragiEffective Sep 21, 2024
85f46f8
fix(backend): `Retry-After`ヘッダーが実際には送信されなかった問題を修正 (#14597)
kakkokari-gtyih Sep 21, 2024
e9085e4
:art:
syuilo Sep 21, 2024
3d92ef1
fix rbt
syuilo Sep 21, 2024
00ccc22
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Sep 21, 2024
67a5119
Bump version to 2024.9.0-alpha.2
github-actions[bot] Sep 21, 2024
9ac4d3d
Check SPDX information properly (#14604)
woxtu Sep 21, 2024
7640866
update deps (#14594)
syuilo Sep 22, 2024
3ad5c75
:art:
syuilo Sep 22, 2024
023fa30
refactor/perf(backend): provide metadata statically (#14601)
syuilo Sep 22, 2024
891bbcf
Bump version to 2024.9.0-alpha.3
github-actions[bot] Sep 22, 2024
3df1bb2
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
8ad9f72
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
0e92cbf
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
01ec708
ffix(frontend): lint fixes for tweak control panel (#14607)
kakkokari-gtyih Sep 22, 2024
d435d04
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
6ba97a7
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
bd5f25c
fix rbt bug?
syuilo Sep 22, 2024
1d5a302
Bump version to 2024.9.0-alpha.4
github-actions[bot] Sep 22, 2024
e87cbd2
fix(frontend): lint fixe for tweak control panel (#14610)
kakkokari-gtyih Sep 22, 2024
0bbeb40
fix typo (#14609)
kakkokari-gtyih Sep 22, 2024
2762e29
:art:
syuilo Sep 22, 2024
973d836
:art:
syuilo Sep 22, 2024
0041ad3
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
736d828
refactor
syuilo Sep 22, 2024
e6e4182
enhance(frontend): tweak control panel
syuilo Sep 22, 2024
f93a575
:art:
syuilo Sep 22, 2024
76b9bc4
Bump version to 2024.9.0-alpha.5
github-actions[bot] Sep 22, 2024
2c61535
fix(misskey-js): wrong hashtag channel param type (#14611)
zyoshoka Sep 23, 2024
1ba09e1
enhance(frontend): improve forms usability
syuilo Sep 23, 2024
cd52dc7
:art:
syuilo Sep 23, 2024
2aebdb8
enhance(frontend): tweak control panel
syuilo Sep 23, 2024
3f0aaaa
perf(embed): improve embed performance (#14613)
syuilo Sep 23, 2024
733fd56
Bump version to 2024.9.0-alpha.6
github-actions[bot] Sep 23, 2024
7f7445a
refactor(misskey-games): Misskey Games系パッケージのlint修正+Lint CI整備 (#14612)
kakkokari-gtyih Sep 23, 2024
e673c14
fix(backend): happy-domを使用後にcloseするように (#14615)
kakkokari-gtyih Sep 23, 2024
0c6d1ec
refactor(frontend): popupMenuの項目作成時に三項演算子をなるべく使わないように (#14554)
kakkokari-gtyih Sep 23, 2024
cd247b9
fix(frontend): MkRangeのタッチ操作時にtooltipが複数重なって表示されないように (#14548)
kakkokari-gtyih Sep 23, 2024
6378dfb
Bump version to 2024.9.0-alpha.7
github-actions[bot] Sep 23, 2024
a37df2c
fix(frontend): weird AP delivered chart in control panel (#14481)
zyoshoka Sep 24, 2024
6898489
Fix: Continue importing from file if single emoji import fails (#14461)
winrg Sep 24, 2024
23a07c2
ci: fix syntax error (#14602)
KisaragiEffective Sep 24, 2024
98de7ca
fix(frontend): 連合一覧等のページネーションが壊れていたのを修正 (#14439)
samunohito Sep 24, 2024
3674e9b
feat: adminのファイル一覧画面で、ファイルが添付されているノートを一覧できるように (#14403)
kakkokari-gtyih Sep 24, 2024
aef1506
Playの編集画面の保存ボタン等をstickyにする など (#14429)
FineArchs Sep 24, 2024
1b2b95e
Bump version to 2024.9.0-alpha.8
github-actions[bot] Sep 24, 2024
4be307f
refactor
syuilo Sep 24, 2024
9612195
enhance(frontend): tweak control panel
syuilo Sep 24, 2024
6ee55e1
Update CONTRIBUTING.md
syuilo Sep 24, 2024
423bfc8
:art:
syuilo Sep 24, 2024
ca967e8
:art:
syuilo Sep 24, 2024
1d8bfe4
:art:
syuilo Sep 24, 2024
6a1a2be
fix(backend): RBTの修正 (#14621)
kakkokari-gtyih Sep 24, 2024
7045547
Bump version to 2024.9.0-alpha.9
github-actions[bot] Sep 24, 2024
c9819ba
fix(frontend-embed): #14613 で抜け落ちた処理を戻す (#14623)
kakkokari-gtyih Sep 24, 2024
1679a40
:art:
syuilo Sep 24, 2024
9d3a331
:art:
syuilo Sep 24, 2024
c88957c
:art:
syuilo Sep 25, 2024
53682f5
:art:
syuilo Sep 25, 2024
dd124a8
Fix: `<link rel="alternate">`を追って照会するのはOKレスポンスが返却された場合のみに (#14627)
kakkokari-gtyih Sep 25, 2024
4b3ecd4
New Crowdin updates (#14434)
syuilo Sep 25, 2024
8890a7a
Bump version to 2024.9.0-alpha.10
github-actions[bot] Sep 25, 2024
244bcaf
fix(docs): RBTの表記ゆれを訂正 (#14628)
kakkokari-gtyih Sep 25, 2024
5c94b4c
:art:
syuilo Sep 25, 2024
5c62cbc
tweak style
syuilo Sep 25, 2024
8c3be57
fix(frontend-embed): URLエンコードされた文字列が正常に読み込めない問題を修正 (#14630)
kakkokari-gtyih Sep 25, 2024
0f8b15f
fix(frontend-embed): fix instanceticker, remove directives (#14631)
kakkokari-gtyih Sep 25, 2024
f2385a8
fix(misskey-js): correct `noteUpdated` event type (#14632)
zyoshoka Sep 25, 2024
aee9848
fix(backend): embedの動作に必要な値を復活させる (#14633)
kakkokari-gtyih Sep 25, 2024
fde94f6
Update about-misskey.vue
syuilo Sep 25, 2024
d8dd168
Add Sign in with passkey Button (#14577)
yunochi Sep 25, 2024
4c76ea1
Update CHANGELOG.md
syuilo Sep 25, 2024
7134d24
perf(backend): Defer instance metadata update (#14558)
KOBA789 Sep 26, 2024
31988db
:art:
syuilo Sep 26, 2024
89841e4
enhance(frontend): 絵文字ピッカーをドロワー表示するか自由に設定可能に
syuilo Sep 26, 2024
d8a2eeb
feat: エクスポート完了時に通知を発行するように (#14484)
kakkokari-gtyih Sep 26, 2024
b83a2f3
test(backend): Add test for Passkey API (#14635)
yunochi Sep 27, 2024
27a256b
show shown (#14639)
FineArchs Sep 27, 2024
e4d4cc5
:art:
syuilo Sep 28, 2024
28e9d4e
feat: フォローされた際のメッセージを設定できるようにする (#14430)
syuilo Sep 28, 2024
6fdb2b1
update deps
syuilo Sep 28, 2024
25670b5
Mk:C:containerのborderStyleとborderRadiusを設定できるように (#14638)
FineArchs Sep 28, 2024
ca022b9
Bump version to 2024.9.0-alpha.11
github-actions[bot] Sep 28, 2024
9e91980
enhance(backend): add user.score for moderation purpose
syuilo Sep 28, 2024
f49d792
:art:
syuilo Sep 28, 2024
3f3c59e
:art:
syuilo Sep 28, 2024
e5856c6
:art:
syuilo Sep 28, 2024
6964b91
Update ja-JP.yml
syuilo Sep 28, 2024
afbba1f
Update WebhookTestService.ts
syuilo Sep 28, 2024
c3b0e1a
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Sep 28, 2024
f0d0cd2
wip (#14643)
syuilo Sep 28, 2024
57effa9
Bump version to 2024.9.0-alpha.12
github-actions[bot] Sep 28, 2024
15f2e14
tweak MkCondensedLine
syuilo Sep 29, 2024
088707c
enhance(frontend): cwでも絵文字メニューを開けるように (#14647)
kakkokari-gtyih Sep 29, 2024
0871156
New Crowdin updates (#14629)
syuilo Sep 29, 2024
1184436
fix(backend): update and re-enable Bull Dashboard (#14648)
zyoshoka Sep 29, 2024
2ea4970
Bump version to 2024.9.0-alpha.13
github-actions[bot] Sep 29, 2024
d6e1f02
Bump version to 2024.9.0-beta.14
github-actions[bot] Sep 29, 2024
781e64a
Release: 2024.9.0
github-actions[bot] Sep 29, 2024
3411871
Merge commit '781e64aa7f36ad3cd9990489cd4a0b2525655159' into ci-test-…
seojangho Sep 29, 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
Prev Previous commit
Next Next commit
feat: UserWebhook/SystemWebhookのテスト送信機能を追加 (misskey-dev#14489)
* feat: UserWebhook/SystemWebhookのテスト送信機能を追加

* fix CHANGELOG.md

* 一部設定をパラメータから上書き出来るように修正

* remove async

* regenerate autogen
samunohito authored Sep 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4ac8aad50a1a1ef2ac2a13a04baca445294397ed
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Unreleased

### General
-
- UserWebhookとSystemWebhookのテスト送信機能を追加 ( #14445 )

### Client
- Feat: ノート単体・ユーザーのノート・クリップのノートの埋め込み機能
4 changes: 4 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
@@ -9477,6 +9477,10 @@ export interface Locale extends ILocale {
* Webhookを削除しますか?
*/
"deleteConfirm": string;
/**
* スイッチの右にあるボタンをクリックするとダミーのデータを使用したテスト用Webhookを送信できます。
*/
"testRemarks": string;
};
"_abuseReport": {
"_notificationRecipient": {
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
@@ -2514,6 +2514,7 @@ _webhookSettings:
abuseReportResolved: "ユーザーからの通報を処理したとき"
userCreated: "ユーザーが作成されたとき"
deleteConfirm: "Webhookを削除しますか?"
testRemarks: "スイッチの右にあるボタンをクリックするとダミーのデータを使用したテスト用Webhookを送信できます。"

_abuseReport:
_notificationRecipient:
6 changes: 6 additions & 0 deletions packages/backend/src/core/CoreModule.ts
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import {
import { AbuseReportNotificationService } from '@/core/AbuseReportNotificationService.js';
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
import { UserSearchService } from '@/core/UserSearchService.js';
import { WebhookTestService } from '@/core/WebhookTestService.js';
import { AccountMoveService } from './AccountMoveService.js';
import { AccountUpdateService } from './AccountUpdateService.js';
import { AiService } from './AiService.js';
@@ -211,6 +212,7 @@ const $UserAuthService: Provider = { provide: 'UserAuthService', useExisting: Us
const $VideoProcessingService: Provider = { provide: 'VideoProcessingService', useExisting: VideoProcessingService };
const $UserWebhookService: Provider = { provide: 'UserWebhookService', useExisting: UserWebhookService };
const $SystemWebhookService: Provider = { provide: 'SystemWebhookService', useExisting: SystemWebhookService };
const $WebhookTestService: Provider = { provide: 'WebhookTestService', useExisting: WebhookTestService };
const $UtilityService: Provider = { provide: 'UtilityService', useExisting: UtilityService };
const $FileInfoService: Provider = { provide: 'FileInfoService', useExisting: FileInfoService };
const $SearchService: Provider = { provide: 'SearchService', useExisting: SearchService };
@@ -359,6 +361,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
VideoProcessingService,
UserWebhookService,
SystemWebhookService,
WebhookTestService,
UtilityService,
FileInfoService,
SearchService,
@@ -503,6 +506,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$VideoProcessingService,
$UserWebhookService,
$SystemWebhookService,
$WebhookTestService,
$UtilityService,
$FileInfoService,
$SearchService,
@@ -648,6 +652,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
VideoProcessingService,
UserWebhookService,
SystemWebhookService,
WebhookTestService,
UtilityService,
FileInfoService,
SearchService,
@@ -791,6 +796,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$VideoProcessingService,
$UserWebhookService,
$SystemWebhookService,
$WebhookTestService,
$UtilityService,
$FileInfoService,
$SearchService,
22 changes: 16 additions & 6 deletions packages/backend/src/core/QueueService.ts
Original file line number Diff line number Diff line change
@@ -452,10 +452,15 @@ export class QueueService {

/**
* @see UserWebhookDeliverJobData
* @see WebhookDeliverProcessorService
* @see UserWebhookDeliverProcessorService
*/
@bindThis
public userWebhookDeliver(webhook: MiWebhook, type: typeof webhookEventTypes[number], content: unknown) {
public userWebhookDeliver(
webhook: MiWebhook,
type: typeof webhookEventTypes[number],
content: unknown,
opts?: { attempts?: number },
) {
const data: UserWebhookDeliverJobData = {
type,
content,
@@ -468,7 +473,7 @@ export class QueueService {
};

return this.userWebhookDeliverQueue.add(webhook.id, data, {
attempts: 4,
attempts: opts?.attempts ?? 4,
backoff: {
type: 'custom',
},
@@ -479,10 +484,15 @@ export class QueueService {

/**
* @see SystemWebhookDeliverJobData
* @see WebhookDeliverProcessorService
* @see SystemWebhookDeliverProcessorService
*/
@bindThis
public systemWebhookDeliver(webhook: MiSystemWebhook, type: SystemWebhookEventType, content: unknown) {
public systemWebhookDeliver(
webhook: MiSystemWebhook,
type: SystemWebhookEventType,
content: unknown,
opts?: { attempts?: number },
) {
const data: SystemWebhookDeliverJobData = {
type,
content,
@@ -494,7 +504,7 @@ export class QueueService {
};

return this.systemWebhookDeliverQueue.add(webhook.id, data, {
attempts: 4,
attempts: opts?.attempts ?? 4,
backoff: {
type: 'custom',
},
13 changes: 9 additions & 4 deletions packages/backend/src/core/SystemWebhookService.ts
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ export class SystemWebhookService implements OnApplicationShutdown {
* SystemWebhook の一覧を取得する.
*/
@bindThis
public async fetchSystemWebhooks(params?: {
public fetchSystemWebhooks(params?: {
ids?: MiSystemWebhook['id'][];
isActive?: MiSystemWebhook['isActive'];
on?: MiSystemWebhook['on'];
@@ -165,19 +165,24 @@ export class SystemWebhookService implements OnApplicationShutdown {
/**
* SystemWebhook をWebhook配送キューに追加する
* @see QueueService.systemWebhookDeliver
* // TODO: contentの型を厳格化する
*/
@bindThis
public async enqueueSystemWebhook(webhook: MiSystemWebhook | MiSystemWebhook['id'], type: SystemWebhookEventType, content: unknown) {
public async enqueueSystemWebhook<T extends SystemWebhookEventType>(
webhook: MiSystemWebhook | MiSystemWebhook['id'],
type: T,
content: unknown,
) {
const webhookEntity = typeof webhook === 'string'
? (await this.fetchActiveSystemWebhooks()).find(a => a.id === webhook)
: webhook;
if (!webhookEntity || !webhookEntity.isActive) {
this.logger.info(`Webhook is not active or not found : ${webhook}`);
this.logger.info(`SystemWebhook is not active or not found : ${webhook}`);
return;
}

if (!webhookEntity.on.includes(type)) {
this.logger.info(`Webhook ${webhookEntity.id} is not listening to ${type}`);
this.logger.info(`SystemWebhook ${webhookEntity.id} is not listening to ${type}`);
return;
}

29 changes: 27 additions & 2 deletions packages/backend/src/core/UserWebhookService.ts
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@

import { Inject, Injectable } from '@nestjs/common';
import * as Redis from 'ioredis';
import type { WebhooksRepository } from '@/models/_.js';
import type { MiWebhook } from '@/models/Webhook.js';
import { type WebhooksRepository } from '@/models/_.js';
import { MiWebhook } from '@/models/Webhook.js';
import { DI } from '@/di-symbols.js';
import { bindThis } from '@/decorators.js';
import { GlobalEvents } from '@/core/GlobalEventService.js';
@@ -38,6 +38,31 @@ export class UserWebhookService implements OnApplicationShutdown {
return this.activeWebhooks;
}

/**
* UserWebhook の一覧を取得する.
*/
@bindThis
public fetchWebhooks(params?: {
ids?: MiWebhook['id'][];
isActive?: MiWebhook['active'];
on?: MiWebhook['on'];
}): Promise<MiWebhook[]> {
const query = this.webhooksRepository.createQueryBuilder('webhook');
if (params) {
if (params.ids && params.ids.length > 0) {
query.andWhere('webhook.id IN (:...ids)', { ids: params.ids });
}
if (params.isActive !== undefined) {
query.andWhere('webhook.active = :isActive', { isActive: params.isActive });
}
if (params.on && params.on.length > 0) {
query.andWhere(':on <@ webhook.on', { on: params.on });
}
}

return query.getMany();
}

@bindThis
private async onMessage(_: string, data: string): Promise<void> {
const obj = JSON.parse(data);
Loading