summaryrefslogtreecommitdiff
path: root/packages/backend/src/server (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: nodeinfo 2.1 (#11805)xtex2023-09-101-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: enable nodeinfo 2.1 Since 9dd06a7621d1745b30ed1c2b1d94d34143dd638e, nodeinfo 2.1 has been released. Signed-off-by: xtex <xtexchooser@duck.com> * feat: only add software.repository to nodeinfo 2.1 https://github.com/jhass/nodeinfo/commit/e54c48e171b6f6bed6fbe2b6c0bdd8d3c16f7909 Signed-off-by: xtex <xtexchooser@duck.com> * feat: add software.homepage url to nodeinfo 2.1 https://github.com/jhass/nodeinfo/commit/507822cb3c16d84dac884d878e32825ade54028d Signed-off-by: xtex <xtexchooser@duck.com> * fix: set proper Content-Type for nodeinfo Signed-off-by: xtex <xtexchooser@duck.com> * style: fix lint warnings Signed-off-by: xtex <xtexchooser@duck.com> --------- Signed-off-by: xtex <xtexchooser@duck.com>
* enhance: ↵Ebise Lutica2023-09-101-0/+3
| | | | | | | | | | | | | センシティブチャンネルはユーザーのノート一覧から除外 (#11797) * enhance: センシティブチャンネルはユーザーのノート一覧から除外 * READMEに明記 * Update notes.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* feat: passkey support (#11804)syuilo2023-09-087-248/+127
| | | https://github.com/MisskeyIO/misskey/pull/149
* fix(backend): timeout when querying mentions (#11799)Ezekiel Lee2023-09-081-0/+2
|
* feat(backend): Webhook設定でsecretを空に出来るように (#11784)Sayamame-beans2023-09-062-4/+4
| | | | | * feat(backend): allow webhook secret to be empty * Update CHANGELOG.md
* enhance(backend): タイムライン等の有効期限を設定可能にsyuilo2023-09-051-1/+2
| | | | Resolve #11773
* update deps (#11764)syuilo2023-09-045-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * node16 * wip * wip * wip * Update test-utils.ts * wip * Update tsconfig.json * wip * Update package.json * wip * Update following.vue * Update followers.vue * Update index.vue * Update share.vue * Update MkUserPopup.vue * Update MkPostForm.vue * wip * Update MkTokenGenerateWindow.vue * Update MkPagination.vue * refactor * update deps * update deps * Update sw.ts * wip * wip * wip * Update FetchInstanceMetadataService.ts * Update FetchInstanceMetadataService.ts * update node * update deps * :art:
* Respond .well-known/host-meta.json with application/json (#11777)xtex2023-09-031-1/+1
| | | | | | | | According to RFC 6415 appendix-A. The server MUST include the HTTP "Content-Type" response header field with a value of "application/json". Any other "Content-Type" value (or lack thereof) indicates that the server does not support the JRD format. "application/jrd+json" is only used by WebFinger (RFC 7033)
* feat: Refine 2fa (#11766)syuilo2023-08-283-0/+15
| | | | | | | | | | | | | * wip * Update 2fa.qrdialog.vue * Update 2fa.vue * Update CHANGELOG.md * tweak * :v:
* プロフィールにその人が作ったPlayの一覧出せるように ↵GrapeApple02023-08-214-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11445) * プロフィールにその人が作ったPlayの一覧出せるように * Update CHANGELOG.md * playの公開範囲を設定できるように * 間違えて変更してしまったのを修正 * Update packages/frontend/src/pages/flash/flash-edit.vue * Update packages/frontend/src/pages/flash/flash-edit.vue * tweak * Update packages/backend/migration/1690796169261-play-visibility.js * Update packages/backend/src/models/entities/Flash.ts * Update packages/backend/src/models/entities/Flash.ts * Update Flash.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix: antennas validation (#11469)White-Green2023-08-212-2/+5
|
* feat: Removing stack trace info in production env (#11657)MomentQYC2023-08-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Hiding stack traces in production env * sytle * style * style * add SPDX * move ./error.js to ./misc/error.js * revert: remove frontend changes * feat: Hiding stack traces in production env * feat: Hiding stack traces in production env * revert * revert * revert * change and fix * revert * fix queue endpoint test --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp> Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
* fix(backend): ↵syuilo2023-08-201-1/+3
| | | | ジョブキュー管理画面の認証を回避できる問題を修正
* chore(backend): Resolve `import/no-default-export` rule violations (#11732)woxtu2023-08-17338-669/+338
| | | | | * Disable `import/no-default-export` properly * Disable `import/no-default-export`
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-1646-211/+211
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* feat: refine announcement (#11497)syuilo2023-08-136-115/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update read-announcement.ts * wip * wip * wip * Update index.d.ts * wip * Create 1691649257651-refine-announcement.js * wip * wip * wip * wip * wip * wip * Update announcements.vue * wip * wip * Update announcements.vue * wip * Update announcements.vue * wip * Update misskey-js.api.md * Update users.ts * Create MkAnnouncementDialog.stories.impl.ts * wip * wip * Create AnnouncementService.ts
* fix: muteがapiからのuser list timeline取得で機能しない (#11480)anatawa122023-08-081-0/+4
|
* feat: sensitive channel (#11438)anatawa122023-08-052-0/+4
| | | | | | | | | | | | | | | * feat(backend): add isSensitive to Channel * feat(backend): support isSensitive in channel endpoints * feat(frontend/channel-editor): support isSensitive in create/edit channel page * feat(frontend/channel): show sensitive indicator for sensitive channels * docs(changelog): add チャンネルをセンシティブ指定できるようになりました * chore: license header for each file * chore: add isSensitive of channel to Note object
* Fix typos (#11450)woxtu2023-08-051-1/+1
|
* refactor(backend): Remove unused injections (#11462)woxtu2023-08-0552-208/+34
| | | | | * Remove unused injections * Remove unused imports
* update deps (#11409)syuilo2023-07-312-1/+5
| | | | | | | | | | | | | | | | | * update deps * Update .eslintrc.js * Update .eslintrc.js * lint * lint * Update update.ts * update deps * Update .eslintrc.js
* chore: add missing license identifiersyuilo2023-07-281-0/+5
|
* feat(backend): support OAuth 2.0 authorization (#11053)Kagami Sascha Rosylight2023-07-274-1/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): support OAuth 2.0 authorization * secureRndstr fix * nanndekowareta * nanndekowareta2 * nanndekowareta3 * unref? * refactor to not close fastify * use microformats-parser * Update OAuth2ProviderService.ts * clarify the reason behind dns lookup * refactor(backend): use @types/oauth2orize-pkce (#11350) * refactor(backend): use @types/oauth2orize-pkce * Update package.json * Update pnpm-lock.yaml --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com> --------- Co-authored-by: mtgto <hogerappa@gmail.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* chore: ↵Shun Sakai2023-07-27395-0/+1978
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* Use promises API (#11351)woxtu2023-07-271-5/+2
|
* fix: hide sensitive gallery image on OGP (#11380)Acid Chicken (硫酸鶏)2023-07-251-2/+6
|
* fix(backend): Use OFFSET instead of SKIP when using LIMIT (#11379)tamaina2023-07-258-10/+10
| | | | | * fix(backend): Use OFFSET instead of SKIP when using LIMIT * update CHANGELOG.md
* Use BullMQAdapter (#11367)hutchisr2023-07-251-2/+2
|
* enhance: Add OGP data for notes with multiple images/videos (#11142)Alex2023-07-211-10/+12
| | | | | | | | | | | | | | | | | * Add OGP data for notes with multiple images/videos * Update CHANGELOG.md * Update packages/backend/src/server/web/views/note.pug Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * Update packages/backend/src/server/web/views/note.pug Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* fix(backend): ↵syuilo2023-07-211-5/+5
| | | | antennas/notesを叩いてもアンテナの無効化が解除されないことがある問題を修正
* fix(server): ↵meron2023-07-211-0/+2
| | | | | | | アンテナ再有効の手段にアンテナ設定の更新を追加 (#11036) * fix(server): アンテナ再有効の手段にアンテナの表示とアンテナ設定の更新を追加 * 無効+Redisも空なアンテナの再有効化手段を antennas/update だけに
* chore(backend): better error message for unsupported attestation (#11333)Kagami Sascha Rosylight2023-07-211-1/+1
|
* enhance(backend): admin/emoji/addで作成した絵文字を返すようにsyuilo2023-07-201-3/+3
|
* enhance: ↵syuilo2023-07-201-0/+6
| | | | | | ユーザーにロールが期限付きでアサインされている場合、その期限をユーザーのモデレーションページで確認できるように Close #11059
* Fix auto-fixable issues (#11314)woxtu2023-07-1916-30/+30
|
* enhance(backend): add unix socket support (#11275)dogcraft2023-07-171-1/+12
| | | | | | | | | | | * unix socket support * add changelog * lint --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* feat(backend): allow disabling cache for sensitive files (#11245)Kagami Sascha Rosylight2023-07-153-2/+16
| | | | | | | | | | | | | * feat(backend): allow disabling cache for sensitive files * Update CHANGELOG.md * fix storybook * Update locales/ja-JP.yml --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor(backend): Improve UUID generation (#11286)woxtu2023-07-153-6/+6
| | | | | * Replace with `crypto.randomUUID()` * Remove uuid
* update depssyuilo2023-07-151-1/+1
|
* enhance: 招待機能の改善 (#11195)yukineko2023-07-159-29/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor(backend): 招待機能を改修 * feat(backend): 招待コードのcreate/delete/listエンドポイントを追加 * add(misskey-js): エンドポイントと型を追加 * change(backend): metaでinvite関連の情報も返すように * add(misskey-js): エンドポイントと型を追加 * add(backend): `/endpoints/invite/limit`を追加 * fix: createdByがnullableではなかったのを修正 * fix: relationが取得できていなかった問題を修正 * fix: パラメータを間違えていたのを修正 * feat(client): 招待ページを実装 * change(client): インスタンスメニューの「招待」押した場合に招待ページに飛ぶように変更 * feat: 招待コードをコピーできるように * change(backend): metaに招待コード発行に関する情報を持たせるのをやめる * feat: ロールごとに招待コードの発行上限数などを設定できるように * change(client): 招待コードをコピーしたときにダイアログを出すように * add: 招待に関する管理者用のエンドポイントを追加 * change(backend): モデレーターであれば作成者以外でも招待コードを削除できるように * change(backend): admin/invite/listはオフセットでページネーションするように * feat(client): 招待コードの管理ページを追加 * feat(client): 招待コードのリストをソートできるように * change: `admin/invite/create`のレスポンスを修正 * fix(client): 有効期限を指定できていなかった問題を修正 * refactor: 必要のない箇所を削除 * perf(backend): use limit() instead of take() * change(client): 作成ボタンを見た目を変更 * refactor: 招待コードの生成部分を共通化し、コード内に"01OI"のいずれかの文字を含まないように * fix(client): paginationの仕様が変わっていたので修正 * change(backend): expiresAtパラメータのnullを許容 * change(client): 有効期限を設けないときは日付の入力欄を非表示に * fix: 自身のポリシーよりもインスタンス側のポリシーが優先表示される問題を修正 * fix: n時間のときに「n時間間」となってしまうのを修正 * fix(backend): ポリシーが途中で変更されたときに作成可能数がマイナス表記になってしまうのを修正 * change(client): 招待コードのユーザー名が不明な理由を表示するように * update: CHANGELOG.md * lint * refactor * refactor * tweak ui * :art: * :art: * add(backend): indexを追加 * change(backend): indexの追加に伴う変更 * change(client): インスタンスメニューの「招待」の場所を変更 * add(frontend): MkInviteCode用のstorybookを追加 * Update misskey-js.api.md * fix(misskey-js): InviteのcreatedByの型が間違っていたのを修正 --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* refactor: 可読性のため一部で`Array.prototype.at`を使うように ↵okayurisotto2023-07-141-3/+3
| | | | | | | (#11274) * refactor: `Array.prototype.at`を使うように * fixup! refactor: `Array.prototype.at`を使うように
* refactor(backend): `core/activitypub` (#11247)okayurisotto2023-07-131-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eslint: `explicit-function-return-type` * eslint: `no-unnecessary-condition` * eslint: `eslint-disable-next-line` * eslint: `no-unused-vars` * eslint: `comma-dangle` * eslint: `import/order` * cleanup: unnecessary non-null assertion * cleanup: `IActivity`に`actor`は常に存在するようなので * cleanup: unnecessary `as` * cleanup: unnecessary `Promise.resolve` * cleanup * refactor: `String.prototype.match()`である必要がない部分をよりシンプルな書き方に変更 * refactor: よりよい型定義 * refactor: よりよい型定義 - `LdSignature`の`normalize`メソッドでの使われ方から、 - `data`引数の型定義を`any`から`JsonLdDocument`へ修正 - `getLoader`メソッドの返り値の型定義の一部を`any`から`RemoteDocument`へ修正 - `contextUrl`が不正な値(`null`)となっていたことが判明したため`undefined`へ修正 - `document`の型と合わせるために`CONTEXTS`の型定義の一部を`unknown`から`JsonLd`へ修正 - とりあえず`satisfies`を使用 - `document`の型と合わせるために`fetchDocument`メソッドの返り値の型定義の一部を`unknown`から`JsonLd`へ修正 - どうしようもなく`as`を使用 * refactor: 型ガードを使うことでnon-null assertionをやめた * refactor: non-null assertionをやめた `.filter()`で行っている型ガードなどの文脈から、より適しているだろうと思われる書き方に変更した。 * refactor: 型ガードを使うことで`as`をやめた * refactor: `as`をやめた * refactor: よりよい型定義 - `id`は`null`とのunionになっていたが、`null`を渡している場面はなかった - またおそらくこのメソッドは`IOrderedCollection`を返すため、そちらに合わせて`null`とのunionをやめた - `IOrderedCollection`とはまだ型に相違がある - `totalItems`をコメントや使われ方を元に`number`へ推論 * refactor: `for-of` -> `Array.prototype.map` * refactor: `delete`演算子を使わない形に
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え (#11224)okayurisotto2023-07-1129-126/+184
| | | | | * refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え * cleanup
* fix(frontend): search user with trailing space (#11184)nomad2023-07-082-0/+2
| | | | | | | | | | | * fix(frontend): search user with trailing space * fix(backend): search user with trailing space * Update search.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): use limit() instead of take()syuilo2023-07-0869-74/+74
|
* fix(backend): ↵CyberRex2023-07-081-2/+22
| | | | | | | ジョブキュー再試行時のタイミングずれによるエラーを抑制 (#11035) * fix(backend): ジョブキュー再試行時のタイミングずれによるエラーを抑制 * fix lint
* 広告の曜日を設定できるように (#10095)nenohi2023-07-083-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 曜日選択できるように * ラベル選択でもチェックが変更されるように * adを参照しないといけないかも * smallint -> integer * 異物混入だったので取りだし * タイムゾーン指定(Date2つ使うのなんか違和感 * 未テスト * これにすると出てこないかも * UIチョット変更 * UI変更 fix bug * 畳むように修正 * dayofweek->dayOfWeek * マイグレ時にnot null,default設定してるのでnullable:falseでよさそう * コメントの記載 * Update packages/backend/src/server/api/endpoints/meta.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* cleanup: trim trailing whitespace (#11136)okayurisotto2023-07-0835-75/+75
| | | | | | | | | * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* update depssyuilo2023-07-071-1/+1
|
* エスケープせずにDescriptionを出力、Update info-card.pug (#11108)EdamAme2023-07-061-1/+1
| | | | | HTMLのタグがエスケープされ、 misskey-hub.netのサーバー一覧で、iframeで読み込む際にタグがそのまま出力される状況が発生していた。 pugにおける仕様に則り、!=に変更、エスケープを行わないように。