Commit graph

90 commits

Author SHA1 Message Date
syuilo
b9cb6d1c10 refactor: refactoring imports
将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
2021-08-19 18:33:41 +09:00
MeiMei
04e27e160e
認証の修正 (#7597)
* authenticateのキャッシュを廃止

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

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

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

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

* Revert TODO

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

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

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

* サスペンド後のストリーミング切断はローカルユーザーのみに
2021-07-18 19:57:53 +09:00
syuilo
c74fe3c6e2 refactor: Use path alias 2021-03-23 17:43:07 +09:00
syuilo
c4c20bee7c wip #6441 2021-03-21 21:27:09 +09:00
syuilo
91172654e4 refactor: resolve #7139 2021-02-13 15:33:38 +09:00
MeiMei
0e45f10d99
Improve captcha (#7138) 2021-02-06 11:46:47 +09:00
Acid Chicken (硫酸鶏)
b2c703c173
Update src/server/api/private/signup.ts 2020-05-02 10:31:37 +09:00
syuilo
9053b9635e
refactor 2020-05-02 10:28:45 +09:00
Acid Chicken (硫酸鶏)
9daa900793
Refactor codes 2020-04-29 05:30:58 +09:00
Acid Chicken (硫酸鶏)
7860839220
Add support for hCaptcha 2020-04-28 14:29:33 +09:00
DW
391500bdac
Allow wider window for totp verification (#5811)
As server time and client time may not necessarily match
2020-02-02 11:50:15 +09:00
syuilo
f6154dc0af
v12 (#5712)
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
2020-01-30 04:37:25 +09:00
MeiMei
46aaf8fa9a AP Actorの鍵とkeyIdのフォーマットの変更 (#5733)
* Node PKCS#8

* keyIdを#main-key形式に
2020-01-20 04:51:44 +09:00
syuilo
f7a328d66e Update dependencies 🚀 2019-11-24 17:09:32 +09:00
syuilo
29469bb7c6 Better error 2019-07-22 10:18:27 +09:00
syuilo
4f043b1841 Update signup.ts 2019-07-22 10:16:25 +09:00
syuilo
85008303f5 Prevent username reusing 2019-07-22 10:15:00 +09:00
syuilo
de9bd2651b Remove unused import 2019-07-19 03:37:34 +09:00
MeiMei
d8c835fa51 Fix signin (#5181)
* Revert "Fix signin history (#5180)"

This reverts commit a97c14a7b7.

* fix signin

* failはfail専用に

* fix password less 200
2019-07-18 05:26:58 +09:00
Satsuki Yanagi
a97c14a7b7 Fix signin history (#5180)
* Fix #5179

* Fix wrong value in signin history
2019-07-18 04:22:44 +09:00
Satsuki Yanagi
f1a7ab639b Resolve #5117 (#5171)
* Resolve #5117

* 出来立てのユーザーがストリームコネクションを持ってるはずがない
2019-07-18 00:00:03 +09:00
MeiMei
a091cbb93a Prevent duplicate user registration (#5129) 2019-07-10 03:47:07 +09:00
syuilo
8b05816860 Refactor: Remove needless return 2019-07-07 15:29:08 +09:00
Satsuki Yanagi
047a46d966 Support password-less login with WebAuthn (#5112)
* Support password-less login with WebAuthn

* Fix initial value of usePasswordLessLogin
2019-07-07 01:38:36 +09:00
Satsuki Yanagi
114523e69e Fix WebAuthn login (#5103) 2019-07-05 07:48:12 +09:00
Mary
fd94b817ab Implement Webauthn 🎉 (#5088)
* Implement Webauthn 🎉

* Share hexifyAB

* Move hr inside template and add AttestationChallenges janitor daemon

* Apply suggestions from code review

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

* Add newline at the end of file

* Fix stray newline in promise chain

* Ignore var in try{}catch(){} block

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

* Add missing comma

* Add missing semicolon

* Support more attestation formats

* add support for more key types and linter pass

* Refactor

* Refactor

* credentialId --> id

* Fix

* Improve readability

* Add indexes

* fixes for credentialId->id

* Avoid changing store state

* Fix syntax error and code style

* Remove unused import

* Refactor of getkey API

* Create 1561706992953-webauthn.ts

* Update ja-JP.yml

* Add type annotations

* Fix code style

* Specify depedency version

* Fix code style

* Fix janitor daemon and login requesting 2FA regardless of status
2019-07-03 20:18:07 +09:00
syuilo
2615368b1e
Resolve #365 2019-06-15 00:07:41 +09:00
syuilo
5aa5896b22
Cache meta 2019-04-24 08:11:19 +09:00
syuilo
0463c6bb0f
Refactor API (#4770)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update description.ts

* wip
2019-04-23 22:35:26 +09:00
syuilo
0ede390fef
Refactor 2019-04-17 14:32:59 +09:00
syuilo
ae16b45c11
Fix bug 2019-04-13 16:54:21 +09:00
syuilo
5fcf5bc635
Fix bug 2019-04-13 15:18:12 +09:00
syuilo
a51fbd7316
Suppress errors 2019-04-13 04:00:02 +09:00
syuilo
987168b863
strictNullChecks (#4666)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2019-04-13 01:43:22 +09:00
syuilo
3c29027ca3
Clean up 2019-04-12 01:54:28 +09:00
syuilo
2ff3069d23
トランザクションを使うようにしたり 2019-04-12 01:52:25 +09:00
syuilo
626cfb61ac
テーブル分割 2019-04-10 15:04:27 +09:00
syuilo
33a9783ae5
ドメインは常にPunycodeで保存するように 2019-04-09 23:59:32 +09:00
syuilo
142d59be85
Fix bug 2019-04-08 03:35:02 +09:00
syuilo
f0a29721c9
Use PostgreSQL instead of MongoDB (#4572)
* wip

* Update note.ts

* Update timeline.ts

* Update core.ts

* wip

* Update generate-visibility-query.ts

* wip

* wip

* wip

* wip

* wip

* Update global-timeline.ts

* wip

* wip

* wip

* Update vote.ts

* wip

* wip

* Update create.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update files.ts

* wip

* wip

* Update CONTRIBUTING.md

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update read-notification.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update cancel.ts

* wip

* wip

* wip

* Update show.ts

* wip

* wip

* Update gen-id.ts

* Update create.ts

* Update id.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Docker: Update files about Docker (#4599)

* Docker: Use cache if files used by `yarn install` was not updated

This patch reduces the number of times to installing node_modules.
For example, `yarn install` step will be skipped when only ".config/default.yml" is updated.

* Docker: Migrate MongoDB to Postgresql

Misskey uses Postgresql as a database instead of Mongodb since version 11.

* Docker: Uncomment about data persistence

This patch will save a lot of databases.

* wip

* wip

* wip

* Update activitypub.ts

* wip

* wip

* wip

* Update logs.ts

* wip

* Update drive-file.ts

* Update register.ts

* wip

* wip

* Update mentions.ts

* wip

* wip

* wip

* Update recommendation.ts

* wip

* Update index.ts

* wip

* Update recommendation.ts

* Doc: Update docker.ja.md and docker.en.md (#1) (#4608)

Update how to set up misskey.

* wip

* ✌️

* wip

* Update note.ts

* Update postgre.ts

* wip

* wip

* wip

* wip

* Update add-file.ts

* wip

* wip

* wip

* Clean up

* Update logs.ts

* wip

* 🍕

* wip

* Ad notes

* wip

* Update api-visibility.ts

* Update note.ts

* Update add-file.ts

* tests

* tests

* Update postgre.ts

* Update utils.ts

* wip

* wip

* Refactor

* wip

* Refactor

* wip

* wip

* Update show-users.ts

* Update update-instance.ts

* wip

* Update feed.ts

* Update outbox.ts

* Update outbox.ts

* Update user.ts

* wip

* Update list.ts

* Update update-hashtag.ts

* wip

* Update update-hashtag.ts

* Refactor

* Update update.ts

* wip

* wip

* ✌️

* clean up

* docs

* Update push.ts

* wip

* Update api.ts

* wip

* ✌️

* Update make-pagination-query.ts

* ✌️

* Delete hashtags.ts

* Update instances.ts

* Update instances.ts

* Update create.ts

* Update search.ts

* Update reversi-game.ts

* Update signup.ts

* Update user.ts

* id

* Update example.yml

* 🎨

* objectid

* fix

* reversi

* reversi

* Fix bug of chart engine

* Add test of chart engine

* Improve test

* Better testing

* Improve chart engine

* Refactor

* Add test of chart engine

* Refactor

* Add chart test

* Fix bug

* コミットし忘れ

* Refactoring

* ✌️

* Add tests

* Add test

* Extarct note tests

* Refactor

* 存在しないユーザーにメンションできなくなっていた問題を修正

* Fix bug

* Update update-meta.ts

* Fix bug

* Update mention.vue

* Fix bug

* Update meta.ts

* Update CONTRIBUTING.md

* Fix bug

* Fix bug

* Fix bug

* Clean up

* Clean up

* Update notification.ts

* Clean up

* Add mute tests

* Add test

* Refactor

* Add test

* Fix test

* Refactor

* Refactor

* Add tests

* Update utils.ts

* Update utils.ts

* Fix test

* Update package.json

* Update update.ts

* Update manifest.ts

* Fix bug

* Fix bug

* Add test

* 🎨

* Update endpoint permissions

* Updaye permisison

* Update person.ts

#4299

* データベースと同期しないように

* Fix bug

* Fix bug

* Update reversi-game.ts

* Use a feature of Node v11.7.0 to extract a public key (#4644)

* wip

* wip

* ✌️

* Refactoring

#1540

* test

* test

* test

* test

* test

* test

* test

* Fix bug

* Fix test

* 🍣

* wip

* #4471

* Add test for #4335

* Refactor

* Fix test

* Add tests

* 🕓

* Fix bug

* Add test

* Add test

* rename

* Fix bug
2019-04-07 21:50:36 +09:00
syuilo
aba85b977d
Refactoring: Move chart dir into services dir 2019-02-08 04:31:33 +09:00
syuilo
8129d4dc23
Refactoring 2019-02-05 14:14:23 +09:00
Acid Chicken (硫酸鶏)
ce576dea8f
Create type definition for 'recaptcha-promise' (#4068) 2019-02-03 22:21:55 +09:00
syuilo
8bf9e87117
Fix types 2019-01-22 21:42:05 +09:00
syuilo
545ced7826
Make autoAcceptFollowed default 2018-12-29 02:46:57 +09:00
syuilo
a6f8327aa2
reCAPTCHAの設定をDBに保存するように 2018-11-07 00:08:21 +09:00
syuilo
8f714b5b12
ドライブ容量の設定をDBに保存するようにしたりリファクタリングしたり 2018-11-06 07:14:43 +09:00
syuilo
06bb2a1c7c
Clean up 2018-11-06 06:25:35 +09:00
syuilo
ac50bb9225
Resolve #3137 2018-11-06 06:24:31 +09:00
syuilo
7c7f32d9a6
Refactoring 2018-10-23 05:36:35 +09:00