Commit Graph

270 Commits

Author SHA1 Message Date
tamaina 5cf07fc50f
enhance: Provide Twemoji SVGs from Misskey server (#2) (#7897)
* Selfhosting Twemoji

* ちっ

* うざっ

* あ

* add test

Co-authored-by: mei23 <m@m544.net>
2021-10-24 21:10:45 +09:00
tamaina ea8e6d88ab
enhance: shareページでより多くの情報を渡せるように (#7606)
* shareでより多くの情報を渡せるように

* from chat ui post-form, remove instant and add share

* fix await eating array, make document

* add changelog

* 3581bf9a06 (r692265037)

* reply, renoteにも型定義

* 🎨

* 閉じなければ100ms後タイムラインに
2021-10-20 03:10:36 +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
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 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 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
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 85182e7dd196cdd9ecb46cfb50adaabd04c5ba60.

* Skip beforeShutdown in test

* Wait shutdown in test

* Revert "Skip beforeShutdown in test"

This reverts commit 79c33ab53615e8fa4820d2abfc2494cba55c441c.

* Revert "Revert "Skip beforeShutdown in test""

This reverts commit 3423133a137c79b64f3ff6ef9dbe433a441a47b0.
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
syuilo 5e61c60f85 perf(server): Improver performance 2021-03-19 18:22:34 +09:00
syuilo 9cc8b3656a lint 2021-03-18 13:33:14 +09:00
syuilo 4f249159d3
Improve chart performance (#7360)
* wip

* wip

* wip

* wip

* wip

* Update chart.ts

* wip

* Improve server performance

* wip

* wip
2021-03-18 11:17:05 +09:00
syuilo e53a40658d format 2021-03-18 10:55:51 +09:00
syuilo 0389e2c891 fix bug 2021-03-18 10:54:39 +09:00
syuilo 8aa089178a Improve server performance 2021-03-18 10:52:54 +09:00
syuilo 91172654e4 refactor: resolve #7139 2021-02-13 15:33:38 +09:00
syuilo ebadd7fd3f wip: email notification 2021-02-13 12:28:26 +09:00
syuilo 0a64d121d9 Resolve #7149 2021-02-07 10:43:34 +09:00
tamaina 40bfa3ef04
Resurrect Service Worker (#7108)
* Resolve #7106

* fix lint

* fix lint

* save lang in idb

* fix lint

* fix

* cache locale file

* fix lint

* ✌️

* wip

* fix [wip]

* fix [wip]

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-02-06 18:55:53 +09:00
MeiMei 0e45f10d99
Improve captcha (#7138) 2021-02-06 11:46:47 +09:00
Ehsan Javadynia ff67fb337e
using set instead of array for search (#7126)
* Resolve #6905

* Resolve #6905

* Resolve #6905
2021-01-30 11:09:46 +09:00
syuilo d91fa1a37a fix bug 2020-12-28 23:41:09 +09:00