Commit Graph

26 Commits

Author SHA1 Message Date
ebc2566130 fix: add missing import
fix #8756
2022-05-29 14:33:42 +02:00
e27c6abaea refactor: temporary files (#8713)
* simplify temporary files for thumbnails

Because only a single file will be written to the directory, creating a
separate directory seems unnecessary. If only a temporary file is created,
the code from `createTemp` can be reused here as well.

* refactor: deduplicate code for temporary files/directories

To follow the DRY principle, the same code should not be duplicated
across different files. Instead an already existing function is used.

Because temporary directories are also create in multiple locations,
a function for this is also newly added to reduce duplication.

* fix: clean up identicon temp files

The temporary files for identicons are not reused and can be deleted
after they are fully read. This condition is met when the stream is closed
and so the file can be cleaned up using the events API of the stream.

* fix: ensure cleanup is called when download fails

* fix: ensure cleanup is called in error conditions

This covers import/export queue jobs and is mostly just wrapping all
code in a try...finally statement where the finally runs the cleanup.

* fix: use correct type instead of `any`
2022-05-25 16:50:22 +09:00
1c67c26bd8 refactor: migrate to typeorm 3.0 (#8443)
* wip

* wip

* wip

* Update following.ts

* wip

* wip

* wip

* Update resolve-user.ts

* maxQueryExecutionTime

* wip

* wip
2022-03-26 15:34:00 +09:00
e68278f93e feat: 時限ミュート
#7677
2022-03-04 20:23:53 +09:00
d071d18dd7 refactor: Use ESM (#8358)
* wip

* wip

* fix

* clean up

* Update tsconfig.json

* Update activitypub.ts

* wip
2022-02-27 11:07:39 +09:00
b6db709e02 refacator: fix typw 2022-02-19 14:53:33 +09:00
bd7662e5e4 refactor 2022-02-04 11:10:53 +09:00
9ee0db95ac refactor: use date-fns 2022-02-04 01:56:33 +09:00
7168811283 ESMは使えない 2022-02-03 22:19:54 +09:00
556abfabb9 refactor 2022-02-03 21:48:23 +09:00
8c9a13b2b7 update deps 2022-02-03 21:09:15 +09:00
7aecf15f94 refactor, enhance: ドライブ引数のオブジェクト化, 追加時のcomment指定 (#8180)
* refactor: ドライブの引数をオブジェクト化する Resolve #8177

* Resolve #8181

* fix

* archivePath
2022-01-23 22:52:35 +09:00
eec7e6500e enhance: convert svg to png of custom emojis 2022-01-21 18:47:02 +09:00
7a999f2289 feat(server): add more metadata for emoji export 2022-01-21 02:56:08 +09:00
59520c31fd refactor(server): use named export 2022-01-20 02:43:13 +09:00
7e5e763584 feat: emojis import 2022-01-13 00:47:40 +09:00
6be1db00d1 refactor(server): use insert instead of save 2022-01-03 02:20:30 +09:00
3e00ce0d88 fix(server): エクスポートした絵文字の拡張子がfalseになることがあるのを修正 2021-12-29 17:04:13 +09:00
ef485044ea Update export-custom-emojis.ts 2021-12-12 06:24:13 +09:00
c599a304c8 refactor 2021-12-12 06:21:48 +09:00
bd903cdbb5 feat: カスタム絵文字エクスポート 2021-12-10 18:24:26 +09:00
20134a5367 feat: improve follow export 2021-12-10 01:22:35 +09:00
c69b72e199 fix lint 2021-12-09 23:58:30 +09:00
6496835515 viaMobileフラグ廃止
Close #7965
2021-11-12 15:11:20 +09:00
b404ce463f refactor 2021-11-12 15:08:36 +09:00
0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00