1
0
forked from mirror/misskey
Commit Graph

283 Commits

Author SHA1 Message Date
Kisaragi Marine
65919a4929
変数を分離して型エラーを排除 2024-07-09 19:49:28 +09:00
Kisaragi Marine
6871868675
nullableを一旦抑止 2024-07-09 19:44:26 +09:00
Kisaragi Marine
48c541d822
型アサーションの追加 2024-07-09 19:44:05 +09:00
Kisaragi Marine
8c777feb91
castAsError 2024-07-09 19:44:00 +09:00
Kisaragi Marine
a28ca99a1b
castAsError 2024-07-09 19:43:48 +09:00
Kisaragi Marine
fb69649f79
もはや明示的な型の指定は必要ない 2024-07-09 19:34:09 +09:00
Kisaragi Marine
e4bb517f5c
assert.ok => kill nullability 2024-07-09 19:33:53 +09:00
Kisaragi Marine
c81ce80ec5
castAsError 2024-07-09 19:33:38 +09:00
Kisaragi Marine
79be8d6101
voidで値を返さない 2024-07-09 19:28:16 +09:00
Kisaragi Marine
68234085db
型アサーションの追加 2024-07-09 19:28:05 +09:00
Kisaragi Marine
0be833b4f5
型アサーションの追加 2024-07-09 19:27:21 +09:00
Kisaragi Marine
54ee8834d1
Merge remote-tracking branch 'kisaragi/refactor/kill-any/backend-test' into refactor/kill-any/backend-test
# Conflicts:
#	packages/backend/test/e2e/move.ts
#	packages/backend/test/utils.ts
2024-07-09 19:22:33 +09:00
Kisaragi Marine
7f145fdc35
型アサーションの追加 2024-07-09 19:21:56 +09:00
Kisaragi Marine
67718a5dec
castAsErrorで安全ではないキャストを隠蔽 2024-07-09 19:20:31 +09:00
Kisaragi
58ead0a570
Merge branch 'develop' into refactor/kill-any/backend-test 2024-07-09 18:02:12 +09:00
かっこかり
9ef6c4716c
fix(backend): 名前を空白文字列だけにできる問題を修正 (#14119)
* fix(backend): 名前を空白文字列だけにできる問題を修正

* Update Changelog

* fix test

* Unicodeを含める

* fix

* ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに

* Revert "ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに"

This reverts commit 6c752a69c0.

* [ci skip] changelog typo
2024-07-07 14:19:00 +09:00
woxtu
de1fe7cc5a
Use built-in API (#14095) 2024-07-02 14:47:07 +09:00
Kisaragi
eafae79869
test(backend): goodbye, Lenna (#14111) 2024-07-02 14:29:44 +09:00
syuilo
427648c4b8
update deps (#14057)
* wip

* locales/index.jsのymlファイル取得ロジックを調節

* regenerate pnpm-lock.yaml

* fix(backend): typecheck fails

* chore(deps): bump ip-cidr from 4.0.0 to 4.0.1 in /packages/backend

* chore: migrate ESLint configs to flat config (#14094)

* chore: migrate ESLint configs to flat config

* fix: update paths

* fix: frontend lint fails

* refactor(misskey-js): lint build.js

* update deps

---------

Co-authored-by: samunohito <46447427+samunohito@users.noreply.github.com>
Co-authored-by: zyoshoka <root@zyoshoka.com>
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
2024-07-02 11:38:34 +09:00
ぬるきゃっと
a6edd50a5d
chore(docker-compose): 推奨の名前にする (#14096)
* chore(docker-compose): 推奨の名前にする

5c18e329d5/spec.md (compose-file)

* yaml to yml

* fix

* fix
2024-06-28 11:16:12 +09:00
Kisaragi
03780bcd30
Merge branch 'develop' into refactor/kill-any/backend-test 2024-06-23 04:00:01 +09:00
zyoshoka
961cb6c5ee
fix(backend): fix creating reactions bugs (#13901)
* fix(backend): add fallback for empty string when creating reaction

* fix(backend): prohibit reactions to Renote

* test(backend): add some tests for `notes/reactions/create` endpoint

* Update CHANGELOG.md

* lint

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-06-22 19:49:38 +09:00
Kisaragi
ac12ab8629
fix(backend): フィードのノートのMFMはHTMLにレンダーしてから返す (#14006)
* fix(backend): フィードのノートのMFMはHTMLにレンダーしてから返す (test wip)

* chore: beforeEachを使う?

* fix: プレーンテキストにフォールバックしてMFMが含まれていないか調べる方針を実装

* fix: application/jsonだとパースされるのでその作用をキャンセル

* build: fix lint error

* docs: update CHANGELOG.md

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-06-22 12:51:02 +09:00
zyoshoka
8a9de081f1
fix(backend): fallback if sinceId is older than the oldest in cache when using FTT (#14061)
* fix(backend): fallback if `sinceId` is older than the oldest in cache when using FTT

* Update CHANGELOG.md

* chore: fix description of test
2024-06-22 12:43:03 +09:00
syuilo
811ffbf3a4 remove unused file 2024-06-21 13:18:19 +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
おさむのひと
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
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
syuilo
eaa85f5aa3 fix test 2024-05-31 13:28:11 +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
かっこかり
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
Daiki Mizukami
d2a5bb39e3
Merge pull request from GHSA-2vxv-pv3m-3wvj
* fix: normalize incoming signed activities

* Tweak style

* Update CHANGELOG.md

* Log compacted activity as well

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-05-01 16:33:58 +09:00
MeiMei
c7d7da8fc5
AP Link等は添付ファイル扱いしないようになど (#13754)
* Linkは添付ファイルではない

* CHANGELOG
2024-04-28 10:53:33 +09:00
ikasoba
20eb4bc296
Fix(backend): ActivityPubでのHTMLへのシリアライズを修正 (#13752)
* devモードでもActivityPub系エンドポイントへアクセスできるように

* ActivityPubでのHTMLのシリアライズを修正

* ハードコードしていたurlを`httpUrl`へ修正

* テストの追加
2024-04-27 20:26:55 +09:00