Commit graph

1224 commits

Author SHA1 Message Date
syuilo 8b1999dc5b fix(api): (0 , ms_1.default) is not a function 2021-10-08 21:24:53 +09:00
syuilo 5bf69476f6 enhance(api): ap系のエンドポイントをログイン必須化+レートリミット追加
他のサーバーにリクエストを送信するという性質上、攻撃の踏み台にされることがあるため
2021-10-08 14:05:07 +09:00
syuilo b875cc9949
feat: アカウント作成にメールアドレス必須にするオプション (#7856)
* feat: アカウント作成にメールアドレス必須にするオプション

* ui

* fix bug

* fix bug

* fix bug

* 🎨
2021-10-08 13:37:02 +09:00
syuilo 8d05ef3058
fix(api): fix file type regex 2021-10-05 20:28:07 +09:00
Johann150 414f1d1158
fix: truncate image descriptions (#7699)
* move truncate function to separate file to reuse it

* truncate image descriptions

* show image description limit in UI

* correctly treat null

Co-authored-by: nullobsi <me@nullob.si>

* make truncate Unicode-aware

The strings that truncate returns should now be valid Unicode.

PostgreSQL also counts Unicode Code Points instead of bytes so this
should be correct.

* move truncate to internal, validate in API

Truncating could also be done in src/services/drive/add-file.ts or
src/services/drive/upload-from-url.ts but those would also affect
local images. But local images should result in a hard error if the
image comment is too long.

* avoid overwriting

Co-authored-by: nullobsi <me@nullob.si>
2021-09-30 01:44:22 +09:00
Johann150 ce32cd576b
fix inboxQueue import (#7829) 2021-09-23 22:32:16 +09:00
tamaina 14795b68f2
refactor: PackedHoge型をPacked<'Hoge'>型に書き換える (#7792)
* packedNotificationSchemaを更新

* read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加

* fix

* add header, choice, invitation

* test

* fix

* yatta

* remove no longer needed "as PackedUser/PackedNote"

* clean up

* add simple-schema

* fix lint

* define items in full Schema

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* user packとnote packの型不整合を修正

* add prelude/types.ts

* emoji

* signin

* game

* matching

* fix

* add emoji schema

* add reversiGame

* add reversiMatching

* remove signin schema (use Signin entity)

* add Packed type

* note-reaction

* user

* user-group

* user-list

* note

* app, messaging-message

* notification

* drive-file

* drive-folder

* following

* muting

* blocking

* hashtag

* page

* app (with modifying schema)

* import user?

* channel

* antenna

* clip

* gallery-post

* emoji

* Packed

* reversi-matching

* add changelog

* add changelog

* revert fix
2021-09-22 22:35:55 +09:00
syuilo 9208825975 feat(server): 管理者用アカウント削除API実装
動作確認済み
Resolve #7735
2021-09-22 17:34:48 +09:00
syuilo 54e0a7f8a8
feat: 凍結された場合のダイアログを実装 (#7811)
* feat: 凍結された場合のダイアログを実装

* Update CHANGELOG.md

* Update basic.js

* improve error handling

* cypressなんもわからん

* Update basic.js
2021-09-19 02:23:12 +09:00
syuilo a6958da091 enhance(server): アカウントが凍結されたときのエラーを判定しやすく 2021-09-18 17:58:37 +09:00
sousuke0422 07bb8067ae
fix: アンテナの既読 (#7803)
from: a89742319c
2021-09-18 13:30:28 +09:00
tamaina 53f3b779bf
refactor: Expand schema (#7772)
* packedNotificationSchemaを更新

* read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加

* fix

* add header, choice, invitation

* test

* fix

* yatta

* remove no longer needed "as PackedUser/PackedNote"

* clean up

* add simple-schema

* fix lint

* define items in full Schema

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* user packとnote packの型不整合を修正
2021-09-12 01:12:23 +09:00
syuilo 1cd8bfaded fix(server): ノート翻訳時に公開範囲が考慮されていない問題を修正 2021-09-05 16:25:30 +09:00
MeiMei e21ff916b0
ファイルサイズのハードリミット (#7760)
* maxFileSize

* CHANGELOG
2021-09-04 20:33:14 +09:00
syuilo d64e25e449 fix: support DeepL pro account
Fix #7648
2021-08-24 13:19:21 +09:00
syuilo bae1282f74 clean up 2021-08-21 14:47:39 +09:00
tamaina d2007add75
feat: Implement api sw/unregister (#7611)
* Implement api sw/unregister

* remove all mode

* add changelog

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-08-21 14:47:18 +09:00
syuilo fd1ef4a62d
enhance(server): Use job queue for account delete (#7668)
* enhance(server): Use job queue for account delete

Fix #5336

* ジョブをひとつに

* remove done call

* clean up

* add User.isDeleted

* コミット忘れ

* Update 1629512953000-user-is-deleted.ts

* show dialog

* lint

* Update 1629512953000-user-is-deleted.ts
2021-08-21 12:41:56 +09:00
Johann150 1ffee15b83
fix: use correct query generate function (#7657)
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-08-20 20:55:12 +09:00
syuilo 97f2675d40 refactor: use path alias to improve readability 2021-08-19 22:04:15 +09:00
syuilo 42cc93dd0f fix: mochaが動かないため拡張子なしに戻した 2021-08-19 21:55:45 +09:00
syuilo b9cb6d1c10 refactor: refactoring imports
将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
2021-08-19 18:33:41 +09:00
syuilo 7015df37e3
enhance(server): Improve user block (#7640)
* enhance(server): Improve user block

* Update CHANGELOG.md

* ユーザーリスト対応

* 相手から見れなくなるように

* Update 1629004542760-chart-reindex.ts

2365761ba5 (commitcomment-54919821)

* update test

* add test

* add todos

* Update 1629004542760-chart-reindex.ts
2021-08-17 21:48:59 +09:00
syuilo bf1d7e6252 fix(server): ja-JPのような形式にDeepLが対応してない 2021-08-15 21:52:58 +09:00
syuilo cced83024b feat: ノートの翻訳機能
Resolve #5213
2021-08-15 20:26:44 +09:00
syuilo b81ff340b1 Introduce e2e test 2021-08-12 19:05:07 +09:00
MeiMei 04e27e160e
認証の修正 (#7597)
* authenticateのキャッシュを廃止

* 凍結ユーザーがサインイン出来てしまうのを修正

* 凍結ユーザーはストリーミング接続出来ないように

* 他人のアクセストークンはrevoke出来ないように, 正常削除を待機するように

* ユーザー/アクセストークンを無効化したらストリーミングを切断するように

* Revert TODO

* ストリーミングterminateは、ユーザー削除後に行うように

* signinでsuspendは別のエラーにする

* トークン再生成後のストリーミング切断は少し待つように

* サスペンド後のストリーミング切断はローカルユーザーのみに
2021-07-18 19:57:53 +09:00
MeiMei 62dede02ea
API AuthenticateでDB接続エラーなどが発生するとログアウトさせられてしまうのを修正 Fix #7603 (#7604) 2021-07-18 00:53:16 +09:00
syuilo dc69490e3a Refactoring 2021-07-15 20:45:32 +09:00
syuilo 49febe1764 Resolve #7165 2021-07-09 01:07:55 +09:00
syuilo 28f7e48dc6 improve type 2021-06-30 23:33:50 +09:00
syuilo d97fc9ce4e カスタム絵文字インポート時もemojiAddedイベントを発行するように 2021-06-23 13:42:02 +09:00
syuilo a65eb502d2 fix api response definition 2021-06-08 14:26:52 +09:00
syuilo 55c549a9f8 Remove entity descriptions
#6627
2021-06-08 14:24:21 +09:00
syuilo 56600ba1df refactor type 2021-06-08 14:14:58 +09:00
syuilo 6b312f755e Remove endpoint descriptions
#6627
2021-06-08 14:09:32 +09:00
MeiMei caf40e40fb
Supports Array ActivityStreams type (#7536)
* Supports Array type

* Fix

* Fix Service to Note

* Update type.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-05-31 13:04:13 +09:00
syuilo 0eb115bf7e Resolve #7538 2021-05-28 22:53:00 +09:00
syuilo 857c88e8d6 fix type 2021-05-28 22:52:30 +09:00
nullobsi ffb9646ce9
Add image description support (#7518)
* recieve image descriptions under the name property

* fix other components

* use comment for alt and title

* allow editing of file comment

* allow editing of file comment in note dialog

* federate note comments

* use file instead of this

* backend should accept comment on update

* update now actually accepts comment

* allow multiline descriptions

* image should also have description attached

* Update locales/ja-JP.yml

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>

* Use custom component with side-by-side image

* improve usability on mobile devices

* revert changes

* Update post-form-attaches.vue

* Update drive.file.vue

* Update media-caption.vue

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-05-28 09:38:09 +09:00
syuilo db3724cf33 improve types 2021-05-28 09:34:42 +09:00
MeiMei 47aaf04481
Fix search-by-tag (#7531)
* Fix search-by-tag

* Revert "Fix search-by-tag"

This reverts commit c971d1d5d82f2d8b58fdec76e42f4404339ab83a.

* Fix typo

* Remove unused var

* インジェクションは[]を返すように
2021-05-23 18:57:12 +09:00
syuilo da34acd35f
Resolve #6563 (#7524)
* Resolve #6563

* Update note.ts

* Update generate-visibility-query.ts
2021-05-21 14:13:03 +09:00
syuilo 164959a0c5 Create get-index-stats.ts 2021-05-08 12:51:23 +09:00
syuilo 47fa7bb22a Improve ad 2021-05-08 12:50:11 +09:00
syuilo b60f9fbc00 Improve ad 2021-05-07 14:22:13 +09:00
MeiMei 588b838deb
APIドキュメントが見れなくなっているのを修正など (#7500)
* Test api.json

* Fix typo

* Fix api-doc
2021-05-05 19:02:30 +09:00
syuilo 18e1efc7ec
Ad (#7495)
* wip

* Update ad.vue

* Update default.widgets.vue

* wip

* Create 1620019354680-ad.ts

* wip

* Update ads.vue

* wip

* Update ad.vue
2021-05-04 21:15:57 +09:00
syuilo 6ae642245e
Password reset (#7494)
* wip

* wip

* Update well-known.ts

* wip

* clean up

* Update request-reset-password.ts

* Update forgot-password.vue

* Update reset-password.ts

* Update request-reset-password.ts
2021-05-04 15:05:34 +09:00
syuilo 42539575a6 ギャラリー投稿の編集と削除 2021-04-26 11:10:45 +09:00