Kisaragi Marine
7f145fdc35
型アサーションの追加
2024-07-09 19:21:56 +09:00
Kisaragi Marine
67718a5dec
castAsErrorで安全ではないキャストを隠蔽
2024-07-09 19:20:31 +09:00
Kisaragi Marine
b3464e0cb7
Revert "何故かうまく行かないので、とりあえずXORしてみる"
...
This reverts commit 48cf32c930
.
2024-06-21 05:10:01 +09:00
Kisaragi Marine
48cf32c930
何故かうまく行かないので、とりあえずXORしてみる
2024-06-21 05:04:45 +09:00
Kisaragi Marine
e90854b031
runtime non-null assertion
2024-06-21 05:04:20 +09:00
Kisaragi Marine
70ccbaa0ca
runtime non-null assertion
2024-06-21 04:53:24 +09:00
Kisaragi Marine
9e7f22f655
split bindings for exports.ts
...
型が合わなくて文句を言ってくるので適切に分割
2024-06-21 04:48:42 +09:00
Kisaragi Marine
c884abb487
change return type of `failedApiCall` to `void`
...
戻り値がどこにも使われていない
2024-06-21 04:37:18 +09:00
Kisaragi Marine
a6db224a9f
rewrite `assert.notEqual(expr, null)` to `assert.ok(expr)`
...
こうすることでassertion type扱いになり、non-nullableになる
2024-06-21 04:31:16 +09:00
Kisaragi Marine
b99b7b5392
runtime non-null assertion to coerce
2024-06-21 04:30:28 +09:00
Kisaragi Marine
997b588847
force cast
2024-06-21 04:29:39 +09:00
Kisaragi Marine
3b2bf5ec9c
do not return value that has yielded from `await`-ing `Promise<void>`
2024-06-21 04:19:16 +09:00
Kisaragi Marine
7dfd8f0f8e
kill argument any across a few tests
2024-06-21 04:17:36 +09:00
Kisaragi Marine
dc54f9360e
kill argument any for api-visibility
2024-06-21 03:52:29 +09:00
Kisaragi Marine
30abfac7b4
kill `as any` for ApMfmService
2024-06-21 03:52:13 +09:00
Kisaragi Marine
1c5e04199e
use optional chain to kill TS2532 on timeline test
...
変更前: 該当ノートが見つからなければundefinedに対するプロパティアクセスとしてテストがクラッシュ
変更後: 該当ノートが見つからなければoptional chainがundefinedとして評価されるが、strictEqualの右辺がnon-nullableなためアサーションに失敗しテストがクラッシュ
2024-06-21 03:47:26 +09:00
Kisaragi Marine
ee465c8072
kill any on timeline test
2024-06-21 03:44:28 +09:00
Kisaragi Marine
37f6fda48f
kill any on utils:api
2024-06-21 03:44:02 +09:00
Ryu jongheon
d0ee0203e1
Fix(backend): Limit antenna/webhook/list to exact amount ( #14036 )
...
... not +1
* Update antennas/clips e2e test
2024-06-18 12:18:04 +09:00
Acid Chicken
1a82a41f92
refactor(backend): get column names from metadata ( #13943 )
...
* ci: enable
* chore: stop when generated column found
* chore: get column names from metadata
* ci: disable
2024-06-15 10:28:57 +09:00
anatawa12
220e112c83
fix rate limit check never ends ( #13994 )
2024-06-15 08:42:13 +09:00
Kisaragi
dc3629e732
feat(backend): report `Retry-After` if client hit rate limit ( #13949 )
...
* feat(backend): report `Retry-After` if client hit rate limit
* refactor(backend): fix lint error
2024-06-13 10:56:26 +09:00
syuilo
c73d739bd6
node 22 support
2024-06-13 10:40:20 +09:00
おさむのひと
61fae45390
feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする ( #13758 )
...
* feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする
* モデログに対応&エンドポイントを単一オブジェクトでのサポートに変更(API経由で大量に作るシチュエーションもないと思うので)
* fix spdx
* fix migration
* fix migration
* fix models
* add e2e webhook
* tweak
* fix modlog
* fix bugs
* add tests and fix bugs
* add tests and fix bugs
* add tests
* fix path
* regenerate locale
* 混入除去
* 混入除去
* add abuseReportResolved
* fix pnpm-lock.yaml
* add abuseReportResolved test
* fix bugs
* fix ui
* add tests
* fix CHANGELOG.md
* add tests
* add RoleService.getModeratorIds tests
* WebhookServiceをUserとSystemに分割
* fix CHANGELOG.md
* fix test
* insertOneを使う用に
* fix
* regenerate locales
* revert version
* separate webhook job queue
* fix
* 🎨
* Update QueueProcessorService.ts
---------
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-06-08 15:34:19 +09:00
Porlam Nicla
e0cf5b2402
配信停止したインスタンス一覧が見れなくなる問題を修正 ( #13945 )
...
* 配信停止したインスタンス一覧が見れなくなる問題を修正
* Update CHANGELOG.md
2024-06-07 14:46:46 +09:00
syuilo
8592716139
enhance(backend): improve sentry integration
2024-06-07 13:15:37 +09:00
taichan
00157864e9
fix(backend): チャート生成時にinstance.isSuspendedが読まれてしまう問題の修正 ( #13951 )
...
* fix(backend): use sustensionState instead of isSuspended
* Update CHANGELOG.md
2024-06-07 09:00:01 +09:00
syuilo
8f833d742f
enhance(backend): improve sentry integration
2024-06-06 11:51:31 +09:00
syuilo
d55e638a23
lint fixes
2024-06-06 11:40:11 +09:00
syuilo
a697a7f97b
enhance(backend): improve sentry integration
2024-06-06 11:38:34 +09:00
syuilo
ab69e113f4
enhance(backend): improve sentry integration
2024-06-06 11:20:54 +09:00
syuilo
65d19279a2
fix
2024-06-06 10:11:43 +09:00
syuilo
dbf9e1194b
refactor(backend): remove unused logger option
2024-06-06 10:01:50 +09:00
syuilo
d4a8c63264
enhance(backend): sentry integration for job queues
2024-06-06 09:32:04 +09:00
Acid Chicken
2b8056a852
fix(backend): use insertOne insteadof insert/findOneOrFail combination ( #13908 )
...
* fix(backend): use insertOne insteadof insert/findOneOrFail combination
* fix: typo
* fix(backend): inherit mainAlias?
* refactor(backend): use extend
* fix(backend): invalid entityTarget
* fix(backend): fake where
* chore: debug
* chore: debug
* test: log
* fix(backend): column names
* fix(backend): remove dummy from
* revert: log
* fix(backend): position
* fix(backend): automatic aliasing
* chore(backend): alias
* chore(backend): remove from
* fix(backend): type
* fix(backend): avoid pure name
* test(backend): fix type
* chore(backend): use cte
* fix(backend): avoid useless alias
* fix(backend): fix typo
* fix(backend): __disambiguation__
* fix(backend): quote
* chore(backend): t
* chore(backend): accessible
* chore(backend): concrete returning
* fix(backend): quote
* chore: log more
* chore: log metadata
* chore(backend): use raw
* fix(backend): returning column name
* fix(backend): transform
* build(backend): wanna logging
* build(backend): transform empty
* build(backend): build alias
* build(backend): restore name
* chore: return entity
* fix: test case
* test(backend): 204
* chore(backend): log sql
* chore(backend): assert user joined
* fix(backend): typo
* chore(backend): log long sql
* chore(backend): log join
* chore(backend): log join depth null
* chore(backend): joinAttributes
* chore(backend): override createJoinExpression
* chore: join log
* fix(backend): escape
* test(backend): log log
* chore(backend): join gonna success?
* chore(backend): relations
* chore(backend): undefined
* chore(backend): target
* chore(backend): remove log
* chore(backend): log chart update
* chore(backend): log columns
* chore(backend): check hasMetadata
* chore(backend): unshift id when not included
* chore(backend): missing select
* chore(backend): remove debug code
2024-06-01 11:16:44 +09:00
zyoshoka
514a65e453
perf(backend): avoid N+1 selects from `user` table when packing many entities ( #13911 )
...
* perf(backend): avoid N+1 selects from `user` table when packing many entities
* perf(backend): use `packMany` instead of mapping to `pack`
2024-05-31 15:32:42 +09:00
syuilo
97be1a53ad
Update 1717117195275-inquiryUrl.js
2024-05-31 14:59:02 +09:00
syuilo
eaa85f5aa3
fix test
2024-05-31 13:28:11 +09:00
syuilo
5b8f8e7087
fix(backend): fix backward compatibility of antenna
2024-05-31 11:24:17 +09:00
syuilo
be11fd7508
enhance: サーバーのお問い合わせ先URLを設定できるように
2024-05-31 10:12:23 +09:00
Kisaragi
cf670e8a3d
refactor(backend): avoid `as any` on CustomEmojiService.ts ( #13903 )
2024-05-29 07:12:50 +09:00
Kisaragi
e57ce4fa0f
chore(backend): rename local variable ( #13904 )
...
much -> matched
2024-05-29 07:12:20 +09:00
Kisaragi
44cafbb9f2
refactor: avoid `as any[]` on FetchInstanceMetadataService.ts ( #13905 )
...
* refactor: avoid `as any[]` on FetchInstanceMetadataService.ts
* apply suggestion
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-05-29 07:11:29 +09:00
syuilo
80f3cb96b0
feat: sentry integration ( #13897 )
...
* wip
* wip
* wip
* wip
* Update CHANGELOG.md
* Update ApiCallService.ts
* Update config.ts
2024-05-28 17:06:33 +09:00
tamaina
89b27d8587
fix(federation): InboxにきたCreate, AnnounceのobjectがBearcaps urlだった際はスキップするように ( #13610 )
...
* fix(federation): AnnounceのobjectがLike出なかったらキューにためない
Fix https://github.com/misskey-dev/misskey/issues/13552
* revert
* better reason handlings
* result
* improve announce handling
* skip bearcaps
* also announce
2024-05-28 14:36:06 +09:00
anatawa12
4579be0f54
新着ノートをサウンドで通知する機能をdeck UIに追加 ( #13867 )
...
* feat(deck-ui): implement note notification
* chore: remove notify in antenna
* docs(changelog): 新着ノートをサウンドで通知する機能をdeck UIに追加
* fix: type error in test
* lint: key order
* fix: remove notify column
* test: remove test for notify
* chore: make sound selectable
* fix: add license header
* fix: add license header again
* Unnecessary await
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
* ファイルを選択してください -> ファイルが選択されていません
* fix: i18n忘れ
* fix: i18n忘れ
* pleaseSelectFile > fileNotSelected
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-05-27 20:54:53 +09:00
anatawa12
a7a8dc4dbb
もともとセンシティブではないと連合されていたファイルがセンシティブとして連合された場合にセンシティブとしてそのファイルを扱うように ( #13879 )
...
* feat(backend): mark an file as sensitive if the file was newly federated as sensitive
* docs(changelog): もともとセンシティブではないと連合されていたファイルがセンシティブとして連合された場合にセンシティブとしてそのファイルを扱うように
* fix: change way to update federated image
* Update packages/backend/src/core/DriveService.ts
Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* update isSensitive of existing record object
---------
Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
2024-05-27 20:12:25 +09:00
かっこかり
805a11aadb
enhance(backend): プロフィールのリンク検証にtry-catchを追加 ( #13882 )
...
* enhance(backend): プロフィールのリンク検証にtry-catchを追加
* ✌️
2024-05-27 17:18:12 +09:00
かっこかり
1df8ea824e
fix(backend): `/@` にアクセスするとサーバーエラーが発生する問題を修正 ( #13884 )
2024-05-27 17:15:42 +09:00
かっこかり
3ffbf6296f
feat: 個別のお知らせにリンクで飛べるように ( #13885 )
...
* feat(announcement): 個別のお知らせにリンクで飛べるように (MisskeyIO#639)
(cherry picked from commit f6bf7f992a78e54d86a4701dbd1e4fda7ef4eb27)
* fix
Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* fix
Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* 一覧ページではお知らせpanel全体を押せるように
* お知らせバーは個別ページに飛ばすように
* Update Changelog
* spdx
* attempt to fox test
* remove unnecessary thong
* `announcement` → `announcements/show`
* リンクを押せる場所をタイトルと日付部分のみに変更
---------
Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
2024-05-27 17:15:11 +09:00