Johann150
1516ddfc9b
refactor: remove CacheableUser & co
...
The CacheableUser, CacheableLocalUser and CacheableRemoteUser are
identical types to User, ILocalUser and IRemoteUser so it seems
nonsensical to have different types for them.
2023-05-18 13:25:57 +02:00
Johann150
6a17dcf4de
server: refactor to group deletion deliveries
...
The `quiet` argument has been removed from `deleteNote` (or `deleteNotes`
respectively) since it was not used anywhere and it does not seem a good
idea to not update statistics in some cases.
This should also fix an issue where cascade deletions mean that statistics
are not properly updated or streaming clients not properly informed of
deletions. This case was seemingly not considered before, even though
there was some handling for cascade deleted notes.
This is going to improve how cascade deletion impacts the delivery queue,
because cascade-deleted notes will now be grouped for delivery.
Changelog: Fixed
2023-03-12 12:37:20 +01:00
Johann150
e52cf25489
server: use named export for deleteNote
2023-03-11 09:54:46 +01:00
Johann150
6010884e62
cleanup: translate japanese, use SECOND constant
2023-01-02 21:07:56 +01:00
Johann150
b423d23cf6
server: fix custom lint typeorm-prefer-count
2023-01-02 21:07:02 +01:00
Norm
28f65bebfc
server: use named export for cancelFollowRequest
2022-12-22 16:52:52 -05:00
Johann150
3ef1a4b0f9
refactor: remove default export for Resolver
2022-12-11 18:23:07 +01:00
Johann150
ae59ce51b0
refactor: remove default export for DbResolver
2022-12-11 18:16:48 +01:00
Johann150
a421dd401c
activitypub: refactor to always apply recursion limit
...
Refactor to remove as many "new Resolver" as possible.
2022-12-04 21:11:44 +01:00
Johann150
b4080d788d
slight refactoring & translating japanese
2022-12-02 19:00:58 +01:00
Johann150
e49b8d0ef3
server: remove unnecessary apLogger aliases
2022-12-02 18:58:19 +01:00
Norm
d83c1c3851
backend: use named exports for services/note
2022-10-20 21:16:34 -04:00
Johann150
36a0e48e49
bacakend: prefer absolute over relative imports
...
There are still many places where import paths with `..` are used and
maybe should use absolute paths also.
2022-10-01 14:40:30 +02:00
Johann150
37e47a257e
fix lints "import/order" and "import/no-duplicate"
...
Also simplified some import paths by replacing relative with absolute paths.
2022-08-03 14:05:50 +02:00
Johann150
a6df127d3b
fix lint "quotes"
2022-08-02 23:25:36 +02:00
Johann150
ba0236700d
chore: remove unused imports
2022-07-12 14:41:10 +02:00
Johann150
edfded7fb7
fix(activitypub): add authorization checks ( #8534 )
...
* fix spelling
* fix(activitypub): add authorization checks
2022-05-19 20:40:16 +09:00
syuilo
41c2aed7dc
chore: fix lint
2022-04-03 15:33:22 +09:00
syuilo
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
syuilo
ac8c66f5ab
perf(server): refactor and performance improvements
2022-03-25 16:27:41 +09:00
syuilo
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
syuilo
c69b72e199
fix lint
2021-12-09 23:58:30 +09:00
nullobsi
f33ded3107
feat: Undo Accept ( #7980 )
...
* allow breaking of follow
* send undo
* delete by using reject follow
2021-12-03 11:14:44 +09:00
syuilo
0e4a111f81
refactoring
...
Resolve #7779
2021-11-12 02:02:25 +09:00