Commit graph

907 commits

Author SHA1 Message Date
Mar0xy
4b87753564
Merge branch 'develop' of https://github.com/transfem-org/Sharkey into develop 2023-09-29 00:57:53 +02:00
Mar0xy
fc00f08d5b
add: achievement toggle
Closes #16
2023-09-29 00:57:38 +02:00
syuilo
2438c047a7 enhance: 編集されたノートかどうか分かるように 2023-09-28 21:06:14 +09:00
syuilo
408def474b enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 12:37:49 +02:00
syuilo
0e7a1ac44e enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 12:37:31 +02:00
syuilo
0e0c61e64a enhance: ユーザーページのノート一覧でRenoteを除外できるように 2023-09-28 12:36:27 +02:00
syuilo
19a643ac70 enhance: improve moderation log 2023-09-28 12:35:40 +02: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
Mar0xy
e17dcd7814
upd: rehash misskey passwords with argon2 on login 2023-09-27 21:46:56 +02:00
Insert5StarName
dc52209c28 upd: rehash misskey passwords 2023-09-27 21:30:24 +02:00
Mar0xy
a12d1c52dd
add: source endpoint for editing through masto api 2023-09-27 14:45:57 +02:00
Mar0xy
e32b03a048
upd: return empty history 2023-09-27 14:09:48 +02:00
Mar0xy
7d9262c55a
fix: not being able to only send emojis 2023-09-26 13:40:18 +02:00
Mar0xy
d0af17c674
chore: lint 2023-09-26 02:34:42 +02:00
Mar0xy
8595a325ce
merge: upstream 2023-09-26 02:26:30 +02:00
Mar0xy
2b1e6eb180
fix: accidental removal of handler 2023-09-25 22:53:51 +02:00
Mar0xy
5ffcd278be
rm: remove attempt at supporting avatar/banner changing 2023-09-25 22:45:22 +02:00
Mar0xy
0fe5e8738c
upd: attempt to accept file during update 2023-09-25 22:02:33 +02:00
Mar0xy
a847e4d5cc
upd: move patch function and make note user always detail 2023-09-25 21:10:49 +02:00
Mar0xy
1e02899de7
upd: add multer handler to update_credentials 2023-09-25 20:59:32 +02:00
Mar0xy
d521e95dda
fix: checks 2023-09-25 19:50:22 +02:00
Mar0xy
354937abdd
upd: actually use body 2023-09-25 19:49:30 +02:00
Mar0xy
314122f509
upd: convert masto ids to sharkeyid on media 2023-09-25 19:48:43 +02:00
Mar0xy
f1c827b815
add: edit support on masto api 2023-09-25 19:33:55 +02:00
Mar0xy
0d013ff54f
upd: move media put endpoint into main api file 2023-09-25 19:15:55 +02:00
Mar0xy
324cc5509e
fix: adding description not working on media 2023-09-25 18:46:17 +02:00
Mar0xy
2bda4f1768
test: enable error logs for media 2023-09-25 18:35:52 +02:00
Mar0xy
5cca3e81d2
chore: wrong value 2023-09-25 12:49:39 +02:00
Mar0xy
49077bad34
fix: getfeatureduser 2023-09-25 12:48:37 +02:00
Mar0xy
0547940523
chore: use this.baseUrl instead of BASE_URL 2023-09-25 12:46:47 +02:00
Mar0xy
aaa3a34d60
chore: swap base_url getting on some endpoints 2023-09-25 12:37:58 +02:00
syuilo
bd19d75c9c enhance: improve moderation log 2023-09-25 16:03:43 +09:00
Mar0xy
5aa2b197da
chore: lint 2023-09-25 05:01:50 +02:00
Mar0xy
871407ce53
upd: add new endpoint to mk api, add preferences to masto api 2023-09-25 04:55:11 +02:00
Mar0xy
a7778e6425
fix: megalodon reblogged and favourited user info, add createdAt to note 2023-09-25 03:55:21 +02:00
syuilo
5318532a8d enhance: improve moderation log 2023-09-25 10:29:12 +09:00
Mar0xy
1446514442
fix: contact person in masto instance endpoint 2023-09-25 03:26:05 +02:00
Mar0xy
3526880607
fix: get account statuses for local users 2023-09-25 03:23:03 +02:00
Mar0xy
645907851d
fix: text min length is 1 (thanks mk) 2023-09-25 02:48:05 +02:00
Mar0xy
df62b3786a
upd: apply host to alot of fields 2023-09-25 02:40:04 +02:00
Mar0xy
1b9897f83b
upd: replace star with heart 2023-09-25 02:04:28 +02:00
Mar0xy
806a76c5ca
fix: text is undefined in masto status api 2023-09-25 02:03:16 +02:00
Mar0xy
3fd2b55406
Revert "test: check old megalodon version"
This reverts commit 89eea5df52.
2023-09-25 01:49:57 +02:00
Mar0xy
89eea5df52
test: check old megalodon version 2023-09-25 01:20:03 +02:00
Mar0xy
ead0667320
fix: upload media on masto api 2023-09-25 01:02:16 +02:00
Mar0xy
8f219557d4
upd: megalodon package fix lines, enable error on media 2023-09-24 23:46:02 +02:00
Mar0xy
60b2842203
chore: lint 2023-09-24 23:25:04 +02:00
Mar0xy
37d7a4b604
upd: change parser and fix fetchAccessToken 2023-09-24 23:18:39 +02:00
Mar0xy
30cc0a9b18
fix: oauth headers 2023-09-24 23:01:46 +02:00
Mar0xy
ce42cc0e8d
chore: remove ts-ignore comment 2023-09-24 22:57:05 +02:00
Mar0xy
8f997c39c9
chore: fix lint 2023-09-24 22:54:51 +02:00
Mar0xy
ad1d3ccb75
chore: change ignore to expect 2023-09-24 22:53:34 +02:00
Mar0xy
96180bb808
add: x-www-form-urlencoded parser 2023-09-24 22:50:59 +02:00
Mar0xy
fa30404048
upd: header 2023-09-24 22:13:20 +02:00
Mar0xy
95df69b06c
fix: backend issue 2023-09-24 22:07:41 +02:00
Mar0xy
0758e38237
upd: masto api support more types 2023-09-24 21:45:00 +02:00
Mar0xy
487e397810
upd: also split by + 2023-09-24 21:33:16 +02:00
Mar0xy
250beca901
fix oauth login 2023-09-24 19:15:08 +02:00
Mar0xy
b107ff5a1f
chore: lint says const happy 2023-09-24 17:42:31 +02:00
Mar0xy
c6c6873984
chore: change const to let 2023-09-24 17:38:31 +02:00
Mar0xy
db6dc1b52e
chore: lint and update package name 2023-09-24 17:36:13 +02:00
Mar0xy
410e6515d3
upd: complete status endpoint for masto 2023-09-24 17:10:33 +02:00
Mar0xy
7c3f3390b4
add: status get endpoints to masto api 2023-09-24 16:14:50 +02:00
Mar0xy
55e85fe1c1
upd: import status endpoint into service 2023-09-24 15:42:09 +02:00
Mar0xy
7640985332
add: status to masto endpoints 2023-09-24 15:41:38 +02:00
Mar0xy
f1fc1ba4c7
add: timeline endpoints tio masto api 2023-09-24 15:33:13 +02:00
taichan
dc8ab01168
fix(backend): お知らせのページネーションが機能しない #11800 (#11890)
* fix(backend): お知らせのページネーションが機能しない #11800

