Commit Graph

133 Commits

Author SHA1 Message Date
tamaina ce5faa8ff5 wip 2023-05-26 07:18:15 +00:00
tamaina c0bd1b82ab wip 2023-05-25 16:53:29 +00:00
tamaina 1b6ac7888b wip 2023-05-22 05:20:19 +00:00
tamaina 86f4e206f4 wip 2023-05-22 04:50:18 +00:00
tamaina e689dcdd73 reqに$refを許可しない 2023-05-22 03:20:49 +00:00
tamaina 810d065d21 wip 2023-05-22 01:43:00 +00:00
tamaina 23545bcbbb wip 2023-05-21 16:45:39 +00:00
tamaina aea6950b46 wip 2023-05-21 16:44:29 +00:00
tamaina d7d3f00488 wip 2023-05-21 16:35:48 +00:00
tamaina 307bc2a38e fix... 2023-05-21 15:15:25 +00:00
tamaina 919af7b967 ??? 2023-05-21 15:01:06 +00:00
tamaina 359f0b21b0 ? 2023-05-21 14:19:32 +00:00
tamaina 79f71acd42 wip 2023-05-21 14:15:45 +00:00
tamaina 89480d9029 wip 2023-05-21 14:06:11 +00:00
tamaina 0853b2fe42 wip 2023-05-21 13:53:55 +00:00
tamaina 13fe20d47e wip 2023-05-21 12:54:39 +00:00
tamaina 13fc093602 test 2023-05-15 09:44:23 +00:00
tamaina ca29fdc795 fix 2023-05-15 09:19:36 +00:00
tamaina 03a2501b45
wip 2023-05-15 18:16:27 +09:00
tamaina 69ba41bd8d
wip 2023-05-15 17:59:30 +09:00
tamaina 5f2bbea6de
wip 2023-05-15 17:53:51 +09:00
tamaina 49dc995f1e ✌️ 2023-05-15 08:45:38 +00:00
tamaina 15ef1a082d wip 2023-05-15 08:42:47 +00:00
tamaina cdfab72b35
wip 2023-05-15 17:39:41 +09:00
tamaina 37142d7495
wip 2023-05-15 17:30:52 +09:00
tamaina 5e268f0611 wip endpoints 2023-05-12 07:54:50 +00:00
tamaina 64f4bb6a90 Merge branch 'develop' into mkjs-n 2023-05-12 07:03:20 +00:00
syuilo 5be6438bbc update deps 2023-05-12 12:10:56 +09:00
tamaina 4f5d77391f wip~~ 2023-05-10 19:18:48 +00:00
tamaina ac99cdce8b wip 2023-05-10 17:48:21 +00:00
tamaina 3324f3fa15 test 2023-05-10 17:34:13 +00:00
tamaina 56a1e436f3 wip 2023-05-10 16:55:36 +00:00
tamaina ad6c5275ec wip 2023-05-10 16:22:21 +00:00
tamaina 0e08c56bc7 wip 2023-05-10 15:58:46 +00:00
tamaina d3ecb02644 wip 2023-05-10 15:50:15 +00:00
tamaina f3bc232419 wip 2023-05-10 15:12:37 +00:00
tamaina 00b1fd2ee3 wip 2023-05-10 15:07:37 +00:00
tamaina 44e819bf6a wip 2023-05-10 15:01:45 +00:00
tamaina 49e32ebf2b wip 2023-05-10 14:58:45 +00:00
tamaina 66447d13c1 wip 2023-05-10 14:53:26 +00:00
tamaina 5bb2d71231 wip 2023-05-10 14:48:12 +00:00
tamaina 32e489e536 wip 2023-05-10 14:45:31 +00:00
tamaina fc10a9026c wip 2023-05-10 14:37:01 +00:00
tamaina 9699bac704 wip 2023-05-10 14:32:46 +00:00
tamaina d328a8cefc wip 2023-05-10 14:21:54 +00:00
tamaina 34edf950ff wip 2023-05-10 14:20:52 +00:00
tamaina 0ee1dab2bc fix 2023-05-04 11:13:03 +00:00
tamaina 0040aca841 fix 2023-05-04 10:57:55 +00:00
tamaina 41a822c34c wip 2023-05-04 10:56:53 +00:00
tamaina 55c217da73 wip 2023-05-04 10:56:24 +00:00
tamaina ff85376306 fix 2023-05-02 17:57:56 +00:00
tamaina ef15b9c0d3 wip 2023-05-02 17:31:17 +00:00
tamaina 3fcee7c4bd /schemas/Note 2023-05-02 16:51:41 +00:00
tamaina 6c53d1fdb7
Merge branch 'develop' into mkjs-n 2023-05-02 21:19:38 +09:00
tamaina e9355bf918 wip 2023-05-02 12:05:17 +00:00
syuilo bcd123371b update deps 2023-05-02 20:52:36 +09:00
Namekuji d28866f71a
enhance: account migration (#10592)
* copy block and mute then create follow and unfollow jobs

* copy block and mute and update lists when detecting an account has moved

* no need to care promise orders

* refactor updating actor and target

* automatically accept if a locked account had accepted an old account

* fix exception format

* prevent the old account from calling some endpoints

* do not unfollow when moving

* adjust following and follower counts

* check movedToUri when receiving a follow request

* skip if no need to adjust

* Revert "disable account migration"

This reverts commit 2321214c98.

* fix translation specifier

* fix checking alsoKnownAs and uri

* fix updating account

* fix refollowing locked account

* decrease followersCount if followed by the old account

* adjust following and followers counts when unfollowing

* fix copying mutings

* prohibit moved account from moving again

* fix move service

* allow app creation after moving

* fix lint

* remove unnecessary field

* fix cache update

* add e2e test

* add e2e test of accepting the new account automatically

* force follow if any error happens

* remove unnecessary joins

* use Array.map instead of for const of

* ユーザーリストの移行は追加のみを行う

* nanka iroiro

* fix misskey-js?

* ✌️

* 移行を行ったアカウントからのフォローリクエストの自動許可を調整

* newUriを外に出す

* newUriを外に出す2

* clean up

* fix newUri

* prevent moving if the destination account has already moved

* set alsoKnownAs via /i/update

* fix database initialization

* add return type

* prohibit updating alsoKnownAs after moving

* skip to add to alsoKnownAs if toUrl is known

* skip adding to the list if it already has

* use Acct.parse instead

* rename error code

* 🎨

* 制限を5から10に緩和

* movedTo(Uri), alsoKnownAsはユーザーidを返すように

* test api res

* fix

* 元アカウントはミュートし続ける

* 🎨

* unfollow

* fix

* getUserUriをUserEntityServiceに

* ?

* job!

* 🎨

* instance => server

* accountMovedShort, forbiddenBecauseYouAreMigrated

* accountMovedShort

* fix test

* import, pin禁止

* 実績を凍結する

* clean up

* ✌️

* change message

* ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに

* Revert "ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに"

This reverts commit 3bd7be35d8.

* validateAlsoKnownAs

* 移行後2時間以内はインポート可能なファイルサイズを拡大

* clean up

* どうせactorをupdatePersonで更新するならupdatePersonしか移行処理を発行しないことにする

* handle error?

* リモートからの移行処理の条件を是正

* log, port

* fix

* fix

* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように

* refactor (use checkHttps)

* MISSKEY_WEBFINGER_USE_HTTP

* Environment Variable readme

* NEVER USE IN PRODUCTION

* fix punyHost

* fix indent

* fix

* experimental

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-30 00:09:29 +09:00
syuilo e1f9ab77f8
feat: Server rules (#10660)
* enhance(frontend): サーバールールのデザイン調整

* enhance(frontend): i18n

* enhance(frontend): 利用規約URLの設定を「モデレーション」ページへ移動

* enhance(frontend): サーバールールのデザイン調整

* Update CHANGELOG.md

* 不要な差分を削除

* fix(frontend): lint

* ui tweak

* test: add stories

* tweak

* test: bind args

* test: add interaction tests

* fix bug

* Update packages/frontend/src/pages/admin/server-rules.vue

Co-authored-by: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com>

* Update misskey-js.api.md

* chore: windowを明示

* 🎨

* refactor

* 🎨

* 🎨

* fix e2e test

* 🎨

* 🎨

* fix icon

* fix e2e

---------

Co-authored-by: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com>
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2023-04-19 21:24:31 +09:00
syuilo 8c9cb9ee15 update deps 2023-04-19 12:52:14 +09:00
syuilo 65584f21bb Update misskey-js.api.md 2023-04-08 14:39:54 +09:00
syuilo b697f948df Update misskey-js.api.md 2023-04-08 14:32:52 +09:00
Namekuji 25ebb73756
feat: account migration (#10507)
* add Move activity

* add endpoint to move from local to remote

* follow move activity coming to inbox

* fix move endpoint

* add known-as endpoint to create account alias

* add migration page

* add route to migration page

* add move and known-as endpoints

* fix dependnecies error

* fix new endpoints

* fix move activity id

* fix refollow

* add movedToUri and alsoKnownAs to api

* fix moveToUri indicator

* fix missing context

* add chengelog

* rename MkMoved to MkAccountMoved

* add missing semicolon

* fix targetUri

* fix followings query

* remove redundant null check
2023-04-08 14:16:26 +09:00
syuilo a561b83070 fix deps 2023-04-06 20:29:17 +09:00
syuilo 88f22da052 update deps 2023-04-06 20:22:26 +09:00
tamaina 2650a7a5b8
fix: 通知インジケータが光りっぱなしになる問題を修正 (#10483)
* fix(misskey-js): ストリームがstringで送信される場合があるのを修正

* pnpm run api

* force read notification

* fix competition
2023-04-06 06:11:59 +09:00
syuilo 625fed8838 enhance(backend): チャンネルの既読管理を削除
- 現状上手く機能していない
- パフォーマンス上の理由
- 実装するにしてももっと効率的な方法がある
2023-04-05 07:52:49 +09:00
syuilo 30d6992684 perf(backend): 通知をRedisに保存するように
Resolve #10168
2023-04-04 14:06:57 +09:00
Acid Chicken (硫酸鶏) 38d0b62167
build(#10336): Storybook & Chromatic & msw (#10365)
* build(#10336): init

* fix(#10336): invalid name conversion

* build(#10336): load locales and vite config

* refactor(#10336): remove unused imports

* build(#10336): separate definitions and generated codes

* refactor(#10336): remove hatches

* refactor(#10336): module semantics

* refactor(#10336): remove unused common preferences

* fix: typo

* build(#10336): mock assets

* build(#10336): impl `SatisfiesExpression`

* build(#10336): control themes

* refactor(#10336): semantics

* build(#10336): make .storybook as an individual TypeScript project

* style(#10336): use single quote

* build(#10336): avoid intrinsic component names

* chore: suppress linter

* style: typing

* build(#10336): update dependencies

* docs: note about Storybook

* build(#10336): sync

* build(#10336): full reload server on change

* chore: use defaultStore instead

* build(#10336): show popups on Story

* refactor(#10336): remove redundant div

* docs: fix

* build(#10336): interactions

* build(#10336): add an interaction test for `<MkA/>`

* build(#10336): bump storybook

* docs(#10336): mention to pre-build misskey-js

* build(#10336): write stories for `MkAcct`

* build(#10336): write stories for `MkAd`

* build(#10336): fix missing type definition

* build(#10336): use `toHaveTextContent`

* build(#10336): write some stories

* build(#10336): hide internal args

* build(#10336): generate `components/global` stories only

* build(#10336): write stories for `MkMisskeyFlavoredMarkdown`

* fix: conflict errors

* build(#10336): subcomponents on sidebar

* refactor: restore `SatisfiesExpression`

* docs(#10336): note development status

* build(#10336): use chokidar-cli

* docs(#10336): note chokidar-cli mode

* chore(#10336): untrack generated stories files

* fix: pointer handling

* build(#10336): finalize

* chore: add static option to `MkLoading`

* refactor(#10336): bind to local args

* fix: missing case

* revert: restore `SatisfiesExpression`

This reverts commit f246699f38.

* build(#10336): make storybook buildable

* build(#10336): staticify assets

* build(#10336): staticified directory structure

* build(#10336): normalize path for Windows

* ci(#10336): create actions

* build(#10336): ignore tsc errors

* build(#10336): ignore tsc errors

* build(#10336): missing dependencies

* build(#10336): missing dependencies

* build(#10336): use fast-glob

* fix: invalid lockfile

* ci(#10336): increase heap size

* build(#10336): use unpkg for storybook tabler icons

* build(#10336): use unpkg for storybook twemojis

* build(#10336): disable `ProfilePageCat`

* build(#10336): blur `MkA` before interaction ends

* ci(#10336): stabilize

* ci(#10336): fetch-depth

* build(#10336): isChromatic

* ci(#10336): notify on changes

* ci(#10336): fix typo

* ci(#10336): missing working directory

* ci(#10336): skip build

* ci(#10336): fix path

* build(#10336): fails on Windows

* build(#10336): available on Windows

* ci(#10336): disable animation on chromatic

* ci(#10336): add static option to `PageHeader.tabs`

* chore: void

* ci(#10336): change parameters

* docs(#10336): update CONTRIBUTING

* docs(#10336): note about meta overriding and etc.

* ci(#10336): use Chromatic for checks

* ci(#10336): use `pull_request` instead of `pull_request_target` for now

* ci(#10336): use `exitOnceUploaded`

* ci(#10336): reuse built storybook

* ci(#10336): back to `pull_request_target`

* chore: unused dependencies

* style(#10336): reduce prettier indents

* style: note about `TSSatisfiesExpression`
2023-04-04 09:38:34 +09:00
syuilo 152247bfda refactor: remove autobind-decorator dep 2023-03-31 16:41:27 +09:00
syuilo 5d94062581 lint fix 2023-03-31 09:20:52 +09:00
syuilo a23b25bff7 tweak misskey-js eslintrc 2023-03-31 09:18:58 +09:00
tamaina 0398787520 fix misskey-js/tsconfig.json (add dom lib) 2023-03-30 12:52:51 +00:00
tamaina dccf03ffc2 Fix misskey-js/tsconfig.json
Fix #10441
2023-03-30 12:51:24 +00:00
syuilo 6d78162323 tweak misskey-js config 2023-03-30 14:00:51 +09:00
syuilo d7fbef0a55 specify .js 2023-03-30 13:49:56 +09:00
syuilo ea6f9f1e7d tweak misskey-js config 2023-03-30 13:46:25 +09:00
syuilo e9769c937b misskey-jsのビルド設定を修正 2023-03-30 12:30:59 +09:00
syuilo bb2b33f2c9 update deps 2023-03-30 12:03:04 +09:00
Kagami Sascha Rosylight cee1d5e2d0
chore: integrate misskey-js as a workspace item (git subtree) (#10409)
* Additional changes for the merge

* api-misskey-js
2023-03-30 09:33:19 +09:00
Kagami Sascha Rosylight 772e05e835 Revert "Subtree merged in packages/misskey-js"
This reverts commit 3b524f32bf, reversing
changes made to 5be54451a8.
2023-03-25 08:20:41 +01:00
Kagami Sascha Rosylight abdb43c440 Revert "Additional changes for the merge"
This reverts commit efb5e1d1cc.
2023-03-25 08:20:34 +01:00
Kagami Sascha Rosylight efb5e1d1cc Additional changes for the merge 2023-03-25 08:13:30 +01:00
Kagami Sascha Rosylight 3b524f32bf Subtree merged in packages/misskey-js 2023-03-25 08:09:24 +01:00