summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/WebhookTestService.ts
diff options
context:
space:
mode:
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,