Commit Graph

283 Commits

Author SHA1 Message Date
tamaina 20649f5ae1 Merge branch 'develop' into swn 2021-10-19 15:48:10 +09:00
MeiMei 482081c41b
Refactor request (#7814)
* status code

* Test ap-request.ts

4397fc5e70/test/ap-request.ts

* tune
2021-10-16 17:16:24 +09:00
tamaina abdd627006 Merge branch 'develop' into swn 2021-10-07 14:33:10 +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
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
tamaina de472fdc79 nanka iroiro 2021-09-21 01:55:36 +09:00
tamaina 1e7a4eebfe Merge branch 'stream-types' into swn 2021-09-17 22:50:41 +09:00
tamaina ab237868ff Merge branch 'develop' into swn 2021-09-17 22:42:40 +09:00
tamaina 677a6aae2a note 2021-09-12 22:47:03 +09:00
tamaina a97fb08af0 add Packed type 2021-09-12 22:20:21 +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
tamaina 1662119933 Merge branch 'develop' into swn 2021-09-12 00:02:59 +09:00
tamaina 935d6473ed
chore: APIドキュメントの修正 (#7771)
* packedNotificationSchemaを更新

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

* fix

* add header, choice, invitation
2021-09-09 20:23:31 +09:00
tamaina 714f9f2032 define items in full Schema 2021-09-07 03:47:50 +09:00
tamaina 02dbdc54c3 fix lint 2021-09-06 13:08:51 +09:00
tamaina abbeb9a071 add simple-schema 2021-09-06 12:59:51 +09:00
tamaina c86ac1c6ec yatta 2021-09-06 03:26:19 +09:00
tamaina ee03cd6160 test 2021-09-06 02:33:16 +09:00
tamaina 9a089e584e read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加 2021-09-06 01:23:50 +09:00
tamaina 885c0fae9a 3581bf9a06 (r692265037) 2021-09-05 00:27:58 +09:00
MeiMei e21ff916b0
ファイルサイズのハードリミット (#7760)
* maxFileSize

* CHANGELOG
2021-09-04 20:33:14 +09:00
MeiMei e1a8b158e0 Tune download (#2)
* s2-2

* allowedPrivateNetworks

* style

* Proxyの間にあると誤解しそうなのでconfigの記述順を変更

* Fix error handler
2021-09-03 21:13:06 +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
MeiMei def32107af
perf: Improve network request performance (#7636)
* perf: Improve fetch

* CHANGELOG

* lifo
2021-08-16 17:44:43 +09:00
syuilo 0b34503c8a Update check-hit-antenna.ts 2021-07-16 19:43:15 +09:00
syuilo dc69490e3a Refactoring 2021-07-15 20:45:32 +09:00
MeiMei 5d66bb8794
ランダムにテストがコケるのを修正 (#7553)
* Test shutdown

* Revert "Test shutdown"

This reverts commit 85182e7dd1.

* Skip beforeShutdown in test

* Wait shutdown in test

* Revert "Skip beforeShutdown in test"

This reverts commit 79c33ab536.

* Revert "Revert "Skip beforeShutdown in test""

This reverts commit 3423133a13.
2021-06-05 14:54:07 +09:00
MeiMei 798aedfc0f
Supports Emoji 13.1 (#7539)
* Supports Emoji 13.1

* Fix regex
2021-05-30 20:52:39 +09:00
syuilo 24e7eeca0f fix local emoji detection
https://github.com/misskey-dev/misskey/pull/7526#discussion_r641886612
2021-05-30 10:05:12 +09:00
rinsuki 466c083233
カスタム絵文字をproxyに通すように (#7526) 2021-05-27 22:40:48 +09:00
MeiMei 961b3177d5
Fix Agent type, httpでもDNSキャッシュ (#7520) 2021-05-19 16:11:47 +09:00
syuilo f37c25d00e Update api-permissions.ts 2021-04-25 12:33:55 +09:00
marihachi 1ec3338d2e
update mfm.js (#7435)
* use mfm.js 0.14.0

* use mfm.extract

* use mfm.extract

* use mfm.extract
2021-04-11 00:18:29 +09:00
marihachi 3a6331693a
refactor mfm extract (#7434)
* refactor extractCustomEmojisFromMfm()

* refactor extract-hashtags

* refactor extract-mentions

* refactor extract-hashtags

* refactor extract-url-from-mfm

* refactor extract-mentions
2021-04-10 17:50:18 +09:00
MeiMei 7d2126e2b2
Fix punycode deprecation warning (#7426) 2021-04-04 13:00:39 +09:00
syuilo 1f4ae2f63a
Use mfm-js for MFM parsing (#7415)
* wip

* Update mfm.ts

* wip

* update mfmjs

* refactor

* nanka

* Update mfm.ts

* Update to-html.ts

* Update to-html.ts

* wip

* fix test

* fix test
2021-04-02 10:36:11 +09:00
syuilo b378066ebf tweak avatar generation 2021-04-02 10:00:05 +09:00
syuilo ce340aba7a
Refactor (#7394)
* wip

* wip

* wip

* wip

* wip

* Update define.ts

* Update update.ts

* Update user.ts

* wip

* wip

* Update request.ts

* URL

* wip

* wip

* wip

* wip

* Update invite.ts

* Update create.ts
2021-03-24 11:05:37 +09:00
syuilo c74fe3c6e2 refactor: Use path alias 2021-03-23 17:43:07 +09:00
syuilo 7e4a800352 noteのread処理 2021-03-23 15:06:56 +09:00
syuilo 5c3a56b283 fix bug
48ea805999 (commitcomment-48584326)
2021-03-23 14:54:09 +09:00
syuilo 0e3e90f94f refactor 2021-03-22 15:16:45 +09:00
syuilo 7c3086e9d9 perf(server): Cache user keypair 2021-03-22 15:14:54 +09:00
syuilo 202e943d55 tweak cache lifetime 2021-03-22 12:46:46 +09:00
syuilo 8f41dfec2e perf(server): Reduce database query 2021-03-22 12:41:33 +09:00
syuilo 1f0abef084 refactor: extract functions 2021-03-22 12:36:57 +09:00
mei23 9e6cdd6106 のホスト 2021-03-22 00:56:08 +09:00
MeiMei d1efe1d208
populateEmojisのリファクタと絵文字情報のキャッシュ (#7378)
* revert

* Refactor populateEmojis, Cache emojis

* ん

* fix typo

* コメント
2021-03-22 00:44:38 +09:00