diff options
| author | dakkar <dakkar@thenautilus.net> | 2025-06-13 10:06:35 +0100 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2025-06-13 10:20:32 +0100 |
| commit | 01872419c3feae1cadd10aa299eba3802ec0b5b7 (patch) | |
| tree | 3c5f72fd7890a41e576bfb9d3a186c38644a6b7f /packages/backend/src/core/NoteEditService.ts | |
| parent | avoid pushing to timelines of remote users (diff) | |
| download | sharkey-01872419c3feae1cadd10aa299eba3802ec0b5b7.tar.gz sharkey-01872419c3feae1cadd10aa299eba3802ec0b5b7.tar.bz2 sharkey-01872419c3feae1cadd10aa299eba3802ec0b5b7.zip | |
fix `UserEntityService` packMany hints
* there's no need to pre-load follow requests for many users, since
at most we'll pack them for only 1 user (the one requesting the
data)
* similarly, it makes sense to preload security keys for many users
if we're serving a moderator's request, but if not, we need at most 1
user's keys (the requesting user's), and we can let `.pack()` fetch
those
* we always need to preload relations when serving a detailed
request, not only when the set of users to pack does not include the
requesting user
Diffstat (limited to 'packages/backend/src/core/NoteEditService.ts')
0 files changed, 0 insertions, 0 deletions