summaryrefslogtreecommitdiff
path: root/packages/backend/src/server (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(backend): ↵Sayamame-beans2024-07-141-2/+17
| | | | | | | | | | | | | | | ユーザーのリアクション一覧でミュート/ブロックが機能していなかった問題を修正 (#14100) * fix: mute/block was not considered on users/reactions * docs(changelog): update changelog * chore: Apply suggestion from code review Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> --------- Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
* Feat: ↵Sayamame-beans2024-07-141-6/+17
| | | | | | | | | | | | | | | | | | | | | | | ユーザーのアイコン/バナーの変更可否をロールで設定可能に (#14078) * feat: implement role policy "canUpdateBioMedia" * docs(changelog): update changelog * docs(changelog): update changelog * chore: regenerate misskey-js type definitions * chore: Apply suggestion from code review Co-authored-by: anatawa12 <anatawa12@icloud.com> * chore: fix unnecessarily strict inequality check * chore: policies should be gotten only once --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* fix: ↵おさむのひと2024-07-121-90/+11
| | | | | | | | | | | | | サジェストされるユーザのリストアップ方法を見直し (#14180) * fix: サジェストされるユーザのリストアップ方法を見直し * fix comment * fix CHANGELOG.md * ノートの無いユーザ(updatedAtが無いユーザ)は含めないらしい * fix test
* fix(backend): api-docをScalarに変更 (#14152)かっこかり2024-07-092-2/+1
| | | | | * fix(backend): api-docをScalarに変更 * Update Changelog
* fix(backend): 名前を空白文字列だけにできる問題を修正 (#14119)かっこかり2024-07-071-1/+8
| | | | | | | | | | | | | | | | | | | * fix(backend): 名前を空白文字列だけにできる問題を修正 * Update Changelog * fix test * Unicodeを含める * fix * ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに * Revert "ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに" This reverts commit 6c752a69c0d3649072e7e4ed30025183bceb48f9. * [ci skip] changelog typo
* fix(frontend): ↵かっこかり2024-07-071-3/+9
| | | | サーバーサイドbootでエラー画面の描画時にDOMが初期化できていないことがあるのを修正 (#14139)
* test(backend): goodbye, Lenna (#14111)Kisaragi2024-07-021-1/+1
|
* fix(backend): fix creating reactions bugs (#13901)zyoshoka2024-06-221-0/+7
| | | | | | | | | | | | | | | | | * 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>
* refactor: api/*/update系の必須キーを最低限に (#13824)yupix2024-06-226-48/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor: clips/updateの必須キーをclipIdのみに * refactor: admin/roles/update の必須キーをroleIdのみに * feat: pages/update の必須キーをpageIdのみに * refactor: gallery/posts/update の必須キーをpostidのみに * feat: misskey-jsの型を更新 * feat: i/webhooks/updateの必須キーをwebhookIdのみに * feat: admin/ad/updateの必須キーをidのみに * feat: misskey-jsの型を更新 * chore: update CHANGELOG.md * docs: update CHANGELOG.md * fix: secretが更新できなくなる場合がある Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> * Update packages/backend/src/server/api/endpoints/gallery/posts/update.ts --------- Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): ↵Kisaragi2024-06-221-1/+5
| | | | | | | | | | | | | | | | | | | フィードのノートの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>
* refactorsyuilo2024-06-211-5/+4
|
* refactor(backend): remove unnecessary isNotNull sugarsyuilo2024-06-213-6/+3
|
* Fix(backend): Limit antenna/webhook/list to exact amount (#14036)Ryu jongheon2024-06-185-5/+5
| | | | ... not +1 * Update antennas/clips e2e test
* fix rate limit check never ends (#13994)anatawa122024-06-151-1/+1
|
* feat(backend): report `Retry-After` if client hit rate limit (#13949)Kisaragi2024-06-132-23/+40
| | | | | * feat(backend): report `Retry-After` if client hit rate limit * refactor(backend): fix lint error
* feat: ↵おさむのひと2024-06-0816-90/+874
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 通報を受けた際にメールまたは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 * :art: * Update QueueProcessorService.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* 配信停止したインスタンス一覧が見れなくなる問題を修 ↵Porlam Nicla2024-06-071-2/+2
| | | | | | | (#13945) * 配信停止したインスタンス一覧が見れなくなる問題を修正 * Update CHANGELOG.md
* enhance(backend): improve sentry integrationsyuilo2024-06-071-0/+1
|
* enhance(backend): improve sentry integrationsyuilo2024-06-061-4/+10
|
* refactor(backend): remove unused logger optionsyuilo2024-06-062-2/+2
|
* fix(backend): use insertOne insteadof insert/findOneOrFail combination (#13908)Acid Chicken2024-06-0118-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* perf(backend): avoid N+1 selects from `user` table when packing many ↵zyoshoka2024-05-317-12/+20
| | | | | | | entities (#13911) * perf(backend): avoid N+1 selects from `user` table when packing many entities * perf(backend): use `packMany` instead of mapping to `pack`
* enhance: サーバーのお問い合わせ先URLを設定できるようにsyuilo2024-05-313-6/+17
|
* feat: sentry integration (#13897)syuilo2024-05-281-25/+52
| | | | | | | | | | | | | | | * wip * wip * wip * wip * Update CHANGELOG.md * Update ApiCallService.ts * Update config.ts
* 新着ノートをサウンドで通知する機能をdeck UIに追加 (#13867)anatawa122024-05-272-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* enhance(backend): プロフィールのリンク検証にtry-catchを追加 ↵かっこかり2024-05-271-15/+21
| | | | | | | (#13882) * enhance(backend): プロフィールのリンク検証にtry-catchを追加 * :v:
* fix(backend): `/@` ↵かっこかり2024-05-271-3/+9
| | | | にアクセスするとサーバーエラーが発生する問題を修正 (#13884)
* feat: 個別のお知らせにリンクで飛べるように (#13885)かっこかり2024-05-274-7/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix(backend): `read:admin:show-user` と `read:admin:show-users` を統合 ↵かっこかり2024-05-231-1/+1
| | | | | | | | | (#13798) * fix(frontend): 同じdisplayNameの権限があるのを修正 * read:admin:show-user と read:admin:show-users を統合 * Update Changelog
* feat: suspend instance improvements (#13861)anatawa122024-05-232-3/+10
| | | | | | | | | | | | | | | | | | | | | | | * feat(backend): dead instance detection * feat(backend): suspend type detection * feat(frontend): show suspend reason on frontend * feat(backend): resume federation automatically if the server is automatically suspended * docs(changelog): 配信停止まわりの改善 * lint: fix lint errors * Update packages/frontend/src/pages/instance-info.vue * lint: fix lint error * chore: suspendedState => suspensionState --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* feat(backend): add /healthz endpoint (#13834)Acid Chicken2024-05-233-0/+59
| | | | | | | | | | | | | * feat(backend): add /healthz endpoint * feat(backend): also check meilisearch status if available * style: header * chore: no-store * chore: healthcheck.sh * style: format
* `/tags` と `/user-tags` ↵anatawa122024-05-212-1/+17
| | | | | | | | | が検索エンジンにインデックスされないように (#13847) * chore(backend): noindex for tag search pages * docs(changelog): `/tags` と `/user-tags` が検索エンジンにインデックスされないように * chore: base.pug内でフラグでコントロールするように
* fix: ↵anatawa122024-05-201-1/+3
| | | | | | | | | | | 複数idを指定する`users/show`が関係ないユーザを返すことがある問題を修正 (#13765) * fix: 複数idを指定する`users/show`が関係ないユーザを返すことがある問題を修正 * test: fix misskey js test * chore: user/showがnullを返さないように * chore: pass lambda instead of pushVisibleUser
* Exclude channel notes from featured polls (#13838)anatawa122024-05-201-0/+7
| | | | | | | | | | | * feat(backend): add `channelId` to `MiPoll` as a Denormalized field * feat(backend): option to exclude polls in channels * chore: exclude channel notes from featured polls * docs(changelog): みつけるのアンケート欄にてチャンネルのアンケートが含まれてしまう問題を修正 * fix: missing license header
* fix notification limit with exclude/include types (#13836)anatawa122024-05-201-18/+42
| | | | | | | | | | | * fix: /i/notificationsがsinceIdのみのときに正しく動かない問題 Fix #10902 again * chore: use exclusive range to fetch data * fix: フィルタによって通知が0件だった場合でもリトライするように * docs(changelog): `/i/notifications`に includeTypes`か`excludeTypes`を指定しているとき、通知が存在するのに空配列を返すことがある問題を修正
* update deps (#13624)syuilo2024-05-044-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * Update package.json * update deps * build: pass --strip-leading-paths to restore 0.2.x behavior (#13684) * :v: * :v: * pureimageの代わりに@napi-rs/canvasを使う (#13748) * pureimageの代わりに@napi-rs/canvasを使う * remove writestream * remove createtemp * wip * Update ClientServerService.ts * update pnpm to 9.x * update deps * re: update pnpm to 9.x * update node * :v: --------- Co-authored-by: anatawa12 <anatawa12@icloud.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix(backend): add detailed schema to `fetch-rss` endpoint (#13764)zyoshoka2024-04-291-2/+177
|
* fix(backend): ページのOGP URLが違うのを修正 (#13749)かっこかり2024-04-271-1/+1
| | | | | | | * fix(backend): ページのOGP URLが違うのを修正 * Update Changelog * typo
* Merge pull request from GHSA-m9qf-3pfj-2r86MeiMei2024-04-271-0/+4
| | | | | | | | | * Add Cache-Control to Bull Board * CHANGELOG --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* feat: improve emoji endpoint (#13742)Cocoa Hoto2024-04-251-3/+11
|
* 細かいミュートの処理の修正 (#13695)anatawa122024-04-1710-102/+49
| | | | | | | | | | | | | | | * fix: some replies are removed from global timeline * refactor: 各チャンネルのミュートとブロックの処理をまとめる * fix: リノートをミュートでその人のノートのリノートをミュートしていたを修正 * refactor: isPureRenotePackedを他のところでも使う * docs(changelog): CHANGELOGを更新 * test: withReplies = falseでフォローしてる人によるリプライが流れてくる * test: ノートミュートしているユーザーの通常ノートのリノートが流れてくる/含まれる
* fix(backend): ↵MeiMei2024-04-151-3/+4
| | | | | | | nginx経由で/files/にRangeリクエストされた場合に正しく応答できないのを修正 (#13712) * Fix files * CHANGELOG
* fix(backend): incorrect logic for determining whether Quote or not (#13700)zyoshoka2024-04-142-5/+5
| | | | | | | | | * fix(backend): incorrect logic for determining whether Quote or not * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): ↵かっこかり2024-04-141-1/+5
| | | | | | | | | | | | | | | | | | FileServerServiceでレンジリクエストの場合に適切なレスポンスコードが返らない問題を修正 (#13701) * return 206 for every ranged response - fixes #494 (cherry picked from commit 92eec2178fd103e9ea2bcd646aacab1fb496a33b) * detect size of remote files - fixes #494 without this, remote files are assumed to have size 0 (even if we just downloaded them!) and the range-related code won't run (cherry picked from commit 960f4fcff78a1f019c9a9377853fcd90dbfb7575) --------- Co-authored-by: dakkar <dakkar@thenautilus.net>
* fix(backend): ↵かっこかり2024-04-131-0/+10
| | | | | | | | | | | | | 登録にメール認証が必須になっている場合、登録されているメールアドレスを削除できないように (#13703) * fix(backend): 登録にメール認証が必須になっている場合、登録されているメールアドレスを削除できないように (MisskeyIO#606) (cherry picked from commit 6b7df2bd10dc28b84f525a621b66fc49bf59cac6) * Update Changelog --------- Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* refactor(general): use `Date.now()` instead of creating a new `Date` ↵zyoshoka2024-04-074-4/+4
| | | | instance (#13671)
* fix(backend): better `notes/translate` error response (#13631)zyoshoka2024-03-301-4/+9
| | | | | | | | | | | * fix(backend): better `notes/translate` error response * Update CHANGELOG.md * test(backend): perform administrative operations as `root` --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(frontend): ↵かっこかり2024-03-251-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 「今日誕生日のフォロー中ユーザー」ウィジェットが正しく動作しない問題を修正 (#12835) * (fix) タイムゾーンによっては誕生日のフォロー中ユーザーが正しく読み込まれない * 文言をわかりやすく * Update Changelog * (add) reload button * Update CHANGELOG.md * run misskey-js * fix * Revert "文言をわかりやすく" This reverts commit c5ab6419563cc70ec8ba758e800c74d3469131e3. * Update packages/frontend/src/widgets/WidgetBirthdayFollowings.vue * Update packages/frontend/src/widgets/WidgetBirthdayFollowings.vue --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): fix openAPI operationId formatsyuilo2024-03-231-1/+1
|
* fix: URLプレビューの動作改善+動作設定を可能にする (#13579)おさむのひと2024-03-213-21/+121
| | | | | | | | | | | | | | | | | | | | | | | * wip * support new version * URLプレビュー無効化時、フロント側も非表示にしてリクエストをしないようにする * fix lint * fix lint * tweak preview request error handles * fix: CHANGELOG.md * fix * fix --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>