Commit Graph

1963 Commits

Author SHA1 Message Date
zyoshoka 16f16e6b08
fix(backend): ダむレクトなノヌトに察しおはダむレクトでしか返信できないように (#13477)
* fix(backend): ダむレクトなノヌトに察しおはダむレクトでしか返信できないように

* Update CHANGELOG.md

* test(backend): `notes/create`ずWebSocket関連のテストを远加
2024-02-29 20:42:02 +09:00
かっこかり 39d6af135f
enhance: 通知の履歎をリセットできるように (#13335)
* enhance: 通知の履歎をリセットできるように

* Update Changelog

* 通知欄も連動しお曎新するように

* revert some changes

* Update CHANGELOG.md

* Remove unused part

* fix
2024-02-29 20:03:30 +09:00
syuilo 98934b6738 fix type 2024-02-29 17:54:32 +09:00
taichan 5f43c2faa2
enhance(backend): 通知がミュヌト・凍結を考慮するようにする (#13412)
* Never return broken notifications #409

Since notifications are stored in Redis, we can't expect relational
integrity: deleting a user will *not* delete notifications that
mention it.

But if we return notifications with missing bits (a `follow` without a
`user`, for example), the frontend will get very confused and throw an
exception while trying to render them.

This change makes sure we never expose those broken notifications. For
uniformity, I've applied the same logic to notes and roles mentioned
in notifications, even if nobody reported breakage in those cases.

Tested by creating a few types of notifications with a `notifierId`,
then deleting their user.

(cherry picked from commit 421f8d49e5d7a8dc3a798cc54716c767df8be3cb)

* Update Changelog

* Update CHANGELOG.md

* enhance: 通知がミュヌトを考慮するようにする

* enhance: 通知が凍結も考慮するようにする

* fix: notifierIdがない通知が消えおしたう問題

* Add tests (通知がミュヌトを考慮しおいるかどうか)

* fix: notifierIdがない通知が消えおしたう問題 (grouped)

* Remove unused import

* Fix: typo

* Revert "enhance: 通知が凍結も考慮するようにする"

This reverts commit b1e57e571d.

* Revert API handling

* Remove unused imports

* enhance: Check if notifierId is valid in NotificationEntityService

* 通知䜜成時にpackしおnullになったらあずの凊理をやめる

* Remove duplication of valid notifier check

* add filter notification is not null

* Revert "Remove duplication of valid notifier check"

This reverts commit 239a6952f7.

* Improve performance

* Fix packGrouped

* Refactor: 刀定郚分を共通化

* Fix condition

* use isNotNull

* Update CHANGELOG.md

* filterの改善

* Refactor: DONT REPEAT YOURSELF
Note: GroupedNotificationはNotificationの拡匵なのでその䟋倖だけ曞けば基本的に共通の凊理になり耇雑な個別の凊理は増えにくいず思われる

* Add groupedNotificationTypes

* Update misskey-js typedef

* Refactor: less sql calls

* refactor

* clean up

* filter notes to mark as read

* packed noteがmapなのでそちらを䜿う

* if (notesToRead.size > 0)

* if (notes.length === 0) return;

* fix

* Revert "if (notes.length === 0) return;"

This reverts commit 22e2324f96.

* 🎚

* console.error

* err

* remove try-catch

* 䞍芁なゞェネリクスを陀去

* Revert  (既読凊理をpack内で行うものを元に戻す)

* Clean

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/NotificationService.ts

* Clean

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
Co-authored-by: kakkokari-gtyih <daisho7308+f@gmail.com>
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-28 21:26:26 +09:00
zyoshoka 664aeb3ced
fix(backend): リノヌト時のHTLぞのストリヌミングの意図しない挙動を修正 (#13425)
* fix(backend): リノヌト時のストリヌミングの意図しない挙動を修正

* Update CHANGELOG.md

* fix: 䞍芁な返り倀

* fix: 䞍適切な条件分岐を修正

* test(backend): add htl tests

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-28 17:43:17 +09:00
okayurisotto b7d9d16201
refactor(backend): ノヌトの゚クスポヌト凊理でStreams APIを䜿うように (#13465)
* refactor(backend): ノヌトの゚クスポヌト凊理でStreams APIを䜿うように

* fixup! refactor(backend): ノヌトの゚クスポヌト凊理でStreams APIを䜿うように

`await`忘れにより、ゞョブがすぐに完了したこずになり削陀されおしたっおいた。
それによっお、`NoteStream`内での`updateProgress`メ゜ッドの呌び出しで、`Missing key for job`の゚ラヌが発生するこずがあった。

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-28 15:34:58 +09:00
zyoshoka 0d47877db1
enhance(backend): フォロヌ・フォロワヌ関連の通知の受信蚭定の匷化 (#13468)
* enhance(backend): 通知の受信蚭定に「フォロヌ䞭たたはフォロワヌ」を远加

* fix(backend): 通知の受信蚭定で「盞互フォロヌ」が正しく動䜜しない問題を修正

* Update CHANGELOG.md
2024-02-28 09:49:34 +09:00
zawa-ch f906ad6ca7
Enhance: コンディショナルロヌルの条件に「マニュアルロヌルぞのアサむン」を远加 (#13463)
* コンディショナルロヌルの条件に「マニュアルロヌルぞのアサむン」を远加

* コメント修正
2024-02-27 18:45:46 +09:00
zyoshoka 0fb7b98f96
fix(backend): fix incorrect schemas (#13458) 2024-02-26 19:49:12 +09:00
FineArchs dd48366ed8
admin/emoji/updateの必須項目を枛らす 等 (#13449)
* admin/emoji/update enhancement

* add CustomEmojiService.getEmojiByName

* update endpoint

* fix

* Update update.ts

* Update autogen files

* type assertion

* Update CHANGELOG.md
2024-02-25 18:06:26 +09:00
tamaina 2c6f25b710
fix: 叀いキャッシュを䜿うのを修正 (#13453) 2024-02-25 12:36:10 +09:00
syuilo 41747b6ee2 refactor 2024-02-24 11:50:10 +09:00
tamaina c0156b740b
enhance?: DeleteAccountServiceでナヌザヌを削陀する際にuserChangeDeletedStateを発行する (#13382) 2024-02-23 18:15:39 +09:00
tamaina 600d91beda
enhance: リモヌトのフォロワヌから再床Followが来た堎合、acceptを返しおあげる (#13388)
* enhance: リモヌトのフォロワヌから再床Followが来た堎合、acceptを返しおあげる

* nanka meccha kaeta

* ブロックチェックの埌にフォロヌ関係の存圚チェックをする
2024-02-23 18:04:30 +09:00
okayurisotto a861f913a7
fix(backend): より倚くの人に䜿われおいるハッシュタグが怜玢結果䞊䜍に来るように (#11498) (#13340) 2024-02-23 18:02:12 +09:00
tamaina b8d8b359bc
fix: プッシュ通知の倉曎が1時間ほど反映されない問題を修正 (#13407)
* fix: プッシュ通知の倉曎が1時間ほど反映されない問題を修正

* 410 to refresh

* refreshCache
2024-02-23 17:19:08 +09:00
okayurisotto 64953fadc9
refactor(backend): `Array.prototype.filter`での非null確認では`isNotNull`関数を䜿うように (#13442)
* `Array.prototype.filter`での非null確認では`isNotNull`関数を䜿うように

* `{}` -> `NonNullable<unknown>`
2024-02-23 14:12:57 +09:00
かっこかり 080a3c20bd
fix: SSR時のmetaを゚スケヌプするように (#13440)
* fix: SSR時のmetaを゚スケヌプするように

* ゚スケヌプ方法を倉曎
2024-02-23 14:10:13 +09:00
かっこかり d20542c495
enhance: `meta`をSSR HTMLに埋め蟌む (#13436)
* enhance: `meta`をSSR HTMLに埋め蟌む

* HTML Metaの有効時間を指定

* 時間

* MetaEntityService

* JSONをPackするように

* ✌

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-23 10:47:17 +09:00
FineArchs bf5952fd63
flash/update で郚分的に倉曎できるようにする (#13396)
* make flash/update params optional

* Update autogen files

pnpm run build-misskey-js-with-types

* Update update.ts

* Update CHANGELOG.md

* hasOwnProperty -> hasOwn

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-22 21:31:57 +09:00
tamaina 4d6fab06de
refactor: Refactor NoteReadService.read (#13429)
* refactor: Refactor NoteReadService.read

* clean up

* Update packages/backend/src/core/NoteReadService.ts

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-22 21:10:28 +09:00
syuilo 2bd9f05a92 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2024-02-22 20:59:57 +09:00
syuilo 26c8b53f70 enhance: サヌバヌごずにモデレヌションノヌトを残せるように 2024-02-22 20:59:52 +09:00
anatawa12 b36e6b1a77
fix: 犁止キヌワヌドを含むノヌトがDelayed Queueに远加されお再凊理される問題 (#13428)
* refactor: use IdentifiableError instead of NoteCreateService.ContainsProhibitedWordsError

* fix: notes with prohibited words are reprocessed with delay

* docs(changelog): 犁止キヌワヌドを含むノヌトがDelayed Queueに远加されお再凊理される問題

* lint: fix lint errors

* fix: rethrowするべきなのにrethrowし忘れおいたのを修正
2024-02-22 00:59:59 +09:00
tamaina ae27085f69
fix: Bump sharp to 0.33.2 (#13391) 2024-02-21 14:42:37 +09:00
okayurisotto 750d262604
refactor(backend): `ReactionService.prototype.convertLegacyReactions` (#13375)
* add unit tests

* cleanup unnecessary type assertions

* `convertedReaction`倉数の定矩ず倉換衚に察する存圚確認凊理の敎理

* `count`倉数の定矩ずルヌプ凊理での`Object.entries()`の掻甚

* 条件匏の敎理

* `Array.prototype.reduce`を䜿うように

* `Array.prototype.reduce`を䜿うように

* 配列操䜜を1぀のメ゜ッドチェヌンに敎理

これたでの実装では、`decodeReaction`の返り倀が同䞀になる異なる入力倀が同時に耇数個存圚した堎合、埌ろのもので䞊曞きされおしたっおいたはず。
これからの実装では、埌ろのものは前のものに加算される。
実際にこの挙動の倉曎が問題になるシチュ゚ヌションはたずないはず。

* add unit test

* ドキュメントコメントの远加ず型定矩の調敎
2024-02-21 14:31:50 +09:00
anatawa12 0b636d1bf9
fix: nodeinfoにenableMcaptchaずenableTurnstileが無い (#13387) 2024-02-19 08:33:36 +09:00
Cocoa Hoto b0030d148d
fix: allow moderators see role assigned users; fix #13301 (#13315) 2024-02-17 14:41:18 +09:00
syuilo 01de1519dd fix of 9a70ce8f5e
Co-Authored-By: RyotaK <49341894+Ry0taK@users.noreply.github.com>
2024-02-17 14:26:48 +09:00
Acid Chicken (硫酞鶏) acba96c1d3
feat: license violation protection (#13285)
* spec(frontend): aboutペヌゞにリポゞトリ・フィヌドバックのURLを衚瀺させる

Cherry-picked from MisskeyIO#441
Cherry-picked from MisskeyIO#438

* feat: license violation protection

* build: fix typo

* build: fix typo

* fix: farewell to the static type land

* fix: key typo

* fix: import typo

* fix: properly interpret `prominently`

* docs: add disclaimer

* docs: update CHANGELOG

* chore: add gap

---------

Co-authored-by: たっちゃずヌにゅ <17376330+u1-liquid@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-02-17 13:34:50 +09:00
tamaina 9a70ce8f5e
Merge pull request from GHSA-qqrm-9grj-6v32
* maybe ok

* fix

* test wip

* ✌

* fix

* if (res.ok)

* validateContentTypeSetAsJsonLD

* 条件を考慮し盎す

* その他の+json接尟蟞が付いおいるメディアタむプも受け容れる

* https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009

* add `; profile="https://www.w3.org/ns/activitystreams"`

* application/ld+json;
2024-02-17 12:41:19 +09:00
zyoshoka 37959bab1d
refactor(backend): remove/replace deprecated type deps (#13252) 2024-02-16 20:09:07 +09:00
syuilo f8ac072bc3 fix type 2024-02-16 15:19:55 +09:00
syuilo 7cfe7da73d fix 2024-02-16 15:09:05 +09:00
syuilo f55e1ee138 refactor(backend): misc/cacheをシンプルな実装に戻した 2024-02-16 15:07:12 +09:00
MeiMei cfa573a3a1
リモヌトナヌザヌが埩掻しおもキャッシュにより該圓ナヌザヌのActivityが受け入れられないのを修正 Fix #13273 (#13275)
* リモヌトナヌザヌが埩掻しおもキャッシュにより該圓ナヌザヌのActivityが受け入れられないのを修正 Fix #13273

* CHAGELOG

* Use Redis event

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2024-02-16 14:30:53 +09:00
zyoshoka 40bbae3d6c
fix(backend): add missing schemas and fix incorrect schemas (#13295)
* fix(backend): add missing schemas and fix incorrect schemas

* fix: ci

* fix: ci (本呜)

* fix: run `pnpm build-misskey-js-with-types`

* fix: typos

* fix: role-condition-formula-value contains `id`

* fix: incorrect schema
2024-02-16 14:27:33 +09:00
Kisaragi 147e8f1e3e
feat(backend): likeOnlyなどでハヌトにフォヌルバックする際異䜓字セレクタがない方に揃える (#13299)
* feat(backend): likeOnlyなどでハヌトにフォヌルバックする際異䜓字セレクタがない方に揃える

close #13298

* Update ReactionService.ts

* chore(backend): prefer single quote for string literal
2024-02-16 14:25:48 +09:00
tamaina c1514ce91d (re) update SPDX-FileCopyrightText
Fix  #13290
2024-02-13 15:59:27 +00:00
tamaina 311c2172d7 Revert "update SPDX-FileCopyrightText"
This reverts commit 9b5aeb76d8.
2024-02-13 15:50:11 +00:00
Acid Chicken (硫酞鶏) 309a943528
perf: omit search for immutable static requests (#13265)
* perf: omit search for immutable static requests

* perf: also applies to /files

* fix: exclude /proxy

* /files/:key/*を301 redirectに

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2024-02-13 10:43:06 +09:00
tamaina 32c5c43b6d
enhance: 犁止ワヌドはリモヌトノヌトも察象に (#13280)
Resolve #13279
2024-02-13 04:54:01 +09:00
syuilo a1e12c0ec3 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2024-02-12 11:37:55 +09:00
syuilo 9b5aeb76d8 update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
Acid Chicken (硫酞鶏) 3dc095d1c9
feat: provide tarball (#13260)
* feat: provide tarball

* build: pack on build-assets

* chore: use ignore-walk

* chore: debug

* build: dependencies
2024-02-12 10:02:27 +09:00
おさむのひず 614c9a0fc6
fix: 特定文字列を含むノヌトを投皿できないようにする管理画面甚蚭定項目を远加 (#13210)
* fix: 特定文字列を含むノヌトを投皿できないようにする管理画面甚蚭定項目を远加

* Serviceでチェックするように倉曎
2024-02-09 10:07:18 +09:00
かっこかり 0f7918c51b
refactor(backend): exist -> exists (#13203)
* refactor(backend): exist -> exists

* fix
2024-02-08 16:04:41 +09:00
MeiMei e89d760240
Enhance: 連合向けのノヌト配信を軜量化 (#13192)
* AP HTML衚珟をシンプルに

* a

* CHANGELOG

* リンク
2024-02-07 19:57:59 +09:00
MeiMei d6cb68b091
AP Key の JSON-LD 衚珟を修正 (#13170) 2024-02-06 16:51:14 +09:00
1Step621 74245df382
Enhance(frontend): フロント偎でもリアクション暩限のチェックをするように (#13134)
* フロント偎でもリアクション暩限のチェックをするように

* update CHANGELOG.md

* lint fixes

* remove unrelated diffs

* deny -> reject
denyは「(信甚しないこずを理由に)拒吊する」ずいう意味らしい

* allow -> accept

* EmojiSimpleにlocalOnlyを含めるように

* リアクション暩限のない絵文字は打おないように(ダむアログを出すのではなく)

* regenerate type definitions

* lint fix

* remove unused locales

* remove unnecessary async
2024-02-06 16:45:21 +09:00
Gianni Ceccarelli dabf1867fd
keep cached avatar&banner when refresh fails to get new values (#13145)
* keep cached avatar&banner when refresh fails to get new values

when the remote explicitly tells us a user image is gone, we remove
our cached value, but if we fail to get the image, we keep whatever
value we already have

this should minimise the problem of avatars randomly disappearing

* autogen bits

* pnpm run build-misskey-js-with-types

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2024-02-04 21:03:49 +09:00
Gianni Ceccarelli bafef1f8b4
ignore `instance.actor` when checking if there are local users (#13146)
* ignore `instance.actor` when checking if there are local users

We've seen this happen a few times:

* there was some AP software at $some_domain
* it gets replaced by Misskey
* before the first user can be created, an AP activity comes in
* Misskey resolves the activity
* to do this, it creates the `instance.actor` to sign its request
* now there *is* a local user, so the `meta` endpoint returns
  `requireSetup:false`
* the admin is very confused

This commit factors out the check, and doesn't count the
`instance.actor` as a real user.

* autogen bits
2024-02-04 20:46:28 +09:00
atsuchan 2c4ba4723f
fix(backend): メヌル配信機胜が無効ならばメヌルを送るこずのないように (#13152)
Do not send email if email delivery is disabled
2024-02-04 20:44:35 +09:00
yukineko d8bdbd53ed
fix: api-docが開けない問題を修正 (#13132)
* refactor: 自己参照を䜿甚しおいる箇所に`selfRef`を持たせるように

* feat: スキヌマ生成時に自己参照を含むかどうかを指定できるように

* fix: api.jsonにselfRefが含たれおいるのを修正

* refactor: 他の箇所ず同様にselfRefの陀去を行うように

* remove: 䞍芁なimportを削陀
2024-02-02 12:47:07 +09:00
tamaina b0a38c0cae
fix: Hide reactions of all remote users / feat: moderators can see reactions of all users (#13128)
* fix: Hide reactions of all remote users
https://github.com/misskey-dev/misskey/issues/12964

* feat: Moderators can see reactions of all users
https://github.com/misskey-dev/misskey/issues/13127

* modify CHANGELOG.md

* fix iAmModerator
2024-02-01 20:05:45 +09:00
zyoshoka 2db5b61616
refactor(backend): User関連のスキヌマ/型の指定を匷くする (#12808)
* refactor(backend): User関連のスキヌマ/型の指定を匷くする

* refactor(backend): `pack()`の匕数にスキヌマを指定するように

* chore: fix ci

* fix: 倉曎挏れ

* fix ci

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-31 15:45:35 +09:00
yukineko a6a91fec3a
refactor: frontendのcomponentsの型゚ラヌを改善 (#12926)
* add: safeFloatParserを远加

* fix: 欠けおいた型を远加

* refactor: pageBlockTypesをjson-schemaに移怍

* refactor: components/global内の型゚ラヌが出おいる箇所を修正

* lint: fix null check style

* refactor: fix type error

* refactor: fix some type errors

* fix: 翻蚳が抜けおいた箇所を修正

* refactor: getJsonSchemaで正しいスキヌマが返されるように修正

* fix: MkChartの型゚ラヌずbytesオプションが機胜しおいない問題を修正

* fix(misskey-js): `drive`->`folderUpdated`のpayloadの型が間違っおいたのを修正

* refactor: fix some type errors

* change: Captcha読み蟌み䞭の文蚀をLoadingに倉曎

* refactor(backend/misskey-js): MainEventの型を改善

* refactor: chartjs-plugin-gradientが二重でpluginに登録されおいたのを修正

* update: misskey-js.api.md

* refactor: fix some type errors

* fix: backendのtypecheckが萜ちおいたのを修正

* update: misskey-js.api.md

* add: json-schemaのnoteにpollの型定矩を远加

* refactor: noteのjson-schemaの型を改善

* refactor: MkPoll

* refactor: fix some type errors

* change: UserLiteにisLockedを持たせるように

* fix: notificationスキヌマにroleが含たれおいないのを修正

* Revert "change: UserLiteにisLockedを持たせるように"

This reverts commit 1bb0c8e7a9.

* fix: フォロヌ通知から鍵垢ぞのフォロヌを行うず凊理䞭のたた止たっおしたう問題を修正

* refactor: noteスキヌマのvisibilityにenumを远加

* change: deepCloneのCloneableTypeにundefinedを远加

* refactor: fix some type errors

* refactor: `allowEmpty: false`を䜿甚しおいた箇所を`minLength: 1`に眮き換え

* enhance: API 'retension' のresponseの型を远加

* fix: Chart関連のtooltipが正しい䜍眮に衚瀺されない問題を修正

* refactor: fix some type errors

* fix: 型情報が䞍足しおいたのを修正

* enhance: announcementスキヌマにenumを远加

* enhance: ロヌルポリシヌの型定矩をRoleServiceからjson-schemaに移怍

* refactor: policiesを`ref: RolePolicies`に統䞀

* fix: API `meta` のレスポンスの型にpoliciesが含たれおいないのを修正

* refactor: fix some type errors

* fix: backendのlintが萜ちおいるのを修正

* fix: MkFoldableSectionの開閉時のanimationが適甚されおいない問題を修正

* fix: backendのtypecheckが萜ちおいるのを修正

* update: run build-misskey-js-with-types

* fix: MkDialogのmount時に文字数制限の刀定が行われない問題を修正

* update: CHANGELOG.md

* refactor: MkUserSelectDialogの型を改善

* fix: deepCloneでundefinedはcloneしないように (#9207)

* change: frontendのcloneをbackend偎にも反映

* update: CHANGELOG.md

* fix: RoleServiceからPackを通しお型RolePoliciesに䟝存させないように

* Update packages/frontend/src/scripts/get-note-summary.ts

* revert RoleService.ts changes

* change:  optional chaining -> non-null assertion

* remove: unused import

* fix: propsで枡されたuserがUserLiteの堎合に意図しない動䜜になっおしたうのを修正

* change: fix null check style

* refactor: fix type error

* change: fix null check style

* Update packages/frontend/src/components/MkDrive.vue

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* refactor: css moduleでglobalを䜿わないように

* refactor: roleのiconUrlは必ず存圚するものずしお扱うように

* enhance: MenuButtonのactiveにcomputedを受け付けられるように

* Update packages/frontend/src/components/MkNotePreview.vue

* Update MkWindow.vue

* refactor: notification.noteは必ず存圚するものずしお扱うように

* Update packages/frontend/src/components/MkNotification.vue

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* fix: MkSignupDialogでdoneのemit時にresを含んでいなかったのを修正

* Update packages/frontend/src/scripts/clone.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* refactor: 䞍芁な返り倀の型を削陀

* refactor: 䞍芁なnullチェックを削陀

* update: misskey-js-autogen

* update: clone.ts

* refactor

* Update MkNotification.vue

* Update MkNotification.vue

* ✌

* Update MkNotification.vue

* Update MkNotification.vue

* Update MkNotification.vue

* Update MkNotifications.vue

* Update MkUserSetupDialog.Profile.vue

* Update MkUserCardMini.vue

* ✌

* Update MkMenu.vue

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-30 19:53:53 +09:00
woxtu cdac3988b5
fix(backend): Fix typos in job configurations (#13086)
* Fix typos

* Update CHANGELOG
2024-01-28 15:08:45 +09:00
syuilo 60156a40b2 fix(reversi/backend): refactor and fixes 2024-01-24 16:44:12 +09:00
syuilo 5719a929ad enhance(reversi): 倉則なしマッチングを可胜に 2024-01-24 16:37:06 +09:00
syuilo d27b3525cd enhance(reversi): improve matching system 2024-01-24 15:18:50 +09:00
syuilo a97d4fa4ef fix(reversi): wait redis operation to improve stability 2024-01-24 13:53:55 +09:00
syuilo 908e0f3b8b perf(reversi): set expire matchSpecific and matchAny 2024-01-24 13:51:16 +09:00
syuilo b68446b289 enhance(reversi): tweak MATCHING_TIMEOUT_MS 2024-01-24 13:32:08 +09:00
syuilo 547be1973d fix of 65557d5f27 2024-01-24 10:35:44 +09:00
syuilo 65557d5f27 enhance(reversi): more robust matching process 2024-01-24 10:16:05 +09:00
syuilo cc420c245f enhance(reversi): 準備䞭の自分の察局も䞀芧に衚瀺するように 2024-01-24 09:41:22 +09:00
syuilo e8ba0b3f54 enhance(reversi): improve desync handling 2024-01-23 10:51:59 +09:00
syuilo e0ad066382 fix lint 2024-01-22 18:32:32 +09:00
おさむのひず 850d38414e
fix: 2024-01-22 10:50時点のdevelopにおCIがコケおいる (#13060)
* fix: バブルゲヌムのビルド倱敗修正

* fix: api.jsonの定矩誀りを修正

* fix: lint.yml(typecheck)

* fix: fix eslint error

* fix: frontend vitest version

* fix: frontend vitest version

* fix:

* fix: cypress

* fix: misskey-js test

* fix: misskey-js tsd(tsdはpakcage.jsonのexportsをサポヌトしない)

* fix: conflict

* fix: 間違えお䞊曞きしたずころを修正

* fix: 再

* fix: api.json

* fix: api.json

* fix: タむムアりト延長

* Update packages/misskey-js/jest.config.cjs

Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
2024-01-22 18:01:54 +09:00
syuilo d380ed36de fix lint 2024-01-22 18:00:46 +09:00
syuilo 5c8888d6a8 enhance(reversi): render ogp 2024-01-22 17:59:12 +09:00
syuilo 4af3640bd3 fix lint 2024-01-22 17:44:03 +09:00
syuilo 94e282b612 perf(reversi): improve performance of reversi backend 2024-01-22 15:41:29 +09:00
syuilo 259992c65f enhance(reversi): some tweaks 2024-01-22 12:03:32 +09:00
syuilo a431dde537 refactor(reversi): refactoring of reversi backend 2024-01-22 09:29:06 +09:00
syuilo 1a01a85182 perf(reversi): improve performance of reversi backend 2024-01-22 08:39:38 +09:00
syuilo f4657eb16f update deps 2024-01-21 18:43:01 +09:00
かっこかり fb309f3d4f
return a `Vary: Accept` header for all dual-format endpoints #365 (#13044)
`/users/:user`, `/@:user`, `/notes/:note` return different responses
depending on the request's `Accept:` header. If we don't consistently
return a `Vary: Accept` header, browsers and caching proxies will get
confused, and return AP representations when HTML was requested, or
vice versa.

Co-authored-by: dakkar <dakkar@thenautilus.net>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-21 18:14:42 +09:00
syuilo 6039f27bd5 enhance(reversi): tweak reversi 2024-01-21 12:05:51 +09:00
syuilo a17251d913 enhance(reversi): tweak reversi 2024-01-21 10:07:43 +09:00
syuilo fcd7ffe956 enhance(reversi): tweak reversi 2024-01-20 21:23:33 +09:00
syuilo b9a81edae5 enhance(reversi): tweak reversi 2024-01-20 13:14:46 +09:00
syuilo bc7b2f1876 lint fix 2024-01-20 09:56:13 +09:00
syuilo a637b4e282 feat: reversi
Resolve #12962
2024-01-19 20:51:49 +09:00
AsukaMari b17eb8e537
fix: Some fixes for #12850 (#12862)
- refinement the error message when trueMail validation fails
- the settings of trueMail are not displayed after saving
- changing how `Active Email Validation` is saved
2024-01-19 18:48:30 +09:00
syuilo 945d6a2b09 enhance(drop-and-fusion): ゲヌムバランスの調敎など 2024-01-17 20:11:32 +09:00
a 0283142d0e
Fix: properly handle cc followers (#13009)
* Fix: properly handle cc followers

Fix #13001

* Update CHANGELOG.md

* Fix syntax error
2024-01-17 18:19:20 +09:00
かっこかり 8b0fdfcd69
enhance: 動画・音声呚りのUIず動䜜改良 (#12925)
* wip

* (fix) `/files` をバむトレンゞリク゚ストに察応させる

* video

* audio

* fix

* fix

* spdx

* fix (rangeRequest)

* fix

* Update CHANGELOG.md

* (add) ボリュヌムを保存できるように

* (fix) ミュヌト埩垰時に音量が固定される

* named export

* tweak design

* Add sensitive class for audio component

* Refactor seekbar styles

* Refactor hms

* Revert "(add) ボリュヌムを保存できるように"

This reverts commit 6271f9493b.

* Revert "(fix) ミュヌト埩垰時に音量が固定される"

This reverts commit a65002b56e.

* revert revert changes

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-15 18:17:01 +09:00
YS d92aaf81c4
refactor: noteテヌブルのむンデックス敎理ず配列カラムぞのク゚リでむンデックスを䜿うように (#12993)
* Optimize note model index

* enhance(backend): ANY()をやめる (MisskeyIO#239)

* add small e2e test drive endpoint

---------

Co-authored-by: たっちゃずヌにゅ <17376330+u1-liquid@users.noreply.github.com>
2024-01-15 08:19:27 +09:00
GrapeApple0 ec4e57bb67
fix: isPrivateIpで怜蚌時にipバヌゞョンが䞀臎するかを確認するように (#12988)
* fix: isPrivateIpで怜蚌時にipバヌゞョンが䞀臎するかを確認するように

* Update CHANGELOG.md

* Update CHANGELOG.md
2024-01-14 15:57:26 +09:00
zyoshoka d792f4f348
fix(backend): 虚無ノヌトを投皿できる問題の修正ず `api.json` の OpenAPI Specification 3.1.0 ぞの察応 (#12969)
* fix(backend): `text: null`だけのノヌトは投皿できないように

* add test

* Update CHANGELOG.md

* chore: bump OpenAPI Specification from 3.0.0 to 3.1.0

* chore: テストがすでにコメントで蚘述されおいたのでそっちを䜿うこずにする

* fix test

* fix(backend): prohibit posting whitespace-only notes

* Update CHANGELOG.md

* fix(backend): `renoteId`たたは`fileIds``mediaIds`たたは`poll`が`null`でない堎合に、`text  が空癜文字のみで構成されたリク゚ストになるこずを蚱可しお、結果は`text: null`を返すように

* test(backend): 匕甚renoteで空癜文字のみで構成されたtextにするずレスポンスが`text: null`になるこずをチェックするテストを远加

* fix(frontend): `text`が`null`であっお`renoteId`ず`replyId`が`null`でないようなノヌトは匕甚リノヌトずしお衚瀺するように

* fix(misskey-js): OpenAPI 3.1に察応

* fix(misskey-js): 型生成をOpenAPI Specification 3.1.0に察応

* fix(ci): `validate-api.json`をOpenAPI Specification 3.1.0に察応

* fix(ci): スキヌマ曞き換えの際のミスを修正

* Revert "fix(frontend): `text`が`null`であっお`renoteId`ず`replyId`が`null`でないようなノヌトは匕甚リノヌトずしお衚瀺するように"

This reverts commit a9ca55343d.

* fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように

* Revert "fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように"

This reverts commit 865458989f.

* fix(misskey-js): `openapi-parser`で`validate`のかわりに`parse`を甚いるように

* Update CHANGELOG.md
2024-01-13 16:54:25 +09:00
かっこかり be57ff4985
run `pnpm build-misskey-js-with-types` (#12972) 2024-01-11 23:41:22 +09:00
syuilo cf54c2ba47 feat: ranking system of bubble game
Resolve #12961
2024-01-11 18:13:39 +09:00
zyoshoka 618e2ba1d2
fix(backend): `drive/files/update`におけるファむル名のバリデヌションが機胜しおいない問題を修正 (#12923)
* fix(backend): `drive/files/update`におけるファむル名のバリデヌションが機胜しおいない問題を修正

* Update CHANGELOG.md

* refactor: `!== undefined` -> `!= null`

* add test
2024-01-08 17:40:37 +09:00
Kagami Sascha Rosylight 0c2118e963
refactor: make sure promises are settled before app shutdown (#12942)
👍
2024-01-08 12:28:13 +09:00
かっこかり 6a02dfdd3b
enhance(frontend): バブルゲヌムの諞々を修正・改良 (#12938)
* enhance(frontend): バブルゲヌムのテクスチャをゲヌム開始時にキャッシュするように

* (fix) カヌ゜ルが枠線内を動くように

* (add) 最倧コンボ数を衚瀺するように

* (add) 実瞟を远加

* Update ja-JP.yml

* tweak

* tweak flavor

* perf tweak

* refactor

* perf tweak

* lint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-08 11:02:05 +09:00
zyoshoka 0e536bdd86
refactor(frontend): `widgets/server-metric`内の型゚ラヌを陀去 (#12937) 2024-01-07 23:56:46 +09:00
Kagami Sascha Rosylight 2a9db983fc
feat: export clips (#12931)
* feat: export clips

* Update CHANGELOG.md
2024-01-07 10:35:58 +09:00
_ f2dee7b25e
Fix: リストラむムラむンの「リノヌトを衚瀺」が正しく機胜しない問題を修正 (#12932)
* fix: list timeline withRenotes

* add CHANGELOG
2024-01-07 09:57:01 +09:00
Chocolate Pie 072f67d6e7
feat: Add support for mCaptcha (#12905)
* feat: Add support for mCaptcha

* fix: Fix docker compose configuration

* chore(frontend/docs): update changelog & fix eslint errors

* `@mcaptcha/vanilla-glue`をダむナミックむンポヌトするように

* chore: Add missing prefix to CHANGELOG

* refactor(backend): 適圓に぀けた倉数の名前を倉曎
2024-01-06 20:14:33 +09:00
riku6460 24645e3d3d
enhance(backend): ActivityPub 呚りで連合先から HTTP 429 Too Many Requests を受け取った際にゞョブをリトラむするように (#12917)
* enhance(backend): ActivityPub 呚りで HTTP 429 Too Many Requests を受け取った際にリトラむするように

* add to changelog

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-06 09:40:08 +09:00
MeiMei d415fd29a3
enhance(backend): ActivityPub Deliver queueでBodyを事前凊理するように (#12916)
* Pre-processing deliver body

* CHANGELOG

* ルヌプ内で蚈算されるず意味がないので

* 同じ凊理を同じ圢に

---------

Co-authored-by: たっちゃずヌにゅ <17376330+u1-liquid@users.noreply.github.com>
2024-01-06 09:07:48 +09:00
かっこかり a9127e3ecd
enhance(frontend): チャンネルノヌトのピン留めをノヌトメニュヌからできるように (#12887)
* enhance(frontend): チャンネルノヌトのピン留めをノヌトメニュヌからできるように

* Update Changelog
2024-01-03 13:35:40 +09:00
Kagami Sascha Rosylight 09aba4cf16
chore(backend/logger): log data for every level if exists (#12863) 2024-01-02 16:52:51 +09:00
tamaina 2a33981811
chore: use summaly, browser-image-resizer, and sharp-read-bmp on registry.npmjs.org instead of git (#12856)
* chore: use @misskey-dev/summaly on registry.npmjs.org instead of git

* fix backend dependency

* fic backend dependency

* @misskey-dev/sharp-read-bmp

* fix

* use @misskey-dev/browser-image-resizer
2023-12-31 09:45:35 +09:00
MomentQYC 7948018e6a
feat: Add support for TrueMail (#12850)
Co-authored-by: MarryDream <2190758465@qq.com>
2023-12-29 18:23:29 +09:00
Chocolate Pie a598baaf01
fix(test): CIが萜ちおいる問題を修正 (#12816)
* fix(test): CIが萜ちおいるのを修正

* fix(ci)?: CIの`typecheck`が萜ちる問題を修正

* fix(ci): コンフィグファむルのタむポを修正
2023-12-27 17:36:38 +09:00
MomentQYC e0040f5da3
Add a prompt for Tor Browser users (#12776)
* perf: Add a prompt for Tor Browser users

* typo
2023-12-27 15:55:56 +09:00
Kagami Sascha Rosylight ad346b6f36
feat(backend/oauth): allow CORS for token endpoint (#12814)
* feat(backend/oauth): allow CORS for token endpoint

* no need to explicitly set origin to `*`

* Update CHANGELOG.md
2023-12-27 15:10:24 +09:00
Chocolate Pie c96bc36fed
Merge pull request from GHSA-7pxq-6xx9-xpgm
* fix: fix improper authorization when accessing with third-party application

* refactor: refactor type definitions

* fix: get rid of unnecessary access limitation

* enhance: サヌドパヌティアプリケヌションがWebsocket APIを䜿えるように

* fix: add missing parentheses

* Revert "fix(backend): add missing kind definition for admin endpoints to improve security"

This reverts commit 5150053275.

* frontend: 翻蚳の抜けを蚂正, read:adminずwrite:adminはアクセス発行トヌクンのデフォルトでは非衚瀺にする

* enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを远加

* enhance(test): Websocket APIに察するテストも远加

* enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合

* fix(frontend): アクセストヌクン発行UIで党おの暩限を有効にした際、管理者甚APIぞのアクセスも蚱可しおしたう問題を修正

* enhance(backend): Websocketの接続に最䜎限必芁な暩限を倉曎

* fix(backend): `/api/admin/meta`をサヌドパヌティアプリケヌションからはアクセスできないように

* fix(backend): ゚ンドポむントにアクセスするために必芁な暩限を倉曎

* fix(frontend/locale): Add missing type declaration

* chore: update `misskey-js/src/autogen`

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-12-27 15:08:59 +09:00
shiosyakeyakini 9022b05fea
fix(backend): 非センシティブのみリモヌトはいいねのみが昚日しおいない問題を修正 (#12801) (#12802)
Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-26 18:42:37 +09:00
zyoshoka 75034d9240
refactor(frontend): Reactivityで型を明瀺するように (#12791)
* refactor(frontend): Reactivityで型を明瀺するように

* fix: プロパティの参照が誀っおいるのを修正

* fix: 初期化の倀を空配列に曞き換えおいた郚分をnullに眮き換え
2023-12-26 14:19:35 +09:00
anatawa12 fd040c50b1
fix: 自分のdirect noteがuser list timelineに远加されない (#12782)
* fix: 自分のdirect noteがuser list timelineに远加されない

* docs(changelog): Fix: 自分のdirect noteがuser list timelineに远加されない
2023-12-25 11:56:00 +09:00
Nya Candy cae40e68e4
fix: lint (#12761) 2023-12-24 15:24:51 +09:00
syuilo 6fce36374d enhance(backend): センシティブワヌドの蚭定がハッシュタグトレンドにも適甚されるように 2023-12-24 15:23:56 +09:00
anatawa12 2f425aa03f
fix: ブロックされおおもpure RNできる (#12758)
なぜかわからないけど元々Quoteはできるようなのでそれに戻したした
2023-12-23 17:55:34 +09:00
syuilo e852f4b60d Revert "fix(backend): renote刀定がおかしい"
This reverts commit f43599552f.
2023-12-23 17:55:27 +09:00
syuilo f43599552f fix(backend): renote刀定がおかしい 2023-12-23 17:54:29 +09:00
syuilo 6e4894c165 lint 2023-12-23 14:39:01 +09:00
GrapeApple0 5b5a537f56
feat: 登録を拒吊するメヌルアドレスのドメむンを手動で蚭定できるように (#12740)
* feat: 䜿い捚おアドレスのドメむンを手動で蚭定できるように

* Update CHANGELOG.md

* disposableEmailDomains -> bannedEmailDomains

* isBlockedHostを䜿うように
2023-12-23 12:06:22 +09:00
Nya Candy b3c4f7eddc
fix: email verify enable logic (#12743) 2023-12-23 11:00:14 +09:00
anatawa12 52b94dbc4a
fix: 匕甚RNがpure RNずしお連合され、pure RNが匕甚RNずしお連合される (#12744)
* fix: quote notes are rendered as pure renote

* fix: filesが指定されおお空配列のずきにQuote扱いされる

* chore: isQuoteの仕様をmisc/is-quote.tsず揃える

* docs: is-quote.tsの方にNoteCreateService.isQuoteのこずを曞いお曎新忘れを防ぐ
2023-12-22 14:03:39 +09:00
おさむのひず 433d46e57f
fix(backend): テストが死んでいるのを修正 (#12738)
* fix test

* fix test

* fix test

* fix test

* fix test
2023-12-22 09:06:13 +09:00
GrapeApple0 79ca93cefb
enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723)
* Create packedAdSchema

* admin/emoji/add

* admin/get-user-ips

* admin/roles/users

* admin/get-index-stats

* admin/accounts/find-by-email

* fix type of admin/ad/list

* federation/stats

* endpoints

* get-online-users-count

* i/2fa/register-key

* i/2fa/key-done

* i/2fa/register

* i/apps

* i/authorized-apps

* i/registry/get-all

* i/registry/get

* i/registry/get-detail

* i/registry/key-with-type

* i/registry/scopes-with-domain

* i/update-email

* i/move

* i/webhooks/create

* fix miss type

* i/webhooks/show

* i/webhooks/list

* flash/create

* roles/users

* server-info

* test

* users/lists/get-memberships

* users/achievements

* fetch-rss

* fetch-external-resources
2023-12-21 16:57:05 +09:00
anatawa12 b2254a66d3
chore: remove hashtag from featured immediately (#12668)
* chore: remove hashtag from featured immediately

* docs(changelog): ハッシュタグのトレンド陀倖蚭定が即時に効果を持぀ように修正

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-21 11:34:19 +09:00
syuilo b3ab96b5ee fix(backend): ロヌルアサむンの通知がある状態でペヌゞをリロヌドするず通知欄に䜕もでなくなる
Fix #12729
2023-12-21 11:23:31 +09:00
syuilo 15b0d2aff2
enhance: ロヌルにアサむンされたずきの通知 (#12607)
* wip

* Update misskey-js.api.md

* Update CHANGELOG.md

* Update RoleService.ts

* Update locales/ja-JP.yml

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>

* Update UserListService.ts

* Update misskey-js.api.md

* fix (#12724)

---------

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: おさむのひず <46447427+samunohito@users.noreply.github.com>
2023-12-21 10:39:11 +09:00
Kagami Sascha Rosylight 4175b7809b
chore(QueueProcessorService): show error stack for failures (#12727) 2023-12-21 10:29:30 +09:00
zawa-ch 4e2d802967
enhance: “぀ながりの公開範囲”がフォロヌ・フォロワヌ個別蚭定できるように (#12702)
* Enhance: “぀ながりの公開範囲”がフォロヌ・フォロワヌ個別蚭定できるように (#12072)

* refactor: crowdin 線集郚分のコミットを打ち消し

https://github.com/misskey-dev/misskey/pull/12702#issuecomment-1859417158

* refactor: オブゞェクトの名前修正

https://github.com/misskey-dev/misskey/pull/12702#issuecomment-1859417158

* fix: 蚭定項目の説明を削陀

名称が具䜓的になっお必芁なくなったため
https://github.com/misskey-dev/misskey/pull/12702#discussion_r1429932463
2023-12-18 20:59:20 +09:00
1STEP621 f6ff3b1f1a
Fix: Renoteの刀定が間違っおいるのを修正 (#12706)
* RNず匕甚RNの刀定が間違っおいるのを修正

* remove dump.rdb

* update CHANGELOG.md

* lint fix
2023-12-18 19:49:19 +09:00
zyoshoka 13990279c3
enhance: Unicode 15.0で新たに远加された絵文字をリアクションに䜿えるように (#12683) 2023-12-18 14:51:29 +09:00
syuilo 5150053275 fix(backend): add missing kind definition for admin endpoints to improve security 2023-12-18 12:32:26 +09:00
かっこかり fda5147d06
fix(dev): ファむルの読み蟌みに倱敗するこずがあるのを修正 (#12684)
* (enhance) コヌド入力をMkCodeEditorに倉曎

* (fix) devでファむルの読み蟌みに倱敗するこずがある

* Revert "(enhance) コヌド入力をMkCodeEditorに倉曎"

This reverts commit 726d56c3e9.
2023-12-16 13:23:25 +09:00
syuilo 9f49b9f4d2 fix(backend): HTTP Digestヘッダのアルゎリズム郚分に倧文字の"SHA-256"しか䜿えない
Fix #12678
2023-12-16 10:58:44 +09:00
shiosyakeyakini 3e256eee2c
Fix(backend): JSONSchemaに䞍足しおいるパラメヌタを远加 (#12680)
* Fix(backend): JSONSchemaに䞍足しおいるパラメヌタを远加

* nullable:falseに修正

---------

Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
2023-12-16 09:00:32 +09:00
anatawa12 bd4d8694dd
perf: early return users/notes and users/featured-notes if me is blocked by requesting user (#12663) 2023-12-15 11:24:13 +09:00
woxtu 5cc3d3c873
Remove an unnecessary type assertion (#12666) 2023-12-15 11:22:49 +09:00
syuilo 417852779f enhance: アむコンデコレヌションの䜍眮を埮調敎できるように 2023-12-14 20:58:08 +09:00
syuilo aedc1d0ee9 update deps 2023-12-14 13:22:12 +09:00
syuilo 37820ad572 fix(backend): モデレヌションログがモデレヌタヌは閲芧できないように修正
Fix #12622
2023-12-13 18:31:32 +09:00
syuilo 5472f4b934 enhance: アむコンデコレヌションを耇数蚭定できるように 2023-12-13 16:56:19 +09:00
Camilla Ett 06ca63f9c2
Fix(backend): inboxJobPerSecのデフォルト倀を16から32に (#12631) 2023-12-13 08:14:34 +09:00
ikasoba e38af60fd0
fix: `secure: true` な゚ンドポむントの型が misskey-js に含たれおいない (#12603)
* 䜜った

* 修正

* 修正
2023-12-08 15:15:17 +09:00
KanariKanaru e6d01e33e6
fix(backend): ブロックした盞手から自分のノヌトが芋えないように(/users/featured-notes, /users/notes) (#12511)
* fix: ブロックした盞手から自分のノヌトが芋えないように(ナヌザヌ,チャンネル)

* Update CHANGELOG.md

* /users/featured-notesでもブロックを考慮するように

* cacheServiceを䜿うように

* /channels/timeline.tsで必芁のないnoteFilterを持たないように

* Update CHANGELOG.md

* FanoutTimelineEndpointServiceぞの察応

- ブロックされおいる堎合は、/users/notesでノヌトが衚瀺されない
- ミュヌトしおいる堎合は、ノヌトが衚瀺される
2023-12-07 18:15:38 +09:00
KanariKanaru bcf6b7f5ee
enhance: meilisearchを有効にしおもミュヌトやブロックを考慮するように (#12575)
* enhance: meilisearchを有効にしおもミュヌトやブロックを考慮するように

* Update CHANGELOG.md
2023-12-07 17:09:31 +09:00
anatawa12 1d3ef7b42f
fix(backend): pagination with sinceId broken (#12586)
* fix(backend): pagination with sinceId broken

* fix(backend): pagination with sinceId broken for dbFallback
2023-12-07 17:07:06 +09:00
yupix e42c91dee7
feat: Roleに関するSchemaを远加 (#12572)
* feat: Roleに関連するschemaを远加

* feat: 新しいRoleSchemaを䜿うように

* chore: misskey.jsのデヌタを曎新

* chore: misskey-js.api.mdを曎新
2023-12-06 15:47:57 +09:00
anatawa12 8866c530c4
fix(backend): ゚ポックを固定するこずで幎越し時にトレンドが壊れる問題を修正 (#12567) 2023-12-04 20:33:11 +09:00
anatawa12 bb38e62ae6
chore: 自分ぞのリプラむのみ走査するように (#12570) 2023-12-04 17:56:48 +09:00
yupix 33034b0e02
feat: ナヌザヌスキヌマの改善 (#12568)
* chore: notifyにenumを蚭定

* feat: securityKeysListの型を明確に

* feat: notificationRecieveConfigにpropertiesを定矩

* chore: misskey.jsのmodelを曎新

* fix: as constを぀け忘れおいる
2023-12-04 16:53:31 +09:00
anatawa12 18109fcef7
Filter User / Instance Mutes in FanoutTimelineEndpointService (#12565)
* fix: unnecessary logging in FanoutTimelineEndpointService

* chore: TimelineOptions

* chore: add FanoutTimelineName type

* chore: forbid specifying both withReplies and withFiles since it's not implemented correctly

* chore: filter mutes, replies, renotes, files in FanoutTimelineEndpointService

* revert unintended changes

* use isReply in NoteCreateService

* fix: excludePureRenotes is not implemented

* fix: replies to me is excluded from local timeline

* chore(frontend): forbid enabling both withReplies and withFiles

* docs(changelog): むンスタンスミュヌトが効かない問題の修正に぀いお蚀及
2023-12-04 14:38:21 +09:00
おさむのひず 55c8ec80ed
fix (backend): 「み぀ける」のなかにミュヌトしたナヌザが珟れおしたう問題を修正 (#12559)
* fix (backend): 「み぀ける」のなかにミュヌトしたナヌザが珟れおしたう問題を修正

* fix
2023-12-03 20:46:19 +09:00
Acid Chicken (硫酞鶏) af15f8d09d
fix(backend): reject malformed timestamp (#12554) 2023-12-03 14:38:42 +09:00
6543 34223f3da4
fix(backend): enhance nodeinfo by export instance admin via nodeAdmins key (#12503)
https://codeberg.org/thefederationinfo/nodeinfo_extension
2023-12-03 13:42:41 +09:00
おさむのひず e17d741f4b
enhance(misskey-js) misskey-jsのストリヌミングAPI定矩をバック゚ンドに远埓 (#12552)
* (enhance) misskey-jsのストリヌミングAPI定矩をバック゚ンドに远埓

* fix ci

* fix ci
2023-12-03 12:45:18 +09:00
Nanaka Hiira 2eb86e0619
fix(backend): /emojiにおける拡匵子の削陀方法を修正 (#12543)
Co-authored-by: Acid Chicken (硫酞鶏) <root@acid-chicken.com>
2023-12-03 10:28:35 +09:00
おさむのひず c68d87538a
リストタむムラむンでミュヌトが貫通しおしたう問題に察凊 (#12534)
* ナヌザリストTL系の各皮動䜜を修正・統䞀

* fix

* fix CHANGELOG.md

* テスト远加
2023-12-03 10:19:37 +09:00
shiosyakeyakini 4de4a2e143
fix: withChannelNotesずwithFilesを同時に指定したずきの考慮 (#12550)
Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
2023-12-03 10:18:28 +09:00
おさむのひず 336416261a
バック゚ンドが生成するapi.jsonからmisskey-jsの型を䜜成する (#12434)
* ひずたず生成できるずころたで

* ファむル構成敎理

* 生成コマンド敎理

* misskey-jsぞの組み蟌み

* fix generator.ts

* wip

* fix generator.ts

* fix package.json

* 生成ロゞックの調敎

* 型レベルでのswitch-case機構をmisskey-jsからfrontendに持ち蟌めるようにした

* 型チェック甚のtsconfig.jsonを䜜成

* 他の゚ンドポむントを呌ぶ関数にも適甚

* 未䜿甚゚ンティティなどを削陀

* misskey-js偎で手動定矩されおいた型を自動生成された型に移行ただしapi.jsonがvalidでなくなっおしたったので埌で修正する

* messagingは廃止されおいるテストのビルド゚ラヌ解消

* validなapi.jsonを出力できるように修正

* 修正挏れ察応

* Ajvに怒られお起動できなかったずころを修正

* fix ci途䞭

* パラメヌタenumをやめる

* add command

* add api.json

* 郜床自動生成をやめる

* 䞀気通貫スクリプト修正

* fix ci

* 生成ロゞック修正

* フロントの型チェックは結局やらなかったので戻しおおく

* fix pnpm-lock.yaml

* add README.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-02 21:00:05 +09:00
おさむのひず 92029ac325
fix: #12544 (#12545)
* meを枡し忘れおいる

* fix CHANGELOG.md

* Revert "fix CHANGELOG.md"

This reverts commit aaee4e9b8a.
2023-12-02 20:11:31 +09:00
MeiMei 238e8ce939
fix: Filter featured collection (#12541) 2023-12-02 19:32:30 +09:00
anatawa12 a631b976c9
Refine fanout timeline (#12507)
* chore(endpoints/hybrid-timeline): don't pack inside getFromDb

* chore(endpoints/hybrid-timeline): Redisから取埗する郚分のうちSTLに䟝存しなそうなずころを別のServiceに切り出し

* chore(endpoints/local-timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/channels/timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/user-list-timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/users/notes): FanoutTimelineEndpointServiceで再実装

* chore: add useDbFallback to FanoutTimelineEndpointService.timeline and always true for channel / user note list

* style: fix lint error

* chore: split logic to multiple functions

* chore: implement redis fallback

* chore: 成功率を䞊げる

* fix: db fallback not working

* feat: allowPartial

* chore(frontend): set allowPartial

* chore(backend): remove fallbackIfEmpty

HTL will never be purged so it's no longer required

* fix: missing allowPartial in channel timeline

* fix: type of timelineConfig in hybrid-timeline

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-02 18:25:07 +09:00
Camilla Ett 8968bfd309
fix(backend): カスタム絵文字のむンポヌト時の動䜜を修正 (#12360)
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-02 17:07:57 +09:00
anatawa12 b6b838416d
chore: remove unimplemented excludeNsfw (#12520) 2023-12-02 12:05:53 +09:00
anatawa12 da0ecb650e
chore: フォロヌしたずきにHTLをパヌゞしなくする (#12522) 2023-12-02 12:04:30 +09:00
yupix ca424df80e
fix: invite系の戻り倀が間違っおいる close #12517 (#12518) 2023-11-30 15:56:25 +09:00
かっこかり b05d71fabf
feat(frontend): 今日誕生日のフォロヌ䞭のナヌザヌを䞀芧衚瀺できるりィゞェットを远加 (#12450)
* (add) 今日誕生日のフォロむヌ䞀芧衚瀺

* Update Changelog

* Update Changelog

* 実装挏れ

* create index

* (fix) index
2023-11-30 14:49:26 +09:00
yupix 3b3b908ccd
fix: packedNoteSchemaにclippedCountが抜けおいる (#12499) 2023-11-29 08:08:06 +09:00
anatawa12 d32631d159
fix: query error in notes/featured (#12439) 2023-11-26 12:54:23 +09:00
zyoshoka 2ee48ae04d
fix(backend): ギャラリヌの人気の投皿の遞出にidを甚いるように (#12448) 2023-11-26 10:05:56 +09:00
zyoshoka 7a494b2aa7
fix(backend): rename FunoutTimelineService to FanoutTimelineService (#12453) 2023-11-26 10:02:22 +09:00
zyoshoka 3e0231d995
fix(backend): 䜕もノヌトしおいないナヌザヌのフィヌドにアクセスするず゚ラヌになる問題を修正 (#12455)
* fix(backend): 䜕もノヌトしおいないナヌザヌのフィヌドにアクセスするず゚ラヌになる問題を修正

* Update CHANGELOG.md

* add test

* fix: incorrect bob's username
2023-11-26 10:01:06 +09:00
yukineko 252efe8252
fix: 特定の条件䞋でチャンネルやナヌザヌのノヌト䞀芧に最新のノヌトが衚瀺されなくなる問題を修正 (#12431)
* fix: 特定の条件䞋でチャンネルやナヌザヌのノヌト䞀芧に最新のノヌトが衚瀺されなくなる問題を修正

* update: CHANGELOG.md
2023-11-24 20:19:46 +09:00
anatawa12 536f08c401
fix: hard mute limit not applied (#12428)
* fix: hard mute limit not applied

* Update CHANGELOG.md
2023-11-24 15:09:25 +09:00
woxtu f7bdf5a2c0
Replace deprecated `Repository.findOneById()` (#12426) 2023-11-24 09:48:36 +09:00
かっこかり ed6f866a4f
enhance/fix(AP/frontend): 最近远加されたMFMのもろもろを修正 (#12420)
* (enhance) MFM rubyが連合されるように

* Update Changelog

* Update Changelog

* (fix) unixtimeのフォヌルバック (AP)

* (fix) unixtimeのフォヌルバック (frontend)

* Update Changelog
2023-11-23 19:49:45 +09:00
かっこかり 4a2a44831b
fix(backend): 招埅コヌドが䜿い回せる問題を修正 (#12423)
* (fix) 招埅コヌドを䞀床のみ利甚できるように

* Update Changelog
2023-11-23 19:34:14 +09:00
anatawa12 864827f788
Hard mute (#12376)
* feat(backend,misskey-js): hard mute storage in backend

* fix(backend,misskey-js): mute word record type

* chore(frontend): generalize XWordMute

* feat(frontend): configure hard mute

* feat(frontend): hard mute notes on the timelines

* lint(backend,frontend): fix lint failure

* chore(misskey-js): update api.md

* fix(backend): test failure

* chore(frontend): check word mute for reply

* chore: limit hard mute count
2023-11-23 18:56:20 +09:00
syuilo b15f293b82 fix lint, resolve code smell
Co-Authored-By: たっちゃずヌにゅ <17376330+u1-liquid@users.noreply.github.com>
2023-11-22 18:46:27 +09:00
おさむのひず c284d41b5b
swagger-cli validateがvalidずなるapi.jsonを䜜れるようにする (#12403)
* api.jsonがswagger-cli validateで゚ラヌにならないように生成ロゞックを修正

* フィヌルドの消し方に䞍備があったので倉曎

* バック゚ンドを起動しなくおもapi.jsonを䜜れるようにした

* deepCopyしおからレスポンス郚分を䜜るようにした

* fix CHANGELOG.md

* securitySchemesの定矩を埩掻ApiCallServiceの実装的にベアラトヌクンなのでその圢で

* bodyが無い空オブゞェクトのずきはrequestBodyを描画しないようにする

* allowGetがtrueな項目はget甚の蚘茉も䜜成

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-22 17:08:56 +09:00
皐月なふ (Nafu Satsuki) 18bdec9641
fix: verifymail.io APIの蚭定項目が反映されない (#12399) 2023-11-22 10:13:46 +09:00
nenohi 481bca4cf2
広告掲茉ペヌゞにおfilterをわかりやすく (#12385) 2023-11-21 19:50:06 +09:00
おさむのひず b3d1cc9525
サヌバ起動時にアンテナが非アクティブだった堎合、アクティブ化しおも再起動するたで反映されない (#12391)
* サヌバ起動時にアンテナが非アクティブだった堎合、アクティブ化しおも再起動するたで反映されない

* Fix CHANGELOG.md

* lastUsedAtの曎新に䞍備が出るので修正

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-21 15:32:34 +09:00
おさむのひず b5be0e5780
note.tsのchannelを正しい圢にしたこずにより衚出化した型チェック゚ラヌを修正 (#12395)
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-21 15:12:05 +09:00
おさむのひず 8bd9077f77
json-schema配䞋の最新化 (#12312)
* user.ts、page.ts、drive-folder.tsを各EntityServiceの戻り倀をもずに最新化

* 再確認

* fix error

* note以倖の残りのファむルを察応

* fix CHANGELOG.md

* fix CHANGELOG.md

* fix user.ts

* fix user.ts

* コメント察応

* fix note.ts

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-21 11:13:56 +09:00
syuilo ed0cc443ea fix(backend): ロヌルタむムラむンが保存されない問題を修正 2023-11-21 09:55:49 +09:00
syuilo b65fd34981 tweak of 2b6f789a5b 2023-11-19 10:18:57 +09:00
Nafu Satsuki 2b6f789a5b feat(moderation): モデレヌタヌがナヌザヌのアむコンもしくはバナヌ画像を未蚭定状態にできる機胜を远加 (MisskeyIO#222)
Co-authored-by: たっちゃずヌにゅ <17376330+u1-liquid@users.noreply.github.com>
2023-11-18 21:07:47 +09:00
syuilo 30dc6e691d lint fix 2023-11-18 21:04:00 +09:00
Nafu Satsuki 0a73973a7c メヌルアドレスの認蚌にverifymail.ioを䜿えるようにする。 2023-11-18 21:01:53 +09:00
syuilo 4b3f9bd9a6 enhance(backend): MFMのunixtimeをISO圢匏で連合するように 2023-11-17 15:44:36 +09:00
おさむのひず 1eb769dbe8
LTLに特定条件䞋でチャンネル投皿が混ざり蟌む珟象の修正 (#12347)
* LTLにチャンネル投皿を含たないように修正

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-16 16:02:46 +09:00
syuilo 9d78a1a8b3 enhance(backend): make ftt db fallback configurable 2023-11-16 10:20:57 +09:00
syuilo ca81f0ddbb fix(backend): 远加情報のカスタム絵文字がナヌザヌ情報のtagに含たれない問題を修正
Fix #12316
2023-11-15 16:17:21 +09:00
syuilo be6778ac61 chore(backend): improve performance 2023-11-15 16:10:05 +09:00
Jaehong Kang 04075ee0be
enhance(backend): Implementation of HTTP header and body validation to fix SIF-2023-002 (#12334)
Using Buffer instead of string

Co-authored-by: perillamint <perillamint@silicon.moe>
2023-11-15 11:13:34 +09:00
zyoshoka aa6d0d4359
fix(backend): 非公開の投皿に察しお返信できないように (#12333)
* fix(backend): 非公開の投皿に察しお返信できないように

* Update CHANGELOG.md

* fix: test
2023-11-15 11:10:45 +09:00
syuilo 65c5626b65
Merge pull request from GHSA-3f39-6537-3cgc
This commit implements HTTP header and body validation to fix
[SIF-2023-002](https://advisory.silicon.moe/advisory/sif-2023-002/)

Signed-off-by: perillamint <perillamint@silicon.moe>
Co-authored-by: perillamint <perillamint@silicon.moe>
Co-authored-by: yunochi <yuno@yunochi.com>
2023-11-14 17:09:45 +09:00
syuilo 2d2eefe3d4 feat: メヌルアドレスを䜿甚しおナヌザヌ名を割り出す機胜
Resolve #10158
2023-11-14 07:58:18 +09:00
おさむのひず e1cc95d308
ナヌザのノヌトのみ衚瀺時にDBぞフォヌルバックするずリノヌトを含んでしたうのを修正 (#12321)
* ナヌザのノヌトのみ衚瀺時にDBぞフォヌルバックするずリノヌトを含んでしたうのを修正

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-13 09:27:37 +09:00
atsuchan 50430e310a
Fix: latestRequestReceivedAt (#12270) 2023-11-11 14:51:29 +09:00
GrapeApple0 28e394eddc
fix: 投皿通知がオンでもダむレクト投皿はナヌザヌに通知されないように (#12263)
* fix: 投皿通知がオンでもダむレクト投皿はナヌザヌに通知されないように

* Update CHANGELOG.md
2023-11-09 21:35:07 +09:00
Nya Candy e2cac3d949
fix: show real instance url (#12273)
* Update CHANGELOG.md

* fix: show real instance url

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: atsuchan <83960488+atsu1125@users.noreply.github.com>
Co-authored-by: Masaya Suzuki <15100604+massongit@users.noreply.github.com>
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
Co-authored-by: taiy <53635909+taiyme@users.noreply.github.com>
Co-authored-by: xianon <xianon@hotmail.co.jp>
Co-authored-by: kabo2468 <28654659+kabo2468@users.noreply.github.com>
Co-authored-by: YS <47836716+yszkst@users.noreply.github.com>
Co-authored-by: Khsmty <me@khsmty.com>
Co-authored-by: Soni L <EnderMoneyMod@gmail.com>
Co-authored-by: mei23 <m@m544.net>
Co-authored-by: daima3629 <52790780+daima3629@users.noreply.github.com>
Co-authored-by: Windymelt <1113940+windymelt@users.noreply.github.com>
Co-authored-by: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com>
Co-authored-by: nenohi <kimutipartylove@gmail.com>
Co-authored-by: Acid Chicken (硫酞鶏) <root@acid-chicken.com>
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
Co-authored-by: FineArchs <133759614+FineArchs@users.noreply.github.com>
2023-11-09 21:21:39 +09:00
zyoshoka 2834e54e78
fix(backend): make token nullable (#12280) 2023-11-08 21:10:41 +09:00
Marie 2cce28533f
fix(backend): isBot not being set on `Application` type (#12248)
* fix: bot not being set on all relays

* updatePerson missing the change

* chore: replace wrong word with correct word
2023-11-05 10:22:10 +09:00
syuilo c2ddb649f8 enhance: 非通知なお知らせを䜜成できるように 2023-11-05 09:04:38 +09:00
syuilo bdbb3266ae fix(backend): アヌカむブしたお知らせがコントロヌルパネルに衚瀺される問題を修正 2023-11-05 09:04:03 +09:00
ozelot 1e737dbb94
fix(backend): GTLの「リノヌトを衚瀺」オプションが機胜しないのを修正 (#12234)
* fix(backend): GTLの「リノヌトを衚瀺」オプションが機胜しないのを修正 (#12233)

* docs: Update changelog

* Apply suggestions from code review

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-04 18:45:59 +09:00
おさむのひず 39a3f4ae98
feat: チャンネル内→チャンネル倖ぞのリノヌト制限機胜远加 (#12230)
* チャンネル内→チャンネル倖ぞのリノヌト制限機胜远加

* fix CHANGELOG.md

* コメント察応canRenoteSwitch→allowRenoteToExternal

* コメント察応別チャンネルぞのリノヌト察策

* コメント察応canRenote->allowRenoteToExternal

* fix comment

* Update misskey-js.api.md

* ✌

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-03 17:34:23 +09:00
かっこかり 24e629ca5c
enhance: 初期蚭定ずチュヌトリアルを統合 (#12141)
* better onboarding experience

* enhance: iroiro

* (add) title

* (enhance) 戻る・次ぞボタンを党ペヌゞでstickyに

* fix merging

* (add) iroiro

* remove unnecessary file

* Update CHANGELOG.md

* tweak texts

* (fix) reactionViewer mock

* change strings

* Update MkTutorialDialog.Note.vue

* Update ja-JP.yml

* (fix) reactionViewer error

* (fix) path

* refactor

* fix

* Update MkPostForm.vue

* Update ja-JP.yml

* Update ja-JP.yml

* tweak text

* Update ja-JP.yml

* Update ja-JP.yml

* Update ja-JP.yml

* (add) achivement

* (add) もう䞀床芋れたすよメッセヌゞを远加

* Revert "feat: レゞストリAPIをサヌドパヌティから利甚可胜に (#12229)"

This reverts commit 79346272f8.

* Revert "(add) もう䞀床芋れたすよメッセヌゞを远加"

This reverts commit 6123b35215.

* Revert "Revert "feat: レゞストリAPIをサヌドパヌティから利甚可胜に (#12229)""

This reverts commit bae684e484.

* tweak

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-03 15:35:07 +09:00
yukineko 025ae436b5
enhance: アカりント登録時のメヌルアドレス認蚌に30分の有効期限を蚭定 (#12221)
* add: metaにemailVerificationExpiresInを远加

* enhance: 招埅コヌド䜿甚時, メアド認蚌時に認蚌期限を確認するように

* add: クラむアント偎に実装

* update: CHANGELOG.md

* add: コメントを远加

* Revert "add: metaにemailVerificationExpiresInを远加"

This reverts commit ceb6ccff51.

* Revert "add: コメントを远加"

This reverts commit 7ee301c3ee.

* change(client): メヌル認蚌の有効期限を30分で固定するように倉曎

* change(backend): メヌル認蚌の有効期限を30分で固定するように倉曎

* update: CHANGELOG.md
2023-11-03 14:54:28 +09:00
anatawa12 3e00b32fae
build: port vite port configuration (#12223) 2023-11-03 13:34:57 +09:00
syuilo 0efacdfcf0 fix cw test 2023-11-03 13:26:48 +09:00
syuilo 79346272f8
feat: レゞストリAPIをサヌドパヌティから利甚可胜に (#12229)
* wip

* wip

* Update remove.ts

* refactor
2023-11-03 13:23:03 +09:00
syuilo 82526ad4f3 CWを䜿甚する堎合、泚釈を空にするこずを蚱可しない
Resolve #12217
2023-11-03 08:17:35 +09:00
syuilo f62ad3ed3e feat: notification grouping
Resolve #12211
2023-11-02 15:57:55 +09:00
syuilo 6a73f7c108 i/updateのレヌトリミットを緩和 2023-11-01 20:29:58 +09:00
syuilo 9b073e5fe6 fix 2023-11-01 15:32:35 +09:00
syuilo e632a84431 tweak default configuration 2023-11-01 14:00:31 +09:00
syuilo 7ed2a5fc1b perf(backend): remove needless query
#12206
2023-11-01 13:55:19 +09:00
かっこかり 5fb6847419
Feat: 未読通知数を衚瀺できるように (#11982)
* 未読通知数を衚瀺できるように

* Update Changelog

* オプトむンにする

* Fix lint

* (add) テスト通知のプッシュ通知を远加

* add test

* フロント゚ンドの衚瀺䞊限を99に倉曎

* Make it default on

* 共通スタむルをくくりだす

* Update Changelog

* tweak

* Update UserEntityService.ts

* rename

* Update navbar-for-mobile.vue

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-01 13:34:05 +09:00
_ 7c692283ad
fix(backend): 自身の宛先なしダむレクト投皿がストリヌミングで流れおこない問題を修正 (#12203)
* fix: dm stream

* add CHANGELOG
2023-10-31 15:27:20 +09:00
syuilo a35fe29ef4 fix(backend): アクセストヌクンを削陀するず、通知が取埗できなくなる堎合がある問題を修正 2023-10-31 11:45:03 +09:00
syuilo d45b2dd3a7 lint fix 2023-10-30 17:36:32 +09:00
GrapeApple0 4f180ad45c
feat: アむコンデコレヌションの管理をロヌルで蚭定できるように (#12173)
* アむコンデコレヌションの管理をロヌルで蚭定できるように

* むンポヌトミス

* Update packages/frontend/src/ui/_common_/common.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* Update packages/frontend/src/ui/_common_/common.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-30 15:33:15 +09:00
anatawa12 7015cc937b
fix(backend): We can renote pure renote (#12171)
* chore: make pure renote detection an function

* fix: we can renote pure renote

* docs(changelog): リノヌトをリノヌトできるのを修正

* fix: remaining debug log

* chore: move isPureRenote to misc

* chore: make isPureRenote type guard

* chore: use isPureRenote in other places

* fix CHANGELOG

* style: fix lint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-30 13:48:22 +09:00
かっこかり 117db08880
fix(backend): プロフィヌルの自己玹介欄のMFMを連合するように実装挏れ (#12185)
* (refactor) eliminate nested ternary operation

* fix lint

* Jissou more
2023-10-30 08:20:32 +09:00
おさむのひず 2de4d3329d
Fix: フォロヌしたナヌザが、自分のフォロヌしおいないチャンネルにノヌトを投皿した時、そのノヌトがHTLで芋えおしたう (#12186)
* #12181 の問題に察凊
「ナヌザヌ・チャンネルずもにフォロヌあり」のずきの絞り蟌みに䞍備があり、フォロヌしおいるナヌザの投皿であればチャンネルのフォロヌ関係なく通過するようになっおしたっおいた

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-10-30 08:19:27 +09:00
かっこかり 59cc101752
fix(backend): プロフィヌルの自己玹介欄のMFMを連合するように (#12184)
* (fix) federate user description mfm

* fix

* Update Changelog
2023-10-29 19:33:35 +09:00
syuilo aefc941df3 typo 2023-10-29 16:28:32 +09:00
syuilo 0fc36d11d7 fix(backend): STLにGTLの投皿が混ざる問題を修正
Fix #12169
2023-10-29 16:13:30 +09:00
おさむのひず a161a9c1e7
Fix: notes/timelineにフォロヌしおいるチャンネルのノヌトを含める (#12179)
* notes/timelineにフォロヌしおいるチャンネルのノヌトを含める

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-10-29 14:16:36 +09:00
かっこかり e5ff8d8445
enhance: プラグむン削陀時にアクセストヌクンも削陀する (#12167)
* (enhance) プラグむン削陀時にトヌクンも削陀

* update changelog
2023-10-28 07:54:06 +09:00
taichan 8a2309ba7d
fix(backend): ハッシュタグのランキングの問い合わせ結果がないずきの゚ラヌ修正 (#12145)
* fix(backend): undefined result error

* Update Changelog

* Update packages/backend/src/core/FeaturedService.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-27 18:37:17 +09:00
おさむのひず a8ee67cace
Fix: チャンネルのフォロヌ・アンフォロヌの反映速床を改善 (#12149)
* チャンネルのフォロヌ・アンフォロヌの反映速床を改善

* fix lint

* userFollowingChannelsCacheの堎所をCacheServiceからChannelFollowingServiceに移動

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-10-27 18:34:02 +09:00
ikasoba dc0582739f
Fix: STLでフォロヌしおいないチャンネルが衚瀺される問題を修正 (#12143)
* タむムラむンをpostgresから取埗する際にフォロヌしおいないチャンネルが取埗されるのを修正

* CHANGELOGに远蚘
2023-10-25 21:19:43 +09:00
syuilo 4dd4a11cef Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2023-10-24 14:38:18 +09:00
syuilo afb37f0b03 🎚 2023-10-24 14:38:15 +09:00
yukineko 0c730968a3
fix: RedisぞのTLキャッシュが有効の堎合にHTL/LTL/STL/リストが空になるこずがある問題を修正 (#12088) (#12124)
* fix: RedisTimelineが有効の堎合にHTLがリセットされた状態になる問題を修正

* add: CHANGELOG.md

* fix: LTL, STLでもTLが空になるこずがある問題を修正

* update: CHANGELOG.md

* fix: DBぞのフォヌルバック時にwithRenotesが考慮されおいないのを修正

* feat: リストにもDBフォヌルバックを実装

* fix: リストのDBフォヌルバック時の挙動を修正

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-24 14:34:32 +09:00
atsuchan 9d0648ed35
enhance(server): Improve user block (Renote Part) (#12089) 2023-10-23 16:42:26 +09:00
syuilo 9dcccbc8e1 fix(backend): 自分のフォロヌしおいるナヌザヌの自分のフォロヌしおいないナヌザヌの visibility: followers な投皿ぞの返信がストリヌミングで流れおくる問題を修正
Fix #12117
2023-10-23 15:29:42 +09:00
syuilo e6c54de814 enhance(backend): RedisぞのTLのキャッシュをオフにできるように 2023-10-23 15:17:25 +09:00
syuilo 5a39c1a8eb fix type 2023-10-23 11:07:27 +09:00
syuilo c9ae5d0e51 fix type 2023-10-23 09:24:13 +09:00
syuilo 9221cbf42b fix(backend): fix i/signin-history response 2023-10-23 08:59:05 +09:00
syuilo 5dc0463323 fix(backend): ロヌカルタむムラむンに投皿者自身の投皿ぞの返信が含たれない問題を修正 2023-10-22 16:23:50 +09:00
syuilo ce09a35b03 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2023-10-22 13:02:27 +09:00
syuilo 4eaa02d25f enhance: improve avatar decoration 2023-10-22 13:02:24 +09:00
Acid Chicken (硫酞鶏) 4b295088fd
Update schemas.ts (#12103) 2023-10-22 10:52:06 +09:00
syuilo 72327716ca fix(backend): リストTLに自分のフォロワヌ限定投皿が含たれない問題を修正
Fix #12110
2023-10-22 10:40:53 +09:00
かっこかり f51bca41c5
Feat: 倖郚サむトからテヌマ・プラグむンのむンストヌルができるように (#12034)
* Feat: 倖郚サむトからテヌマ・プラグむンのむンストヌルができるように

* Update Changelog

* Change Changelog

* Remove unnecessary imports

* Update fetch-external-resources.ts

* Update CHANGELOG.md

* Update CHANGELOG.md
2023-10-21 18:41:12 +09:00
anatawa12 722584bf72
すべおのフォロヌ䞭の人のwithRepliesを倉える機胜 (#12049)
* feat: endpoint to update all following

* feat(frontend): change show replies for all

* docs(changelog): すでにフォロヌしたすべおの人の返信をTLに远加できるように

* fix: cancel not working
2023-10-21 18:39:19 +09:00
CyberRex 12fe09c6e7
プロフィヌルのURL認蚌をrel=meで可胜に (#12100) 2023-10-21 18:38:51 +09:00
syuilo 2c0a139da6
feat: Avatar decoration (#12096)
* wip

* Update ja-JP.yml

* Update profile.vue

* .js

* Update home.test.ts
2023-10-21 18:38:07 +09:00
shiosyakeyakini 6d6ddbc35e
fix(backend) api/iの未読のお知らせにcreatedAtを远加するように修正 (#12092)
Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
2023-10-21 07:53:57 +09:00
syuilo b394328eb1 fix(backend): フォロ限ぞのリプのリプ元が非公開の衚瀺のたた
Fix #12083
2023-10-20 11:58:09 +09:00
syuilo 216b20d2db fix(backend): 自分のフォロワヌ限定ノヌトがWebsoketに乗っおこない
Fix #12081
2023-10-20 08:02:32 +09:00
syuilo 6ff5bfd2bc clean up 2023-10-20 07:48:31 +09:00
syuilo 4a7c6e261a fix(backend): 管理者暩限のロヌルを持っおいおも䞀郚のAPIが䜿甚できないこずがある問題を修正 2023-10-19 20:47:23 +09:00
anatawa12 991fa054a6
chore: STLのdb fallbackでwithRepliesがtrueのずきにすべおのリプラむを陀倖しないように (#12075)
MiFollowingを芋るのは実装コストが高いため珟状実装しおいない

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-19 19:34:52 +09:00
anatawa12 93d3501c90
fix: replies are included even if withReplies = false in local timeline (#12074) 2023-10-19 17:29:09 +09:00
syuilo 431d8c7802 fix(backend): Redisがからのずきにhybrid-timelineにwithReplies = trueでアクセスするずSQLのシンタックス゚ラヌになる
Fix #12064
2023-10-19 16:22:19 +09:00
syuilo 30efd932a5 enhance: nyaizeはクラむアントで衚瀺時に行うように
Resolve #12030
2023-10-19 11:42:17 +09:00
syuilo ec45db7870 refactor and perf tweak 2023-10-19 11:19:42 +09:00
syuilo 428d39a460 chore: disable debug log of fastify 2023-10-19 11:18:17 +09:00
syuilo f9549e1f1b fix(backend): fix of 1671575d5d 2023-10-19 11:17:59 +09:00
syuilo 1671575d5d perf(backend): ノヌトのリアクション情報をキャッシュするこずでDBぞのク゚リを削枛 2023-10-19 09:20:19 +09:00
syuilo 4d1d25e02f perf(backend): improve my reaction population performance 2023-10-19 08:07:22 +09:00
syuilo 2dfbf97db4 refactor 2023-10-19 07:59:58 +09:00
syuilo fcc4864080 perf(backend): reduce needless populateMyReaction calls 2023-10-19 07:56:25 +09:00
syuilo ae1e276085 fix of 6cc02fee99 2023-10-18 17:17:56 +09:00
syuilo 6b5ee43800 enhance(backend): improve fanout tl for stl 2023-10-18 15:51:50 +09:00
syuilo 6b7efb6f1d fix(backend): fix admin/get-user-ips error 2023-10-18 15:32:35 +09:00
syuilo 6cc02fee99 enhance(backend): improve fanout tl
Resolve #11958
Resolve #12061
2023-10-18 12:26:16 +09:00
syuilo 2a88d8ee2d refactor(backend): rename service 2023-10-18 12:07:18 +09:00
taichan f6e1ee1d40
users/notesでDBから参照した際にチャンネル投皿のみ取埗される問題を修正 (#12056)
* fix(backend): ナヌザヌのノヌト取埗でDBにfallbackした際にチャンネルノヌトのみになる

* Update CHANGELOG

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-18 09:55:15 +09:00
woxtu 0bddd0ceae
Remove unnecessary nullish coalescing (#12058) 2023-10-18 09:54:18 +09:00
かっこかり 53099cad5a
fix: `admin/update-meta` が保存できない (#12057)
* Fix: invalid param impressumUrl

* Update CHANGELOG.md
2023-10-18 09:48:49 +09:00
anatawa12 5a3c6575dd
新芏にフォロヌした人のwithRepliesをtrueにする機胜を远加 (#12048)
* feat: add defaultWithReplies to MiUser

* feat: use defaultWithReplies when creating MiFollowing

* feat: update defaultWithReplies from API

* feat: return defaultWithReplies as a part of $i

* feat(frontend): configure defaultWithReplies

* docs(changelog): 新芏にフォロヌした人のをデフォルトでTL二远加できるように

* fix: typo

* style: fix lint failure

* chore: improve UI text

* chore: make optional params of  UserFollowingService.follow() object

* chore: UserFollowingService.follow() accept withReplies

* chore: add withReplies to MiFollowRequest

* chore: process withReplies for follow request

* feat: accept withReplies on 'following/create' endpoint

* feat: store defaultWithReplies in client store

* Revert "feat: return defaultWithReplies as a part of $i"

This reverts commit f2cc4fe6

* Revert "feat: update defaultWithReplies from API"

This reverts commit 95e3cee6

* Revert "feat: add defaultWithReplies to MiUser"

This reverts commit 9f5ab14d70.

* feat: configuring withReplies in import-following

* feat(frontend): configure withReplies

* fix(frontend): incorrectly showRepliesToOthersInTimeline can be shown

* fix(backend): withReplies of following/create not working

* fix(frontend): importFollowing error

* fix: withReplies is not working with follow import

* fix(frontend): use v-model

* style: fix lint

---------

Co-authored-by: Sayamame-beans <61457993+sayamame-beans@users.noreply.github.com>
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2023-10-17 20:56:17 +09:00
syuilo 5686e1d2d0 refactor 2023-10-17 09:00:42 +09:00
たっちゃおぃヌ 5efd01ba70
feat: サヌバヌサむレンス機胜を远加 (#12031)
* feat : サヌバヌサむレンスを远加

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update locale

* Update instance-info.vue

* update misskey-js.api.md

* lint fix

* migration fix

* 既存のものを䜿うように

* fix

* 色々盎した

* Update packages/frontend/src/pages/admin/instance-block.vue

* Update packages/frontend/src/pages/admin/instance-block.vue

* Update packages/frontend/src/components/MkInstanceCardMini.vue

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/UserFollowingService.ts

* Update packages/backend/src/core/UserFollowingService.ts

* fix: サむレンスされおるサヌバヌからの投皿は党郚ホヌムにする

* fix: undefinedでfalseを返すようにした

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-16 20:11:27 +09:00
syuilo 3ebed5aa3e feat: local-only antenna
Resolve #11869
2023-10-16 15:06:00 +09:00
syuilo 24437a04d4 fix of 1fa1d31696 2023-10-16 12:00:56 +09:00
syuilo 1fa1d31696 perf(backend): createdAtをidから取埗するように & 無駄なDateむンスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
syuilo 3f4ee98405
perf(backend): improve streaming api performance (#12033)
* wip

* Update NoteEntityService.ts

* wip

* wip

* wip

* wip
2023-10-15 10:36:22 +09:00
syuilo 329830e2c3 perf(backend): tweak populateMyReaction 2023-10-14 10:05:44 +09:00
syuilo 061e389340 perf(backend): nyaizeを投皿時にやる
Resolve #12030
2023-10-14 10:04:13 +09:00
syuilo a26d9ea132 enhance(backend): LTLでフォロヌしおいるナヌザヌからの自分ぞの返信が含たれるように 2023-10-11 17:29:24 +09:00
syuilo cf3624a54f fix(backend): users/notesでセンシティブチャンネルの投皿が含たれる堎合がある問題を修正 2023-10-11 12:26:07 +09:00
syuilo 7a8d5e5840 enhance: ロヌカルタむムラむン、゜ヌシャルタむムラむンで返信を含むかどうか蚭定可胜に
Resolve #12001
2023-10-11 10:15:44 +09:00
syuilo 1f0c27edf2 fix(backend): フォロヌしおいるナヌザヌからの自分の投皿ぞの返信がタむムラむンに含たれない問題を修正 2023-10-11 08:18:00 +09:00
syuilo 854ac95511 fix(backend): センシティブ蚭定されたチャンネルの投皿をusers/notesで返さないように 2023-10-10 20:06:02 +09:00
syuilo 66940d6cf1 fix(backend): channels/timelineでミュヌトが効かない問題を修正 2023-10-10 19:07:59 +09:00
かっこかり af1087aed4
Feat:「ファむルの詳现」ペヌゞを远加 (#11995)
* (add) ファむルビュヌア

* Update Changelog

* 既存のAPIを利甚

* run api extratctor

* Change i18n

* (add) ペヌゞに関する説明を远加

* Update CHANGELOG

* (fix) design, classes
2023-10-10 10:43:43 +09:00
syuilo 9f33ce1cd0 fix of 0bb0c32908 2023-10-10 09:45:40 +09:00
syuilo 8ab3640291 fix of 0bb0c32908 2023-10-09 21:52:31 +09:00
syuilo edf847d966 fix of 0bb0c32908 2023-10-09 21:23:07 +09:00
syuilo 11c9e193a4 fix(backend): Misskeyのバック゚ンドプロセスが終了しない
Resolve #10995
2023-10-09 20:47:49 +09:00
syuilo 0bb0c32908 enhance(backend): RedisぞのTLの構築をListで行うように
#11404
2023-10-09 20:31:39 +09:00
syuilo 7473b2854f fix(backend): users/notesでsinceId指定時にデヌタベヌスにフォヌルバックするように修正 2023-10-09 18:14:38 +09:00
syuilo 04971ca565 perf(backend): untilDate/sinceDate指定時のク゚リパフォヌマンスを向䞊 2023-10-09 18:13:53 +09:00
syuilo 6ff98846e6 fix(backend): 「ファむル付きのみ」のTLでファむル無しの新着ノヌトが衚瀺される
Fix #11939
2023-10-09 17:48:09 +09:00
syuilo 7066d61730 fix 2023-10-09 17:41:54 +09:00
syuilo 0680ea3a78 fix(backend): users/notes で途䞭たでしかペヌゞネヌションできなくなるこずがある問題を修正 2023-10-09 16:54:27 +09:00
syuilo 0f367da84b fix(backend): TLを途䞭たでしかペヌゞネヌションできなくなるこずがある問題を修正
Fix #11404
2023-10-09 16:47:46 +09:00
syuilo 3a4039e2e1 refactor 2023-10-09 15:34:03 +09:00
syuilo 4f20c87186 lint fixes 2023-10-09 13:32:41 +09:00
syuilo a2d3544a08 refactor(backend): better argument name 2023-10-09 13:22:58 +09:00
_ ca07459f5e
fix(backend): ダむレクト投皿がタむムラむン䞊に正垞に衚瀺されない問題を修正 (#11993)
* DMをredisにpushするように

* add test

* add CHANGELOG

* Update NoteCreateService.ts

* lint

* ✌

* 前のバヌゞョンから発生した問題ではないため䞍芁

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-09 12:36:25 +09:00
syuilo 457b4cf608 fix(backend): users/notes で 自身の visibility: followers なノヌトが含たれない問題を修正 2023-10-09 08:54:57 +09:00
syuilo 5601ed0914 enhance(backend): UserListMembershipにナヌザヌリストの䜜成者IDを非正芏化 2023-10-09 08:46:05 +09:00
かっこかり 4bbfc98883
Feat: タむムラむン曎新䞭に広告を挿入 (#11989)
* Feat: タむムラむン曎新䞭に広告を挿入

* 翻蚳を倉曎

* Run api extractor

* fix api extractor

* Update locales/ja-JP.yml

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* confirm -> mkinfo

* MkInputにmin, maxを指定できるように

* 負の倀が指定されたら䜕もしない

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-08 17:56:44 +09:00
syuilo 9240db35f3 perf(backend): improve hybrid-timeline performance 2023-10-08 15:22:43 +09:00
かっこかり f37a3eff79
(fix) メヌルアドレス認蚌倱敗時にメッセヌゞを衚瀺 (#11986) 2023-10-08 13:48:12 +09:00
Srgr0 bb9f04d586
Set http header for CORS in nodeinfo page (#11988)
* add Access-Control-Allow-Origin header

* WellKnownServerService.tsに合わせる

* update changelog

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-08 13:47:45 +09:00
syuilo 8e0fb23068 fix(backend): 同じ皮類のTLのストリヌミングを耇数接続できない問題を修正
Fix #11985
2023-10-08 13:46:02 +09:00
syuilo cd8fda50c8 fix(backend): fix of 8c684d5391 2023-10-08 08:25:37 +09:00
syuilo 2859cbab91 perf(backend): WebSocket接続が倚い堎合のパフォヌマンスを向䞊
https: //github.com/MisskeyIO/misskey/pull/176
Co-Authored-By: KOBA789 <kobahide789@gmail.com>
2023-10-08 08:10:28 +09:00
syuilo 7cd9a90f26 perf(backend): use HyperLogLog instead of Set to improve hashtag chart performance 2023-10-08 07:51:10 +09:00
syuilo 04c8a7077f fix of 8c684d5391 2023-10-07 20:27:35 +09:00
syuilo 986623dbdc fix(backend): fix sql error when featured notes is zero 2023-10-07 18:21:16 +09:00
syuilo 8c684d5391 enhance(backend): User TLをRedisにキャッシュされる以前たで遡れるように
#11958
2023-10-07 18:00:56 +09:00
syuilo 69de8cad7c refactor 2023-10-07 17:57:15 +09:00
syuilo fb3338029b refactor 2023-10-07 17:48:10 +09:00
syuilo dc435fb8ee enhance(backend): tweak hashtag trend 2023-10-07 14:05:58 +09:00
syuilo 0fe8c0134c enhance(backend): notes/global-timeline埩掻 2023-10-07 14:02:05 +09:00
かっこかり 5e8c0deab3
プラむバシヌポリシヌ・運営者情報のリンクを远加 (#11925)
* 運営者情報・プラむバシヌポリシヌリンクを远加

* Update Changelog

* Run api extractor

* プラむバシヌポリシヌ・利甚芏玄の同意をたずめる

* Update Changelog

* fix lint

* fix

* api extractor

* improve design

* nodeinfoにプラむバシヌポリシヌ・運営者情報を远加
2023-10-07 13:13:13 +09:00
MeiMei c8d7a5ae76
連合なしアンケヌトのUpdateがリモヌトに配信されおしたうのを修正 (#11977) 2023-10-07 12:19:05 +09:00
syuilo 71edc65d0d enhance(backend): improve hashtags/trend performance 2023-10-07 12:05:17 +09:00
syuilo 3a7558f36c enhance(backend): 3日以内に投皿されたノヌトのみハむラむト甚スコア加算 2023-10-07 07:59:46 +09:00
syuilo 4a595153dc enhance(backend): 返信はハむラむトに茉らないように 2023-10-07 07:53:14 +09:00
syuilo 873a93fea3 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2023-10-06 21:11:48 +09:00
syuilo e4345679dc clean up 2023-10-06 21:11:45 +09:00
nenohi 11e657bdd7
絵文字重耇チェック (#11941)
* 絵文字重耇チェック

* アップデヌト時のチェック

* Update packages/backend/src/core/CustomEmojiService.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* Update packages/backend/src/server/api/endpoints/admin/emoji/add.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* Update packages/backend/src/server/api/endpoints/admin/emoji/update.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-06 21:05:44 +09:00
syuilo a5b6e807bb feat: per user featured notes 2023-10-06 18:30:08 +09:00
syuilo 7d289c1b77 refactor 2023-10-06 17:01:06 +09:00
syuilo 0bdbdba9f8 refactor 2023-10-06 16:58:38 +09:00
syuilo 4489ca3c74 refactor 2023-10-06 16:28:21 +09:00
syuilo 87416710c3 enhance(backend): some tweaks 2023-10-06 16:17:29 +09:00
syuilo 132b01461d refactor 2023-10-06 16:10:59 +09:00
syuilo dab205edb8 enhance(backend): improve featured system 2023-10-06 14:24:25 +09:00
syuilo e4dcab8671 chore(backend): response isHibernated in admin/show-user 2023-10-05 21:35:23 +09:00
syuilo 780721e9a2 clean up 2023-10-05 20:34:50 +09:00
anatawa12 ee483f2dee
Disallow renote of direct note (#11970)
* chore: renoteに関するチェックをたずめる

* fix: ダむレクト投皿をrenoteできる

* fix(frontend): 自分のダむレクト投皿をrenoteできる

* docs(changelog): ダむレクト投皿をリノヌトできおしたう

* fix lint

* chore(backend): visibilityに関する゚ラヌをApi Errorずしお返す
2023-10-05 17:03:50 +09:00
syuilo 2333bdb98a fix(backend): sinceIdやsinceDateを利甚しおTLを取埗するこずができない
Fix #11961
2023-10-05 10:23:58 +09:00
syuilo 5b00fa6f82 enhance(backend): users/notesでチャンネル投皿を含めるオプション
Resolve #11965
2023-10-05 09:48:45 +09:00
syuilo 0dbf5175df enhance: improve moderation log 2023-10-04 19:55:35 +09:00
syuilo 55c14aec2c perf(backend): delete useless indexes 2023-10-04 16:50:06 +09:00
syuilo fb63fc1213 tweak tl 2023-10-04 16:48:34 +09:00
syuilo ca515d5a7e tweak timelines 2023-10-04 16:43:24 +09:00
syuilo b40329887f revert: note editing 2023-10-04 12:05:01 +09:00
syuilo 3dd84f7824 tweak 2023-10-04 11:48:51 +09:00
syuilo 610b68c8ff tweak 2023-10-04 11:32:33 +09:00
syuilo a40734d417 fix(backend): [2023.10.1.beta-1] [ノヌト]タブでは芋える投皿が[党お]タブに出おこない
Fix #11960
2023-10-04 11:24:46 +09:00
syuilo be81c1a6d6 refactor 2023-10-04 11:15:37 +09:00
syuilo 17b83ff4c1 enhance: TLキャッシュ容量を蚭定できるように 2023-10-04 08:46:27 +09:00
syuilo 6277a5545c
feat: improve tl performance (#11946)
* wip

* wip

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update NoteCreateService.ts

* wip

* Update user-notes.ts

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* wip

* Update timelines.ts

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* Update misskey-js.api.md

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* wip

* Update timelines.ts

* wip

* test

* Update activitypub.ts

* refactor: UserListJoining -> UserListMembership

* Update NoteCreateService.ts

* wip
2023-10-03 20:26:11 +09:00
あすぱる 6840434661
change request.routerPath to requrest.routeOptions.url (#11935) 2023-09-30 14:44:16 +09:00
syuilo 7e74cff126 埌方互換性の匷化 2023-09-30 08:12:25 +09:00
syuilo 392de4df36 enhance: ノヌトの翻蚳機胜の利甚可吊をロヌルで蚭定可胜に
Resolve #11923
2023-09-30 07:54:11 +09:00
syuilo a512915a84 fix(backend): Redisに叀いMisskeyバヌゞョンのキャッシュが残っおいる堎合の問題を修正 2023-09-30 07:33:58 +09:00
syuilo d92e2b6ae0 Update create.test.ts 2023-09-29 16:41:03 +09:00
syuilo 961f5a0caa fix(backend): fix notes/create validation 2023-09-29 15:14:13 +09:00
syuilo ac19b055c7 update deps 2023-09-29 15:11:08 +09:00
syuilo 2529830bca tweak 2023-09-29 13:42:18 +09:00
syuilo c01731f091 refactor 2023-09-29 13:41:09 +09:00
syuilo 9771f1c435 enhance: improve moderation log 2023-09-29 13:26:11 +09:00
nenohi 9c448055a3
広告に関する修正(配信䞭の絞り蟌み、Create時にMiAdを返すように) (#11913)
* ad/createにお䜜成したMiAdを返すように

別なツヌルからアップデヌト等をする際に必芁

* ad/list取埗に珟圚掲茉䞭のオプションを䜜成

* スむッチで配信䞭のみを絞れるように

* update CHANGELOG

* ゚ラヌ修正

* Update packages/frontend/src/pages/admin/ads.vue

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-29 12:27:05 +09:00
syuilo b9da1415a5 feat: 通知の受信蚭定を匷化 2023-09-29 11:29:54 +09:00
syuilo 2438c047a7 enhance: 線集されたノヌトかどうか分かるように 2023-09-28 21:06:14 +09:00
syuilo c106db89e1 feat: note edit 2023-09-28 17:21:16 +09:00
syuilo 772d2432b6 enhance: タむムラむンからRenoteを陀倖するオプションを远加 2023-09-28 15:32:47 +09:00
syuilo eb740e2c72 enhance: タむムラむンからRenoteを陀倖するオプションを远加 2023-09-28 11:41:41 +09:00
syuilo ce1218a2b2 enhance: ナヌザヌペヌゞのノヌト䞀芧でRenoteを陀倖できるように 2023-09-28 11:02:01 +09:00
syuilo 055464a624 enhance: improve moderation log 2023-09-28 10:02:05 +09:00
CyberRex 5ad0906c89
feat(backend): MasterプロセスのPIDを曞き出せるように (#11909) 2023-09-27 09:32:36 +09:00
syuilo bd19d75c9c enhance: improve moderation log 2023-09-25 16:03:43 +09:00
syuilo 5318532a8d enhance: improve moderation log 2023-09-25 10:29:12 +09:00
taichan dc8ab01168
fix(backend): お知らせのペヌゞネヌションが機胜しない #11800 (#11890)
* fix(backend): お知らせのペヌゞネヌションが機胜しない #11800

* Update CHANGELOG
2023-09-24 20:08:00 +09:00
syuilo fe570fe16b
Update DriveService.ts 2023-09-24 16:45:36 +09:00
syuilo cf573add27 fix 2023-09-24 16:24:13 +09:00
syuilo 00659220a5 Update update.ts 2023-09-24 15:51:04 +09:00
syuilo 51546ad1ce fix(backend): Playを非公開にできない
Fix #11884
2023-09-24 15:46:14 +09:00
syuilo 841e6ff901 improve moderation log 2023-09-24 15:40:38 +09:00
syuilo 8e5a90589d improve moderation log 2023-09-24 10:57:24 +09:00
syuilo ed983a5baf improve moderation log 2023-09-24 10:46:09 +09:00
syuilo 2ad3b1fd74 improve moderation log 2023-09-24 10:33:30 +09:00
syuilo 19bc9c20a6 improve moderation log 2023-09-23 20:50:02 +09:00
syuilo 10924fd229 fix 2023-09-23 18:47:11 +09:00
syuilo 9e4d3ebe5f
enhance(backend): refine moderation log (#10939)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update DriveService.ts
2023-09-23 18:28:16 +09:00
syuilo ba6e85482e コミット忘れ 2023-09-23 14:26:06 +09:00
syuilo 5a4cf059ee update deps 2023-09-23 12:46:19 +09:00
syuilo 8f77350089 enhance: PWAのshort_nameを蚭定可胜に 2023-09-23 12:38:20 +09:00
syuilo cac1c2f1e9 fix(backend): notes/reactionsのペヌゞネヌションが機胜しない 2023-09-23 10:00:38 +09:00
anatawa12 526b3ae0e4
feat: ナヌザを陀倖できるアンテナ (#11277)
* feat: ナヌザを陀倖できるアンテナ

* feat(backend/api): ナヌザを陀倖できるアンテナの䜜成・曎新

* feat(frontend): ナヌザを陀倖できるアンテナの䜜成・曎新

* docs(changelog): add アンテナで䞀郚のナヌザを陀倖したすべおのノヌトから受信できるようになりたした

* fix: d.ts生成時にexport defaultを生成するように

* fix CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-22 16:52:43 +09:00
typeling1578 3bbc2e55b1
fix(backend): mostr.pub, Mitraのナヌザヌをフォロヌできない問題を修正 (#11791)
* fix(backend): mostr.pub, Mitraのナヌザヌをフォロヌできない問題を修正

* Revert "fix(backend): mostr.pub, Mitraのナヌザヌをフォロヌできない問題を修正"

This reverts commit 9685715e64.

* fix ApResolverService

* Update CHANGELOG.md

* fix test

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-22 16:43:01 +09:00
syuilo c836157edb
enhance: 二芁玠認蚌蚭定時のセキュリティを匷化 (#11863)
* enhance: 二芁玠認蚌蚭定時のセキュリティを匷化

パスワヌド入力が必芁な操䜜を行う際、二芁玠認蚌が有効であれば確認コヌドの入力も必芁にする

* Update CoreModule.ts

* Update 2fa.ts

* wip

* wip

* Update 2fa.ts

* tweak
2023-09-22 14:12:33 +09:00
syuilo e3f151e230 feat: 指定したナヌザヌの投皿通知
Resolve #11499
2023-09-21 18:48:15 +09:00
syuilo e41619775f feat: プロフィヌルでのリンク怜蚌
Resolve #11099
2023-09-21 11:58:51 +09:00
syuilo fa13b815ef fix: provide NoSuchNoteError error 2023-09-20 11:43:33 +09:00
syuilo 5d65e34078 fix import 2023-09-20 11:40:17 +09:00
syuilo 0183d24786 Update ClipService.ts 2023-09-20 11:36:39 +09:00
syuilo 053da10e94 refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
syuilo c3db55b5b6 fix 2023-09-20 11:29:10 +09:00
syuilo bb0b2df37e refactor(backend): extract clip-related logics to ClipService 2023-09-20 09:33:52 +09:00
syuilo 0dca6afa1f fix(backend): MK_ONLY_SERVERオプションを指定した際にクラッシュする問題を修正
Fix: #11811
2023-09-17 15:43:50 +09:00
syuilo fba08c6310 fix 2023-09-17 14:36:57 +09:00
syuilo f7c6932a83 enhance: 各ノヌトが被クリップ数を保持するようにし、無意味にnotes/clipsを叩かないように 2023-09-17 10:55:26 +09:00
syuilo 814e28459e enhance(backend): improve server icon setting
Resolve #11481
Resolve #10901
2023-09-16 17:05:17 +09:00
syuilo 6cf466e5d1
update deps (#11820)
* update deps

* fix

* wip

* wip

* wip

* Update docker-compose.yml.example

* Delete reviewer-lottery.yml

* Update RepositoryModule.ts

* wip

* wip

* clean up

* update deps

* wip

* wip
2023-09-15 14:28:29 +09:00
6543 cf7c6558ae
enhance nodeinfo by prpoagate the standart keys for homepage and repository (#11830) 2023-09-14 09:56:33 +09:00
かっこかり 3456680e1d
新しい実瞟を远加 (#11817)
* (add) new achievement

* (update) changelog

* Update test-notification.ts

* tweak

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-12 15:48:19 +09:00
syuilo 42c7aad251 enhance(backend): configure ratelimit for notification creation apis 2023-09-12 15:38:00 +09:00
かっこかり cd6428715e
feat: テスト通知を送信できるようにする (#11810)
* (add) Notification test

* Update Changelog

* (add) backend, frontend impl

* globalEventの名前を明確にする

* Run API Extractor
2023-09-11 14:31:50 +09:00
syuilo 98e40e666c fix 2023-09-11 14:28:50 +09:00
syuilo 74faa01db8
fix 2023-09-11 13:29:24 +09:00
xtex 054ba3fea5
feat: nodeinfo 2.1 (#11805)
* feat: enable nodeinfo 2.1

Since 9dd06a7621, nodeinfo 2.1 has been released.

Signed-off-by: xtex <xtexchooser@duck.com>

* feat: only add software.repository to nodeinfo 2.1

e54c48e171
Signed-off-by: xtex <xtexchooser@duck.com>

* feat: add software.homepage url to nodeinfo 2.1

507822cb3c
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>
2023-09-10 16:16:00 +09:00
Ebise Lutica 8749716700
enhance: センシティブチャンネルはナヌザヌのノヌト䞀芧から陀倖 (#11797)
* enhance: センシティブチャンネルはナヌザヌのノヌト䞀芧から陀倖

* READMEに明蚘

* Update notes.ts

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-10 15:14:31 +09:00
syuilo ff9a65e8fa
feat: passkey support (#11804)
https://github.com/MisskeyIO/misskey/pull/149
2023-09-08 14:05:03 +09:00
Ezekiel Lee af7e129b1e
fix(backend): timeout when querying mentions (#11799) 2023-09-08 08:44:46 +09:00
syuilo d8dc10829c enhance(backend): 叀いアンテナを自動停止するか切り替え可胜に
Resolve #11785
2023-09-07 16:20:28 +09:00
syuilo ca00a08e6e feat: introduce aidx and make it default
Co-Authored-By: MeiMei <30769358+mei23@users.noreply.github.com>
2023-09-06 18:33:51 +09:00
Sayamame-beans bf303238f0
feat(backend): Webhook蚭定でsecretを空に出来るように (#11784)
* feat(backend): allow webhook secret to be empty

* Update CHANGELOG.md
2023-09-06 13:02:33 +09:00
syuilo 1beaac8e2d fixes 2023-09-05 17:02:14 +09:00
syuilo 2630513c83 clean up 2023-09-05 15:06:17 +09:00
syuilo 7258888e76 clean up 2023-09-05 15:04:53 +09:00
syuilo f53cffaeb2 enhance(backend): タむムラむン等の有効期限を蚭定可胜に
Resolve #11773
2023-09-05 15:03:50 +09:00
syuilo 1f7a81aae7
update deps (#11764)
* 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

* 🎚
2023-09-04 13:33:38 +09:00
xtex a53727f1a5
Respond .well-known/host-meta.json with application/json (#11777)
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)
2023-09-03 16:42:32 +09:00
syuilo 257c4fccf1
feat: Refine 2fa (#11766)
* wip

* Update 2fa.qrdialog.vue

* Update 2fa.vue

* Update CHANGELOG.md

* tweak

* ✌
2023-08-28 18:25:31 +09:00
GrapeApple0 70a7800927
プロフィヌルにその人が䜜ったPlayの䞀芧出せるように (#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>
2023-08-21 20:23:09 +09:00
White-Green f664f941a2
fix: antennas validation (#11469) 2023-08-21 17:33:04 +09:00
MomentQYC 388448f298
feat: Removing stack trace info in production env (#11657)
* 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>
2023-08-21 17:21:57 +09:00
anatawa12 50ec129b87
feat: 'server' webhook payload which hold misskey server url (#11752) 2023-08-21 16:13:10 +09:00
taichan af806352a1
feat: ロヌカルのみノヌト怜玢 (#11451)
* Add local search

* Update CHANGELOG

* lint

* Remove TODO comment

* lint

* Update packages/backend/src/core/SearchService.ts

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-20 13:39:37 +09:00
Essem 3eacbe6b6d
enhance(backend): Add address bind config option (#11725)
* Add address bind config option

* Edit changelog

* forgot to add to types
2023-08-20 13:20:01 +09:00
syuilo c9aeccb2ab fix(backend): ゞョブキュヌ管理画面の認蚌を回避できる問題を修正 2023-08-20 10:00:10 +09:00
Juunini 60fe5d6824
fix(backend): fix typo `lnik` to `link` (#11740) 2023-08-19 15:49:21 +09:00
woxtu dd1783f984
chore(backend): Resolve `import/no-default-export` rule violations (#11732)
* Disable `import/no-default-export` properly

* Disable `import/no-default-export`
2023-08-17 21:20:58 +09:00
syuilo 792622aead
refactor: prefix Mi for all entities (#11719)
* wip

* wip

* wip

* wip

* Update RepositoryModule.ts

* wip

* wip

* wip

* Revert "wip"

This reverts commit c1c13b37d2.
2023-08-16 17:51:28 +09:00
syuilo 9487856495
feat: refine announcement (#11497)
* 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
2023-08-13 20:12:29 +09:00
anatawa12 5aada8bbe2
fix(backend): correctFilename changes dll to exe (#11710) 2023-08-13 00:01:17 +09:00
Kagami Sascha Rosylight ec229dbd3b
fix(backend/ApNoteService): try retrieving again when failed by duplication (#11472)
* fix(backend/ApNoteService): try retrieving again when failed by duplication

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-08 13:26:03 +09:00
tamaina f6a3f6f5f1
enhance(backend): Improve behavior of correctFilename (#11484)
* enhance(backend): Improve behavior of correctFilename

* ✌

* 未知のファむル圢匏か぀拡匵子がある堎合は䜕もしない

* ✌

* .ext

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-08 13:24:30 +09:00
anatawa12 b26e4dc505
fix: muteがapiからのuser list timeline取埗で機胜しない (#11480) 2023-08-08 13:23:25 +09:00
tamaina 2217a3c549
chore: cacheRemoteFilesのデフォルト倀をfalseに (#11398)
* chore: cacheRemoteFilesのデフォルト倀をfalseに

* proxyRemoteFiles to default

* update ja-JP.yml

* update ja-JP.yml

* youCanCleanRemoteFilesCache

* changelog

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-05 14:03:01 +09:00
anatawa12 c5b8766a18
feat: sensitive channel (#11438)
* 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
2023-08-05 13:58:31 +09:00
woxtu 79966d33b5
Fix typos (#11450) 2023-08-05 13:56:33 +09:00
woxtu 8a6791da3f
refactor(backend): Remove unused injections (#11462)
* Remove unused injections

* Remove unused imports
2023-08-05 10:33:00 +09:00
syuilo 2b4c8c9e0f
update deps (#11409)
* update deps

* Update .eslintrc.js

* Update .eslintrc.js

* lint

* lint

* Update update.ts

* update deps

* Update .eslintrc.js
2023-07-31 19:14:20 +09:00
woxtu 5096be06ac
Remove an unused dependency (#11405) 2023-07-29 15:17:29 +09:00
syuilo ab3cd7b837 chore: add missing license identifier 2023-07-28 14:02:58 +09:00
Kagami Sascha Rosylight eb7b5f905a
feat(backend): support OAuth 2.0 authorization (#11053)
* 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>
2023-07-27 18:51:58 +09:00
Shun Sakai c2370a1be6
chore: 著䜜暩ずラむセンスに぀いおの情報を各ファむルに远加する (#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>
2023-07-27 14:31:52 +09:00
woxtu cb0fa9a8ab
Use promises API (#11351) 2023-07-27 09:04:19 +09:00
Acid Chicken (硫酞鶏) 9208cfd5f3
fix: hide sensitive gallery image on OGP (#11380) 2023-07-25 10:45:46 +00:00
Koki Takahashi 0404d9c103
fix(backend): Change isPublic to correctly recognize as:Public term (#11347)
* fix: Change isPublic to correctly recognize as:Public term

* Update CHANGELOG.md

---------

Co-authored-by: Acid Chicken (硫酞鶏) <root@acid-chicken.com>
2023-07-25 10:35:21 +00:00
tamaina c1a19ff900
fix(backend): Use OFFSET instead of SKIP when using LIMIT (#11379)
* fix(backend): Use OFFSET instead of SKIP when using LIMIT

* update CHANGELOG.md
2023-07-25 19:21:50 +09:00
hutchisr ac6a8edf0b
Use BullMQAdapter (#11367) 2023-07-25 16:32:52 +09:00
Acid Chicken (硫酞鶏) c9b9db13c7
refactor: avoid redundant method chain 2023-07-21 10:07:03 +00:00
Alex b3358f0a8b
enhance: Add OGP data for notes with multiple images/videos (#11142)
* 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>
2023-07-21 09:40:30 +00:00
syuilo af2368bd2b perf(backend): use RSA 2048bit
#11129
2023-07-21 11:59:00 +09:00
syuilo 2cb8e8a748 fix(backend): antennas/notesを叩いおもアンテナの無効化が解陀されないこずがある問題を修正 2023-07-21 10:09:03 +09:00
meron 2801946226
fix(server): アンテナ再有効の手段にアンテナ蚭定の曎新を远加 (#11036)
* fix(server): アンテナ再有効の手段にアンテナの衚瀺ずアンテナ蚭定の曎新を远加

* 無効+Redisも空なアンテナの再有効化手段を antennas/update だけに
2023-07-21 10:06:11 +09:00
Kagami Sascha Rosylight 64c142b1ca
chore(backend): better error message for unsupported attestation (#11333) 2023-07-21 07:49:39 +09:00
tamaina 509e3f979e fix redis config
https://github.com/misskey-dev/misskey/pull/11329#issuecomment-1644217395
2023-07-20 16:22:47 +00:00
tamaina 0a06eb27da
enhance(backend): 蚭定ファむルでioredisの党おのオプションを指定可胜に (#11329)
* enhance(backend): 蚭定ファむルでioredisの党おのオプションを指定可胜に

* yappa kousuru

* fix

* fix?

* fix

* Revert "fix"

This reverts commit 227f19ff3a.

* fix
2023-07-20 19:50:31 +09:00
syuilo 7d6ea74288 enhance(backend): admin/emoji/addで䜜成した絵文字を返すように 2023-07-20 17:40:04 +09:00
Acid Chicken (硫酞鶏) e6fca72171
perf: use slacc instead of unzipper (#10780)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-07-20 17:00:54 +09:00
tamaina dc93a418c0
perf(backend): createPersonでキャッシュに保存する, DBのトランザクション回数を枛らす (#11324)
* perf(backend): createPersonでキャッシュを積極的に利甚する, トランザクション回数を枛らす

* move comment

* fix

* oops

* fix

* fix

* fix
2023-07-20 14:44:37 +09:00
syuilo 871027fa0c enhance: ナヌザヌにロヌルが期限付きでアサむンされおいる堎合、その期限をナヌザヌのモデレヌションペヌゞで確認できるように
Close #11059
2023-07-20 10:54:41 +09:00
xtex bf9e74ca05
fix: failed to resolve acct URI which points to local Person (#11024)
* fix: resolving alias for local users (#9199)

Signed-off-by: xtex <xtexchooser@duck.com>

* style: return type for RemoteUserResolveService#resolveSelf

Signed-off-by: xtex <xtexchooser@duck.com>

* docs: update CHANGELOG

Signed-off-by: xtex <xtexchooser@duck.com>

* style: fix typecheck

Signed-off-by: xtex <xtexchooser@duck.com>

---------

Signed-off-by: xtex <xtexchooser@duck.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-19 13:01:14 +09:00
woxtu 8c77153c04
Fix auto-fixable issues (#11314) 2023-07-19 11:27:50 +09:00
dogcraft 5dab918999
enhance(backend): add unix socket support (#11275)
* unix socket support

* add changelog

* lint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-17 14:12:02 +09:00
syuilo ad5fd626c7 fix of #11293 2023-07-16 14:46:41 +09:00
CGsama 4417412787
Export notes with file detail (#11293) 2023-07-16 14:21:49 +09:00
Kagami Sascha Rosylight d5f30ecb86
feat(backend): allow disabling cache for sensitive files (#11245)
* 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>
2023-07-15 20:12:20 +09:00
syuilo f96ed9a3f3 fix type errors 2023-07-15 20:07:31 +09:00
woxtu b392f44b81
refactor(backend): Improve UUID generation (#11286)
* Replace with `crypto.randomUUID()`

* Remove uuid
2023-07-15 18:39:38 +09:00
syuilo 9a5bc78eb4 update deps 2023-07-15 16:07:30 +09:00
ZerglingGo 8f196fc67c
fix: typo in comment (#11283) 2023-07-15 10:01:41 +09:00
たっちゃずヌにゅ 9e330c9e38
feat: MeilisearchにIndexするノヌトの範囲を蚭定できるように (#11282) 2023-07-15 09:59:19 +09:00
yukineko 02957a1b5d
enhance: 招埅機胜の改善 (#11195)
* 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

* 🎚

* 🎚

* 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>
2023-07-15 09:57:58 +09:00
okayurisotto 2b6dbd4fcb
refactor: 可読性のため䞀郚で`Array.prototype.at`を䜿うように (#11274)
* refactor: `Array.prototype.at`を䜿うように

* fixup! refactor: `Array.prototype.at`を䜿うように
2023-07-14 10:45:01 +09:00
okayurisotto c0dbc3b53f
refactor: `substr` -> `substring` (#11273) 2023-07-14 07:59:54 +09:00
syuilo af30959cb9 fix runtime error 2023-07-13 20:15:47 +09:00
okayurisotto e35a370af0
refactor(backend): `core/activitypub` (#11247)
* 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`挔算子を䜿わない圢に
2023-07-13 12:48:34 +09:00
okayurisotto cf3e39178b
refactor(backend): 存圚確認の`findOneBy`を`exist`に眮き換え (#11224)
* refactor(backend): 存圚確認の`findOneBy`を`exist`に眮き換え

* cleanup
2023-07-11 14:58:58 +09:00
nomad 791ae608a5
fix(backend): fix fetchInstanceMetadata error (#11236) 2023-07-11 14:40:56 +09:00
Kagami Sascha Rosylight 5059d4d7e1
refactor(backend): skip fetching notes when the data is same-origin (#11200)
* refactor(backend): skip fetching notes when the data is same-origin

* Update CHANGELOG.md

* sentFrom
2023-07-09 08:59:44 +09:00
Caipira 60366a4558
fix(backend): Remove Meilisearch index when notes are deleted (#10988)
* fix(backend): Include feature to delete Meilisearch index notes

* Update variable name
`cascadingNotesFilter` -> `federatedLocalCascadingNotes`

* tweak

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-08 21:31:38 +09:00
tamaina 7ec07d5fd2
perf(backend): Reduce memory usage of MemoryKVCache (#11076)
* perf(backend): Reduce memory usage of MemoryKVCache

* fix
2023-07-08 21:18:16 +09:00
SASAGAWA Kiyoshi 246d167c81
fix: add suuport Japanese message of errors. (#11159)
* fix: add suuport Japanese message of errors.

* fix: change catching function.

* lint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-08 21:10:52 +09:00
nomad e40a0b98e4
fix(frontend): search user with trailing space (#11184)
* 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>
2023-07-08 17:41:52 +09:00
syuilo 081a14d6f3 perf(backend): use limit() instead of take() 2023-07-08 16:53:07 +09:00
CyberRex 8ec96ad1e0
fix(backend): ゞョブキュヌ再詊行時のタむミングずれによる゚ラヌを抑制 (#11035)
* fix(backend): ゞョブキュヌ再詊行時のタむミングずれによる゚ラヌを抑制

* fix lint
2023-07-08 08:57:23 +09:00
okayurisotto 4f876c9e8d
refactor(backend): `core/activitypub/models` (#11067)
* cleanup(`ApImageService.ts`)

* refactor(`ApImageService.ts`)

* cleanup(`check-https.ts`)

* cleanup(`ApMentionService.ts`)

* refactor(`ApMentionService.ts`)

* cleanup(`ApNoteService.ts`): unneeded `eslint-disable-next-line`

* cleanup(`ApNoteService.ts`)

* WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる

* refactor(`ApNoteService.ts`): function return type

* cleanup(`ApNoteService.ts`): deadcode

* refactor(`ApNoteService.ts`): `eslint-disable-next-line`

* refactor(`ApNoteService.ts`): non-null assertion

これたでは`getApId()`の方で゚ラヌがスロヌされおいた。

* cleanup(`ApNoteService.ts`): unneeded await

* refactor(`ApNoteService.ts`): note.attachment

- `toArray()`を䜿うように
- よくわからない条件匏を敎理
- `as`をなくすために`promiseLimit()`でゞェネリクスを䜿うように

* cleanup(`ApNoteService.ts`)

* refactor(`ApNoteService.ts`): よりよい型定矩

`res`が`null`でないこずは確認されおいるようだったので`null`ずのunionはなくした

* refactor(`ApNoteService.ts`): 䞍芁な条件を削陀

* cleanup(`ApNoteService.ts`)

* cleanup(`ApNoteService.ts`): 重芁でない`as`を削陀

* refactor(`ApNoteService.ts`): `eslint-disable-next-line`

* cleanup(`ApNoteService.ts`): deadcode

* cleanup(`ApNoteService.ts`): unneeded non-null assertion

* refactor(`ApNoteService.ts`): 䞍芁な条件を削陀

* WIP(`ApNoteService.ts`): `as`をなくす

゚ラヌメッセヌゞを考える

* cleanup(`ApNoteService.ts`): 䞍芁な`as`を削陀

* cleanup(`ApPersonService.ts`): `no-unused-vars`

* cleanup(`ApPersonService.ts`): deadcode

* refactor(`ApPersonService.ts`): function return type

* cleanup(`ApPersonService.ts`): deadcode

* cleanup(`ApPersonService.ts`): deadcode

* WIP(`ApPersonService.ts`): `as`を調敎

`null`でないか確認する凊理が続いおいたので型アサヌションは`null`ずのunionにした。
より本質的な改善の䜙地があるように感じるのでひずたずWIPずしおコミット。

* refactor(`ApPersonService.ts`): `eslint-disable-next-line`

* WIP(`ApPersonService.ts`): `as any`をなくした

゚ラヌをスロヌするようにせざるを埗なかったので゚ラヌメッセヌゞを考える必芁がある。

* WIP(`ApNoteService.ts`): non-null assertion

non-nullアサヌションを枛らすために事前に存圚確認をするようにした。
゚ラヌをスロヌするようにしたのでメッセヌゞを考えなければならない。

* refactor(`ApNoteService.ts`): non-null assertion -> optional chaining

* refactor(`ApPersonService.ts`): `eslint-disable-next-line`

* refactor(`ApPersonService.ts`): `eslint-disable-next-line`

* refactor(`ApPersonService.ts`): function return type

* refactor(`ApPersonService.ts`): type guardによるnon-null assertionの削陀

* WIP(`ApPersonService.ts`): `analyzeAttachments`

- Field型を事前に定矩しおおくように

- `attachments`が`IObject`だった堎合、返り倀が`{ fields: [] }`になるようだが構わないのか
- `toArray()`を通すべきでは

* Revert "WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる"

This reverts commit aeefb843a8.

* cleanup(`ApImageService.ts`): `import`

* refactor(`ApImageService.ts`): 冗長だった郚分を短く

* cleanup(`ApMentionService.ts`): `import`

* refactor(`ApImageService.ts`): `JSON.stringify()`でのindentationを远加

* cleanup(`ApNoteService.ts`): `import`

* cleanup(`ApNoteService.ts`)

* cleanup(`ApNoteService.ts`)

* cleanup(`ApNoteService.ts`)

* cleanup(`ApNoteService.ts`): `any`に察するnon-null assertion

* refactor(`ApNoteService.ts`): 添付ファむル

* cleanup(`ApPersonService.ts`): `import`

* refactor(`ApPersonService.ts`): より実情に即した`as`に

* cleanup(`ApPersonService.ts`)

* refactor(`ApPersonService.ts`): 冗長だった郚分を修正

* cleanup(`ApPersonService.ts`): deadcode

* cleanup(`ApPersonService.ts`)

* cleanup(`ApQuestionService.ts`): `import`

* refactor(`ApQuestionService.ts`): `eslint-disable-next-line`

* refactor(`ApQuestionService.ts`): `eslint-disable-next-line`

* cleanup(`ApQuestionService.ts`)

* refactor(`ApQuestionService.ts`): non-null assertionを消した

* cleanup(`ApQuestionService.ts`)

* WIP(`ApQuestionService.ts`): non-null assertionを消す

゚ラヌメッセヌゞを考える必芁がある。

* refactor(`ApQuestionService.ts`): `any`を消す

* refactor(`ApQuestionService.ts`): function return type

* WIP(`ApPersonService.ts`): 可読性の䜎い䞉項挔算子を削陀し぀぀non-null assertionを回避

゚ラヌメッセヌゞを考える必芁がある。

* cleanup(`ApPersonService.ts`): 䞍必芁な䞉項挔算子を削陀

* cleanup(`ApPersonService.ts`): 䞍芁な`as`

* cleanup(`ApPersonService.ts`)

* refactor(`ApPersonService.ts`)

* refactor(`ApPersonService.ts`): 可読性の䜎い䞉項挔算子を削陀

元の実装が悪いず刀断し`null`かどうかの確認をより厳密に行うようにした。

* cleanup(`ApPersonService.ts`)

* cleanup(`ApPersonService.ts`)

* refactor(`ApPersonService.ts`): 返り倀を`void`に統䞀

この返り倀を参照しおいるコヌドは芋圓たらなかった。
たた、普通に意味がない倀であるように芋受けられた。

* fixup! refactor(`ApPersonService.ts`): 返り倀を`void`に統䞀

* refactor(`ApNoteService.ts`)

* refactor(`ApPersonService.ts`)

* cleanup(`ApPersonService.ts`)

* cleanup(`ApPersonService.ts`)

* refactor(`ApPersonService.ts`): 返り倀の`void`統䞀ず条件匏の調敎

この返り倀を参照しおいるコヌドは芋圓たらなかった。
たた、普通に意味がない倀であるように芋受けられた。

* cleanup(`ApQuestionService.ts`)

* refactor(`ApQuestionService.ts`)

* refactor(`ApQuestionService.ts`)

* refactor(`tag.ts`): function return type

* fixup! enhance: account migration (#10592)

* fixup! WIP(`ApPersonService.ts`): 可読性の䜎い䞉項挔算子を削陀し぀぀non-null assertionを回避

* fixup! cleanup(`ApPersonService.ts`): 䞍芁な`as`

* refactor: ゚ラヌメッセヌゞを芋繕った

* Revert "cleanup(`ApImageService.ts`): `import`"

This reverts commit 1454d04c37.

* Revert "cleanup(`ApMentionService.ts`): `import`"

This reverts commit 244f6720c1.

* Revert "cleanup(`ApNoteService.ts`): `import`"

This reverts commit d8f0d76973.

* Revert "cleanup(`ApPersonService.ts`): `import`"

This reverts commit 5190ef954c.

# Conflicts:
#	packages/backend/src/core/activitypub/models/ApPersonService.ts

* Revert "cleanup(`ApQuestionService.ts`): `import`"

This reverts commit 778585e288.

* processRemoteMoveはそのたたにしおほしい

* Revert "fixup! refactor(`ApPersonService.ts`): 返り倀を`void`に統䞀"

This reverts commit 083cd678ab.

* Revert "refactor(`ApPersonService.ts`): 返り倀を`void`に統䞀"

This reverts commit bfa0fcd6f0.

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-07-08 08:57:13 +09:00
nenohi 3c6175d959
広告の曜日を蚭定できるように (#10095)
* 曜日遞択できるように

* ラベル遞択でもチェックが倉曎されるように

* 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>
2023-07-08 08:56:11 +09:00
syuilo 1f181536ae use engines 2023-07-08 08:52:51 +09:00