* Update CHANGELOG
2023-09-24 20:08:00 +09:00
Mar0xy
1501ab261d
upd: prettify layout 2023-09-24 12:05:59 +02: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
Mar0xy
34e6717dab
add: filter endpoint to masto api 2023-09-24 05:35:50 +02:00
Mar0xy
168c041373
add: notification endpoints to masto api 2023-09-24 05:02:36 +02:00
Mar0xy
bb2d4b0e09
add: search endpoints to masto api 2023-09-24 04:25:01 +02: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
Mar0xy
17efcf6b51
upd: Masto API accounts endpoint finished 2023-09-24 02:48:16 +02:00
Mar0xy
afda15260f
upd: megalodon to v7 2023-09-24 01:44:53 +02:00
Mar0xy
b4674ce65c
upd: add new endpoints to Masto API 2023-09-24 00:43:28 +02:00
Mar0xy
21015e7df6
add: account endpoint
- Still work in progress
2023-09-24 00:42:59 +02:00
Mar0xy
763d7c3a63
add: timeline endpoint only with the functions for other endpoints 2023-09-24 00:42:03 +02:00
Mar0xy
b25e193845
upd: create auth endpoint 2023-09-24 00:41:13 +02:00
Mar0xy
9dfc4dbf02
fix: converter returning sharkeyid wrong 2023-09-24 00:39:33 +02:00
Mar0xy
ceffd53d47
fix: spacing 2023-09-23 18:51:57 +02:00
Mar0xy
2375d043d1
add: Megalodon, initial mastodon api 2023-09-23 18:49:47 +02: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
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
Mar0xy
0da4717983
upd: clicky click on replies 2023-09-22 23:56:00 +02:00
Mar0xy
5d40ca6568
upd: update notes live on feed 2023-09-22 23:44:07 +02:00
Mar0xy
1795195097
fix: update? what update 2023-09-22 22:54:35 +02:00
Mar0xy
feec3c302b
upd: add backend for post editing 2023-09-22 21:05:42 +02: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
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
Insert5StarName
113a67077e upd: port Listenbrainz 2023-09-22 03:31:59 +02:00
Mar0xy
7111c6c90b
upd: swap bcrypt to argon2, add misskey-js to dev, auto load replies 2023-09-22 00:21:57 +02: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
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
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
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
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
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
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
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
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 c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
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
b26e4dc505
fix: muteがapiからのuser list timeline取得で機能しない (#11480) 2023-08-08 13:23:25 +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
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
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
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
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
syuilo
7d6ea74288 enhance(backend): admin/emoji/addで作成した絵文字を返すように 2023-07-20 17:40:04 +09:00
syuilo
871027fa0c enhance: ユーザーにロールが期限付きでアサインされている場合、その期限をユーザーのモデレーションページで確認できるように
Close #11059
2023-07-20 10:54:41 +09:00
woxtu
8c77153c04
Fix auto-fixable issues (#11314) 2023-07-19 11:27:50 +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
woxtu
b392f44b81
refactor(backend): Improve UUID generation (#11286)
* Replace with `crypto.randomUUID()`

* Remove uuid
2023-07-15 18:39:38 +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
cf3e39178b
refactor(backend): 存在確認のfindOneByexistに置き換え (#11224)
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え

* cleanup
2023-07-11 14:58:58 +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
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
okayurisotto
d84796588c
cleanup: trim trailing whitespace (#11136)
* cleanup: trim trailing whitespace

* update(`.editorconfig`)

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-08 07:08:16 +09:00
riku6460
61e7eb8ff1
perf(backend): JSON.parse の呼び出しを削減する (#11091)
* perf(backend): JSON.parse の呼び出しを削減する

Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com>

* Update CHANGELOG.md

---------

Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com>
2023-07-04 07:49:13 +09:00
syuilo
af3258dc79 perf(backend): make some features optionable
Resolve #11064
Resolve #11065
2023-07-02 16:02:32 +09:00
syuilo
a1327fa9e1 perf(backend): allow get for some endpoints 2023-07-02 08:28:26 +09:00
Kagami Sascha Rosylight
1b1f82a2e2
feat(backend): accept OAuth bearer token (#11052)
* feat(backend): accept OAuth bearer token

* refactor

* Update packages/backend/src/server/api/ApiCallService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* Update packages/backend/src/server/api/ApiCallService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* fix

* kind: permission for account moved error

* also for suspended error

* Update packages/backend/src/server/api/StreamingApiServerService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-06-28 13:37:13 +09:00
Kagami Sascha Rosylight
d23ad8b511
fix(backend): APIエラーのHTTP status code変更 (#11047) 2023-06-26 10:09:12 +09:00
syuilo
8099bc24e1
refactor(backend): use node16 for moduleResolution (#10938)
* refactor(backend): use node16 for moduleResolution

* update deps

* Update tsconfig.json

* ✌️

* revive KEYWORD

* restore strict-event-emitter-types dependency

* restore ms dependency

* cancel redundant import reorder

* fix

* Delete ms.ts

* remove rndstr

---------

Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
2023-06-25 21:13:15 +09:00
Kagami Sascha Rosylight
ef354e94f2
refactor(backend): replace rndstr with secureRndstr (#11044)
* refactor(backend): replace rndstr with secureRndstr

* Update pnpm-lock.yaml

* .js
2023-06-25 11:04:33 +09:00
syuilo
f5dfb64a52 ユーザー統計表示機能を削除
Resolve #10998
2023-06-13 14:13:33 +09:00
syuilo
46222d0258 tweak of f3a16bcd6 2023-06-10 17:41:52 +09:00
nenohi
f3a16bcd6d
ロールのユーザーリストを非公開にできるように (#10987)
* ロールのユーザーリストを非公開にできるように

* Changelog update
2023-06-10 17:26:48 +09:00
syuilo
e8420ad90b fix(backend): キャッシュが溜まり続けないように
Related #10984
2023-06-10 13:45:11 +09:00
syuilo
6182a1cb2c enhance(backend): WebSocketのPing/Pongをプロトコル制御フレームの物で判別する
Resolve #10969
2023-06-09 17:07:57 +09:00
syuilo
308ab8f177 chore 2023-06-09 16:11:28 +09:00
Ebise Lutica
34a32a8334
エラー画像URLを設定可能に (#10959)
* エラー画像URLを設定可能に

* Update CHANGELOG.md

* 設定したエラーアイコンをprefetchするようにbase.pugを変更

* 不足していたデータを追加

* enhance(frontend): デザイン調整
2023-06-09 14:00:53 +09:00
syuilo
13870c63b0 add note 2023-06-09 12:47:36 +09:00
CaffeeLake
8263cc0094
Fix: #10955 TypeError: JSON5.parse is not a function (#10956)
* Fix: JSON5.parse is not a function

* update changelog

* update chglog

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-06-05 21:44:28 +09:00
tamaina
565c502bbf fix(backend): pageのピン留めを解除することができない問題を修正
Fix #10950
2023-06-05 09:04:30 +00:00
syuilo
5230ec883e fix(backend): 7日経過して無効化されたアンテナを再度有効化する方法がない問題を修正
Fix #10476
2023-06-02 15:18:34 +09:00
syuilo
91d790bbb6 update deps 2023-06-02 11:34:38 +09:00
syuilo
9eaca966a4 perf(backend): terminate stalled websocket connections
Resolve #10885
2023-06-02 09:13:41 +09:00
syuilo
ec2f05d4f7 fix(backend): i/notificationsのsinceIdが機能しない問題を修正
Fix #10902
2023-06-01 13:28:43 +09:00
syuilo
a6cd97ca9a fix(backend): 「アクセストークンの管理」画面でアプリの情報が表示されない問題を修正
Fix #10920
2023-05-30 17:27:47 +09:00
syuilo
8f14b42e81 perf: インスタンスデフォルトテーマを予めjson5 -> jsonに変換しておくことでjson5を初期バンドルに含めずに済むように 2023-05-30 11:51:29 +09:00
syuilo
f930eaee02
perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node (#10884)
* perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node

Resolve #10883

* refactor

* Update StreamingApiServerService.ts

* Update StreamingApiServerService.ts

* ✌️

* Update StreamingApiServerService.ts

* fix main stream init

* fix timing 2

* setIntervalの重複を避ける(気休め)

* add comment

* ✌️

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-05-29 13:32:19 +09:00
syuilo
b6f21b6edb refactor 2023-05-29 13:21:26 +09:00
syuilo
fd7b77c542
enhance(backend): migrate bull to bullmq (#10910)
* wip

* wip

* Update QueueService.ts

* wip

* refactor

* ✌️

* fix

* Update QueueStatsService.ts

* refactor

* Update ApNoteService.ts

* Update mock-resolver.ts

* refactor

* Update mock-resolver.ts
2023-05-29 11:54:49 +09:00
Chocolate Pie
98aef974df
enhance: ハッシュタグのノート一覧ページから、そのハッシュタグで投稿するボタンを追加、お知らせの画像URLを空にできない問題を修正 (#10878)
* fix: お知らせの画像URLを空にできない問題を修正 (misskey-dev/misskey#10657)

* ハッシュタグのノート一覧ページからノートできるように(misskey-dev/misskey#10854)

* fix: 色々直した

* location.reloadを使わないように

* CHANGELOGを編集

* tweak

* Update tag.vue

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-05-26 14:47:31 +09:00
nenohi
bd6666173a
fix:ロールタイムライン無効に関する修正 (#10843)
* 修正

* note visibility change

* public投稿のみ

* update changelog

* RN非表示機能がうごかないところだった
2023-05-19 17:12:22 +09:00
Chocolate Pie
dddbc1c894
feat: 公開リスト (#10842)
* feat: まず公開できるように (misskey-dev/misskey#10447)

* feat: 公開したリストのページを作成 (misskey-dev/misskey#10447)

* feat: いいねできるように

* feat: インポートに対応

* wip

* wip

* CHANGELOGを編集

* add note

* refactor

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-05-19 10:06:12 +09:00
syuilo
3804c6e7ad feat: センシティブなカスタム絵文字のリアクションを受け入れない設定を追加 2023-05-19 09:43:38 +09:00
syuilo
7ce569424a feat: カスタム絵文字ごとにそれをリアクションとして使えるロールを設定できるように 2023-05-18 18:45:49 +09:00
syuilo
cbca48846c fix streamin error 2023-05-17 11:10:31 +09:00
syuilo
d10d5a8d53 enhance: タイムラインにフォロイーの行った他人へのリプライを含めるかどうかの設定をアカウントに保存するのをやめるように
Resolve #10646
2023-05-16 12:16:37 +09:00
syuilo
b380dc53e1 fix typo 2023-05-11 16:22:46 +09:00
syuilo
ae5a72a2df feat: 投稿したコンテンツのAIによる学習を軽減するオプションを追加
Resolve #10819
2023-05-10 10:52:41 +09:00
syuilo
b565df6882 fix(backend): fix channels/owned
Fix #10791
2023-05-08 07:59:06 +09:00
syuilo
95a2de8d54 fix(backend): 凍結されたユーザーが一部APIのレスポンスに含まれる問題を修正 2023-05-07 17:36:13 +09:00
syuilo
29a84230b0 enhance(backend): SearchService.searchNoteでhost指定対応 2023-05-07 11:59:06 +09:00
syuilo
6ad9a9677a fix test 2023-05-07 11:31:32 +09:00
syuilo
c7d4264ecf refactor 2023-05-06 09:34:21 +09:00
Chocolate Pie
39748ea0c3
feat: アンテナのエクスポート・インポート (#10754)
* feat: アンテナのエクスポートに対応 (misskey-dev/misskey#10690)

* feat: アンテナのインポートに対応 (misskey-dev/misskey#10690)

* fix: タイポを修正

* feat: ユーザーリストをサポート

* fix: バグを直した

* fix: バグを直した

* fix: 適当に決めた変数名を変更

* fix

* fix: 変数の変更、リファクタリング
2023-05-06 08:17:55 +09:00
syuilo
5dfbce7571 feat: チャンネルの削除
Resolve #7171
Resolve #9935
2023-05-06 08:15:17 +09:00
nenohi
2d84e04240
ロールにNSFWを強制的につけるオプションを追加 (#10731)
* ロールにNSFWを強制的につけるオプションを追加

* すでにあるファイルにNSFWが付与できない

* NSFWを付与しようとするとエラーに

* add test

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

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

* spacingで怒られたので

* ロール作成時のプロパティ削除

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-05-05 14:18:06 +09:00
syuilo
5c08f2b93b
feat: Introduce Meilisearch (#10755)
* wip

* wip

* Update SearchService.ts

* Update SearchService.ts

* wip

* wip

* Update SearchService.ts

* Update CHANGELOG.md

* wip

* Update SearchService.ts

* Update docker-compose.yml.example
2023-05-05 08:52:14 +09:00
たーびん
8dab46470e
fix #10666 チャンネル検索ですべてのチャンネルの取得/表示ができるようにする (#10667)
* Update CHANGELOG.md

* fix : able to search all channels

* add chennel/search test

* update Changelog

---------

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>
2023-05-05 08:48:14 +09:00
tamaina
f3e43a0fc6 refactor 2023-05-02 10:26:18 +00:00
tamaina
b3ec47c3f4 初期ユーザー登録時にはpreservedUsernamesを無視する
Fix #10738
2023-05-02 10:18:57 +00:00
syuilo
d535ec21a2 feat: チャンネルに色を設定できるように 2023-05-02 09:36:40 +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 3bd7be35d8aa455cb01ae58f8172a71a50485db1.

* 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
tamaina
351bee325b perf(backend): Use ThinUser in admin/federation/remove-all-following 2023-04-29 14:35:48 +00:00
Namekuji
0ab50f87a2
fix #10651 (#10684) 2023-04-29 23:27:14 +09:00
syuilo
0ad7869249 feat: preserved usernames
Resolve #10704
2023-04-29 17:03:14 +09:00
syuilo
34492f3c9a enhance(backend): tweak cache of federated instance
#10631
2023-04-22 19:59:08 +09:00
tamaina
5cae078e5e fix(backend): make isExplorable optional for backward compatibility
https://github.com/misskey-dev/misskey/pull/10677#issuecomment-1516394630
2023-04-20 16:09:54 +00:00
nenohi
8dc60cd327
Role timeline setting (#10677)
* ロールタイムライン設定

* isRoleTimeline to isExplorable

* ポリシーではないので削除

* 型からも

* wip

* 足りてなかった説

* wip

* listはpublicを表示

* 前回の記載修正( #10671 )

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-20 20:02:50 +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
nenohi
65ff2c2498
カスタム絵文字のライセンスを一括でできるように (#10671)
* setlicensebulk追加

* 5時に誤字った!w

* 並び順の変更(set,add,removeの順

* add changelog
2023-04-19 08:25:24 +09:00
Nanashia
0ddc79bb91
fix(backend): アバターとバナーがリセットできない (#10643)
* fix(backend): avatar and banner couldn't be reset

* Update CHANGELOG.md
2023-04-16 15:23:49 +09:00
nenohi
9469b26eb2
カスタム絵文字の検索を絵文字ピッカー使用できるように (#10335)
* fix( #10013)

* add changelog

* also in about.emojis.vue

* fix changelog

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-04-14 14:49:41 +09:00
syuilo
a67439981b fix types 2023-04-14 13:50:05 +09:00
syuilo
97abfd48ce refactor(backend): tweak repository name 2023-04-13 13:31:54 +09:00
Ebise Lutica
605f149235
feat: 自分用メモ機能 (#10516)
* 自分用メモを作成する機能

* 不要なCSSを削除

* メモ: デザイン調整

* デザイン崩れを修正

* fix: メモ機能のe2eテストで見つかった不具合を修正

* デザイン調整

* fix(frontend): 自分用メモtextareaにline-heightが適用されない問題を修正
2023-04-13 13:17:32 +09:00
syuilo
3f57119aea [ci skip] remove outdated comment 2023-04-13 09:02:41 +09:00
futchitwo
04511ac141
fix(server): アンテナとロールTLのuntil/sinceプロパティが動くように (#10605)
* fix(server): アンテナとロールTLのuntil/sinceプロパティが動くように

* fix
2023-04-13 08:33:36 +09:00
tamaina
3ff5a5ae29 fix type in CustomEmojiService 2 2023-04-12 12:32:27 +00:00
syuilo
5d56799070 feat: role timeline
Resolve #10581
2023-04-12 11:40:08 +09:00
Namekuji
da83322200
feat: queueing bulk follow/unfollow and block/unblock (#10544)
* wrap follow/unfollow and block/unblock as job queue

* create import job to follow in each iteration

* make relationship jobs concurrent

* replace to job queue if called repeatedly

* use addBulk to import

* omit stream when importing

* fix job caller

* use ThinUser instead of User to reduce redis memory consumption

* createImportFollowingToDbJobの呼び出し方を変える, 型補強

* Force ThinUser

* オブジェクト操作のみのメソッド名はgenerate...Data

* Force ThinUser in generateRelationshipJobData

* silent bulk unfollow at admin api endpoint

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-04-12 09:13:58 +09:00
syuilo
43eee54f2d enhance(backend): APIパラメータサイズ上限を128kbから1mbに緩和 2023-04-11 14:28:40 +09:00
syuilo
59ca0d21a1 enhance(backend): APIパラメータサイズ上限を32kbから128kbに緩和
Fix #10574
2023-04-11 14:27:09 +09:00
たーびん
f6dc100748
fix #10554 チャンネルの検索用ページとAPIの追加 (#10555)
* add channel search

* move  channel search to channel list page

---------

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>
2023-04-11 07:42:27 +09:00
syuilo
39cf80e19f fix(backend): イベント用redis分離が上手く動かない問題を修正 2023-04-09 17:09:27 +09:00
syuilo
b56f4b27ee fix(backend): ストリーミングのLTLチャンネルでサーバー側にエラーログが出るのを修正 2023-04-09 17:01:03 +09:00
futchitwo
038365bf2d
fix: redis から取得できないチャンネル投稿はDBから取得 (#10539) 2023-04-09 07:56:27 +09:00
syuilo
2321214c98 disable account migration 2023-04-08 20:51:36 +09:00
Namekuji
e23cf77f86
fetch person again (#10514) 2023-04-08 16:13:50 +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
fa67fb42b1 enhance(backend): Redisにチャンネル投稿がない場合はDBから持ってくるように
Fix #10473
2023-04-08 13:12:49 +09:00
syuilo
ff6d9d2860 feat(backend): イベント用Redisを別サーバーに分離できるように 2023-04-07 11:20:14 +09:00
syuilo
521eb95dbc perf(backend): cache avatar and banner url to db 2023-04-06 19:48:24 +09:00
syuilo
a574d0fbcb
fix 2023-04-06 11:36:20 +09:00
syuilo
73203a3d72 perf(backend): cache local custom emojis 2023-04-06 11:14:43 +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
f44504097c enhance(backend): improve cache 2023-04-05 10:21:10 +09:00
syuilo
625fed8838 enhance(backend): チャンネルの既読管理を削除
- 現状上手く機能していない
- パフォーマンス上の理由
- 実装するにしてももっと効率的な方法がある
2023-04-05 07:52:49 +09:00
syuilo
ecaf152b4a enhance(backend): improve cache 2023-04-04 17:32:09 +09:00
syuilo
7f3afac0a2 refactor(backend): rename Cache -> MemoryCache 2023-04-04 15:56:47 +09:00
syuilo
30d6992684 perf(backend): 通知をRedisに保存するように
Resolve #10168
2023-04-04 14:06:57 +09:00
syuilo
b53d6c7f8c perf(backend): store notes of an antenna to redis instead of postgresql
Resolve #10169
2023-04-03 12:11:16 +09:00
syuilo
4f9f625e65 perf(backend): cache timeline of a channel to redis 2023-04-03 11:49:58 +09:00
syuilo
9bc5d52e41 feat: チャンネルにノートをピン留めできるように
Resolve #7740
2023-03-31 15:01:56 +09:00
syuilo
3cb0cc7989 feat: チャンネルをお気に入りに登録できるように
Resolve #10097
2023-03-31 11:30:27 +09:00
syuilo
e03d5a86a4 lint fix 2023-03-30 12:16:03 +09:00
syuilo
31f3f5f0f0 enhance(backend): リモートサーバーのチャート生成を無効にするオプションを追加 2023-03-24 19:08:08 +09:00
syuilo
09a846a45c enhance(backend): use ❤️ for reaction fallback 2023-03-24 18:55:31 +09:00
syuilo
46f99755db refactor 2023-03-24 18:29:39 +09:00
syuilo
e438091113 refactor(backend): rename cache class 2023-03-24 16:43:42 +09:00
syuilo
ab26a8016d fix(server): 空のアンテナが作成できるのを修正 2023-03-24 16:01:35 +09:00
syuilo
f01e6ef6bf enhance(backend): リモートユーザーのチャート生成を無効にするオプションを追加 2023-03-24 15:43:36 +09:00
syuilo
050787238b fix(backend): 絵文字を編集すると保存できないことがある問題を修正
Fix #10384
2023-03-22 18:45:55 +09:00
CyberRex
7331de0bce
feat: queue force promote (#10370)
* feat: queue force promote

* Update CHANGELOG.md

* small fix
2023-03-22 08:58:23 +09:00
syuilo
54630edb0f enhance: 使われてないアンテナは自動停止されるように
Resolve #9373
2023-03-20 20:12:38 +09:00
choco
eb5781465b
fix(users/show): ユーザーが見つからなかった場合に404ステータスコードを返す (#10344)
* fix(users/show): ユーザーが見つからなかった場合に404ステータスコードを返す

* test(users/show): ステータスコードの期待値を修正
2023-03-20 14:26:11 +09:00
nenohi
e152047912
絵文字の名前に@や:が使用できる (#9964)
* fix(#9918)名前の一致でもエラーとするように

* 判定を逆に

* )の位置間違えてる

* カテゴリ分けとかしたときにエラーになる

* エラー消し

* こういうこと・・・?
2023-03-20 14:24:18 +09:00
CyberRex
1d6f43aa30
feat: drive cleaner (#10366)
* feat: drive-cleaner

* Update CHANGELOG.md
2023-03-20 12:58:06 +09:00
syuilo
4d73080da1 perf(backend): improve performance of timeline apis 2023-03-19 16:52:38 +09:00
syuilo
ed51209172 絵文字のライセンスを表示できるように 2023-03-17 20:24:47 +09:00
syuilo
b644567735 feat: clip favorite
Resolve #10337
2023-03-16 17:24:49 +09:00
syuilo
8ae9d2eaa8 enhance: カスタム絵文字にライセンス情報を付与できるように
Resolve #10091
2023-03-16 15:08:48 +09:00
syuilo
89e2c302dd refactor(backend): integrate CreateNotificationService to NotificationService 2023-03-16 14:24:11 +09:00
syuilo
63068fc0c2 fix(server): prevent creation of empty antennas 2023-03-15 18:09:00 +09:00
CyberRex
c05c504c86
Deliverキューに宛先がSharedInboxかどうかのフラグを追加 ( #10298 関係 ) (#10317)
* enhance(backend): 配送先が410 Goneで応答してきた場合配送停止するように

* Update CHANGELOG.md

* Deliverキューのデータに宛先がSharedInboxかどうかのフラグを追加

* Fix lint

* Mapを使用するように

* Fix typo
2023-03-14 19:11:31 +09:00
YS
3cb669a852
fix: クエリキャッシュ無効化時の絵文字操作エラーを解消 (#10320)
* disabledCache: trueのときにqueryResultCacheへアクセスしないように

* append changelog
2023-03-14 09:37:14 +09:00
syuilo
5d1ccb9bdc enhance: make configurable to whether notes search available by role
Resolve #10318
2023-03-13 17:52:24 +09:00
syuilo
7f16b50e73 feat: sensitive word 2023-03-13 17:37:22 +09:00
syuilo
7c2d8d73ce enhance: ロールの並び順を設定可能に 2023-03-12 16:38:08 +09:00
syuilo
99f3f0917f tweak postgresql entities
Fix #10266
2023-03-10 14:53:56 +09:00
syuilo
5de8930058 refactor: rename schema to json-schema 2023-03-10 14:22:37 +09:00
Kagami Sascha Rosylight
e0b7633a7a
enhance(backend): restore OpenAPI endpoints (#10281)
* enhance(backend): restore OpenAPI endpoints

* Update CHANGELOG.md

* version

* set max-age

* update redoc

* follow redoc documentation

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-10 02:37:44 +09:00
tamaina
c75afad64a
enhance: アカウント削除時のクライアントの挙動をいい感じにするなど (#10002)
* refreshAccounts
Resolve #9322

* アカウント管理画面でリストを更新するように

* Update packages/frontend/src/account.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* ✌️

* クライアント起動時は現在ログインしているアカウントのみリフレッシュする

* clean up

* なんかめっちゃ変えた

* refactor

* refactor

* fix lint

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2023-03-09 14:27:16 +09:00
RyotaK
a4ca127ebd
fix: 登録メール送信時に重複確認を行う (#10231)
* fix: 登録メール送信時に重複確認を行う

* try-catchを使う必要はない

* Remove spaces
2023-03-09 12:57:34 +09:00
mmorita
aad70a97db
fix: チャンネルの編集権限をチャンネル所有者とモデレーターに限定する (#10268)
* チャンネルの編集権限をチャンネルオーナーとモデレーターに限定する

* PR 指摘点対応(共有ボタンを全員に表示、$i の nullable 対応、fix a typo)

* everyOne -> share
2023-03-09 07:58:53 +09:00
syuilo
dd6569a1bb
feat: Reaction acceptance (#10256)
* wip

* wip

* デフォルト設定
2023-03-08 08:56:47 +09:00
syuilo
4c2f7c64cc
feat: Per-user renote mute (#10249)
* feat: per-user renote muting

From FoundKey/c414f24a2c https://akkoma.dev/FoundKeyGang/FoundKey

* Update ja-JP.yml

* Delete renote-muting.ts

* rename

* fix ids

* lint

* fix

* Update CHANGELOG.md

* リノートをミュートしたユーザー一覧を見れるように

* 🎨

* add test

* fix test

---------

Co-authored-by: Hélène <pleroma-dev@helene.moe>
2023-03-08 08:56:09 +09:00
syuilo
6fe13f1a63 lint fix 2023-03-07 20:17:19 +09:00
danominium
4f0bb70118
fix(backend): ブロックホストがない場合はINクエリを生成しない。 (#10258)
空のINクエリはシンタックスエラーとなるため。
2023-03-07 20:09:20 +09:00
syuilo
2b884ba338 enhance(server): tweak notes/featured api 2023-03-07 08:41:10 +09:00
Kagami Sascha Rosylight
61215e50ff
test(backend): APIテストの復活 (#10163)
* Revert 1c5291f818

* APIテストの復活

* apiテストの移行

* moduleNameMapper修正

* simpleGetでthrowしないように

status確認しているので要らない

* longer timeout

* ローカルでは問題ないのになんで

* case sensitive

* Run Nest instance within the current process

* Skip some setIntervals

* wait for 5 seconds

* kill them all!!

* logHeapUsage: true

* detectOpenHandlesがじゃましているらしい

* maxWorkers=1?

* restore drive api tests

* workerIdleMemoryLimit: 500MB

* 1024MiB

* Wait what
2023-03-03 11:13:12 +09:00
kabo2468
53987fadd7
fix(server): チャンネルでミュートが正しく機能していないのを修正 (#10166)
* fix(server): チャンネルでミュートが正しく機能していないのを修正

* Update CHANGELOG.md
2023-03-03 10:30:21 +09:00
syuilo
d0bbeeee52 🎨 2023-03-01 14:22:53 +09:00
syuilo
9e5278d276 fix of #10145 2023-03-01 12:02:37 +09:00
syuilo
1c5291f818
feat: 時限ロール (#10145)
* feat: 時限ロール

* クライアントから期限を確認できるように

* リファクタとか

* fix test

* fix test

* fix test

* clean up
2023-03-01 10:20:03 +09:00
syuilo
746770ac3b fix Serialized type 2023-02-28 16:46:25 +09:00
syuilo
b60c985203 fix(server): メールアドレス更新時にバリデーションが正しく行われていないのを修正 2023-02-28 15:31:48 +09:00
Kagami Sascha Rosylight
647a018362
fix(backend): return HTTP 404 for any unknown api endpoint paths (#10130)
* fix(backend): return HTTP 400 for any invalid api endpoint paths

* 404
2023-02-27 18:01:43 +09:00
tamaina
02d7ffd305 fix(server): 単純にrenoteできないのを修正 2023-02-26 11:10:24 +00:00
syuilo
a78a839841 refactor 2023-02-26 18:57:24 +09:00
xianon
67ca7ee4ec
ホームタイムラインの読み込みでクエリタイムアウトになるのを修正する (#10106) 2023-02-26 18:54:52 +09:00
syuilo
cc149e2f46 fix(server): エラーのスタックトレースは返さないように
Fix #10064
2023-02-26 17:12:15 +09:00
daima3629
1bdde6bd5c
[Fix] fixed an typo in error message (#10102) 2023-02-26 14:14:57 +09:00
tamaina
18dbcfa0b0
test(server): add validation test of api:notes/create (#10090)
* fix(server): notes/createのバリデーションが効いていない
Fix #10079

Co-Authored-By: mei23 <m@m544.net>

* anyOf内にバリデーションを書いても最初の一つしかチェックされない

* ✌️

* wip

* wip

* ✌️

* RequiredProp

* Revert "RequiredProp"

This reverts commit 74693900119a590263106fa3adefd008d69ce80c.

* add api:notes/create

* fix lint

* text

* ✌️

* improve readability

---------

Co-authored-by: mei23 <m@m544.net>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-02-26 11:28:05 +09:00
syuilo
ea04778649 feat: in-channel featured note
Resolve #9938
2023-02-25 18:26:35 +09:00
tamaina
e4336f5b76
fix(server): notes/createで、fileIdsと見つかったファイルの数が異なる場合はエラーにする (#9911)
* fix(server): notes/createで、fileIdsと見つかったファイルの数が異なる場合はエラーにする

* NO_SUCH_FILE
2023-02-24 16:32:01 +09:00
tamaina
becc4d2e54
fix: i/notificationsで古い通知タイプを許容するなど、古い通知タイプの清算 (#10042)
* wip

* fix

* create migration

* oops

* fix front const

* changelog

* fix type

* fix

* wip

* Revert "wip"

This reverts commit 6cdb3600e280be3550b8b6353b2c7930f7b31438.

* enumのこす

* fix

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-02-23 20:46:14 +09:00
syuilo
84e2ee220b fix(server): tweak admin/show-user api
Fix #9883
2023-02-22 17:17:36 +09:00
syuilo
5ec07ede7c fix types 2023-02-22 14:58:41 +09:00
syuilo
72d4ad4c45 fix type 2023-02-22 14:53:36 +09:00
dojineko
a6fb6150a3
chore: add tiny definition for redis-lock (#9971)
* add tiny definition for redis-lock

* Update packages/backend/src/@types/redis-lock.d.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* fix type name

* add @typescript-eslint/naming-convention

* define taskToPerform type

* chore: use default settings for `@typescript-eslint/naming-convention`

* set `format:none` to typeParameter (default)

* ignore lines to be treated as exceptions

* chore: fix naming

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-02-22 14:51:34 +09:00
tamaina
b9ee14fe5b
fix: MkUserSelectDialog/search-by-username-and-hostでローカルユーザーを絞って検索できない問題を修正 (#9943)
* fix: MkUserSelectDialog/search-by-username-and-hostでローカルユーザーを絞って検索できない問題を修正
Fix #9627

* update CHANGELOG.md

* clean up

* search-by-username-and-host大改造
2023-02-22 14:47:51 +09:00
syuilo
870f7608be enhance: exploreで公開ロール一覧とそのメンバーを閲覧できるように 2023-02-22 14:43:18 +09:00
syuilo
b161f38710 fix(server): improve security of admin/drive/show-file 2023-02-21 14:47:11 +09:00
tamaina
980bf1306e
🎨 2FA設定のデザイン向上 / セキュリティキーの名前を変更できるように (#9985)
* wip

* fix

* wip

* wip

* ✌️

* rename key

* 🎨

* update CHANGELOG.md

* パスワードレスログインの判断はサーバーで

* 日本語

* 日本語

* 日本語

* 日本語

* ✌️

* fix

* refactor

* トークン→確認コード

* fix password-less / qr click

* use otpauth

* 日本語

* autocomplete

* パスワードレス設定は外に出す

* 🎨

* 🎨

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-02-20 16:40:24 +09:00
noonworks
ea92254b73
refactor: 型エラー修正 / Fix type errors backend (#9983)
* refactor: fix type errors in backend

* revert some changes

* なるべくJS挙動を変えない方法に修正

* Update packages/backend/src/server/api/ApiCallService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* コンフリクトするファイルを削除

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2023-02-20 08:13:37 +09:00
syuilo
7ce0f79f7f chore(server): tweak notes/featured api 2023-02-19 17:50:14 +09:00
syuilo
0f546b47d1 refactor: fix types 2023-02-17 15:39:10 +09:00
syuilo
60df819c60 refactor: fix types 2023-02-17 15:36:36 +09:00
syuilo
0e1b5d6f14 refactor: fix types 2023-02-17 15:15:36 +09:00
tamaina
e8c5307f66
perf(client): ウェルカムページを最適化 (#9960)
* perf(client): ウェルカムページの最適化

* remove max
2023-02-17 12:38:30 +09:00
Kagami Sascha Rosylight
8f9ce23e52
style(backend): fix all eslint errors (#9967) 2023-02-17 10:56:59 +09:00
Kagami Sascha Rosylight
63df2c851e
refactor: remove all unused imports (#9951)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-16 23:09:41 +09:00
syuilo
e24b0ceb80 startAt -> startsAt 2023-02-15 14:31:59 +09:00
nenohi
71c42bef9b
広告開始時期の設定 (#9944)
* 広告開始時期の設定

* 過去のものも表示するように
2023-02-15 14:29:40 +09:00
syuilo
8caf288ac1
drop group (#9942)
* drop group

* Update operations.ts
2023-02-15 13:37:18 +09:00
syuilo
8f2049bcd2
drop messaging (#9919)
* drop messaging (from backend)

* wip
2023-02-15 13:06:06 +09:00
Neko7sora
7436a58ea1
改行コードをLFに統一 (#9926)
* chore: update gitattribute editorconfig

* Normalize all the line endings
2023-02-14 13:13:34 +09:00
syuilo
1b21bad202 refactor 2023-02-13 15:50:22 +09:00
syuilo
f34f9f6ea5 refactor: fix types 2023-02-13 15:28:07 +09:00
syuilo
451bc0b444 refactor: fix types 2023-02-12 18:47:30 +09:00
syuilo
b55d26387b improve error handling 2023-02-12 10:36:43 +09:00
syuilo
9ddf62d8b7 enhance: レートリミットを0%にできるように 2023-02-12 10:26:27 +09:00
syuilo
0b269e79fd i/notificationsのレートリミットを緩和 2023-02-09 18:11:11 +09:00
tamaina
6e61a36d05 i/notificationsのレートリミットを緩和
SubwayTooterのバグ対策でレートリミットを設定していたが、通常の使い方でも引っかかることもあるため緩和
2023-02-09 08:32:42 +00:00
syuilo
76faec2115 refactor: fix types 2023-02-09 11:46:08 +09:00
syuilo
33c4e57994 refactor: fix types 2023-02-09 11:42:55 +09:00
syuilo
bc23496998 refactor: fix types 2023-02-09 11:31:40 +09:00
syuilo
5facd11592 refactor: fix types 2023-02-09 11:02:37 +09:00
syuilo
e1e885d6b2 refactor: fix types 2023-02-09 10:55:15 +09:00
syuilo
71dd7f89e9 clean up 2023-02-09 10:47:03 +09:00
syuilo
21331e53fe refactor: fix types 2023-02-09 10:46:01 +09:00
syuilo
1139632f95 fix(server): 自分のノートをお気に入りに登録しても実績解除される問題を修正 2023-02-05 14:30:07 +09:00
syuilo
6a3039f7b7 feat: ロールにアイコンを設定してユーザー名の横に表示できるように
Resolve #9761
2023-02-05 10:37:03 +09:00
syuilo
ee74df6823 fix(server): improve security 2023-02-04 18:21:07 +09:00
tamaina
2dfed75402
perf(server): improvement of external mediaProxy (#9787)
* perf(server): improvement of external mediaProxy

* add a comment

* ✌️

* /filesでsharpの処理を行わずリダイレクトする

* fix

* thumbnail => static

* Fix #9788

* add avatar mode

* add url

* fix

* static.webp

* remove encodeURIComponent from media proxy path

* remove existance check
2023-02-04 13:38:51 +09:00
syuilo
0c12e80106 perf(server): cache blocking 2023-02-04 12:40:40 +09:00
syuilo
562b02310f drop twitter/github/discord integrations
Close #9775
2023-02-03 15:01:31 +09:00
syuilo
c559a9843f drop hashtag chart 2023-02-03 14:10:14 +09:00
syuilo
d9d98f84bf refactor: fix type 2023-02-01 20:12:42 +09:00
tamaina
7c3143b8e5
enhance(backend): enhance SchemaType handling of anyOf (#9762)
* enhance(backend): enhance anyOf handling

* clean up
2023-02-01 20:04:01 +09:00
syuilo
387fcd5c5d refactor: fix type 2023-02-01 17:29:28 +09:00
hayabusa
b21064ffa4
リアクション履歴が公開なら、ログインしていなくても表示できるように (#9728) 2023-01-26 16:10:32 +09:00
tamaina
605b0f27e4 Merge branch 'develop' into emoji-re 2023-01-25 14:22:26 +00:00
syuilo
d4fb201d05 fix(server): node-fetchおよびgotを使う以前の実装に戻す
see #9710
2023-01-25 12:00:04 +09:00
syuilo
2a2e8d0cf6 refactor(server): fix type errors 2023-01-25 11:23:57 +09:00
tamaina
0cffe60abc 1時間に 2023-01-22 17:14:05 +00:00
tamaina
d347f0a087 wip 2023-01-22 16:07:17 +00:00
tamaina
0b2f945bb6 wip 2023-01-22 15:13:03 +00:00
tamaina
2f6c45e118 wip 2023-01-22 14:53:24 +00:00
tamaina
a8b19f4aa8 Merge branch 'develop' into emoji-re 2023-01-22 12:07:38 +00:00