summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/WebhookTestService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-04-01 10:12:59 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-04-01 10:12:59 -0400
commit383633873dea318cb9783fc2228ddf6e7892350e (patch)
tree1fc22ef37bd701f5a68e1a9acc5b881792877894 /packages/backend/src/core/WebhookTestService.ts
parentMerge branch 'misskey-develop' into merge/2025-03-24 (diff)
downloadsharkey-383633873dea318cb9783fc2228ddf6e7892350e.tar.gz
sharkey-383633873dea318cb9783fc2228ddf6e7892350e.tar.bz2
sharkey-383633873dea318cb9783fc2228ddf6e7892350e.zip
fix backend type errors
Diffstat (limited to 'packages/backend/src/core/WebhookTestService.ts')
-rw-r--r--packages/backend/src/core/WebhookTestService.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/backend/src/core/WebhookTestService.ts b/packages/backend/src/core/WebhookTestService.ts
index 3e89595155..469b396fb0 100644
--- a/packages/backend/src/core/WebhookTestService.ts
+++ b/packages/backend/src/core/WebhookTestService.ts
@@ -243,7 +243,7 @@ export class WebhookTestService {
break;
}
case 'edited': {
- send('edited', { note: toPackedNote(dummyNote1) });
+ send('edited', { note: await this.toPackedNote(dummyNote1) });
break;
}
case 'follow': {
@@ -426,6 +426,7 @@ export class WebhookTestService {
@bindThis
private async toPackedUserLite(user: MiUser, override?: Packed<'UserLite'>): Promise<Packed<'UserLite'>> {
return {
+ ...user,
id: user.id,
name: user.name,
username: user.username,
@@ -445,6 +446,9 @@ export class WebhookTestService {
emojis: await this.customEmojiService.populateEmojis(user.emojis, user.host),
onlineStatus: 'active',
badgeRoles: [],
+ isAdmin: false,
+ isModerator: false,
+ isSystem: false,
...override,
};
}
@@ -462,6 +466,9 @@ export class WebhookTestService {
lastFetchedAt: user.lastFetchedAt?.toISOString() ?? null,
bannerUrl: user.bannerUrl,
bannerBlurhash: user.bannerBlurhash,
+ backgroundUrl: user.backgroundUrl,
+ backgroundBlurhash: user.backgroundBlurhash,
+ listenbrainz: null,
isLocked: user.isLocked,
isSilenced: false,
isSuspended: user.isSuspended,