diff --git a/.github/workflows/pl-hooks.yaml b/.github/workflows/pl-hooks.yaml index 8a86ae577..6e4565ee1 100644 --- a/.github/workflows/pl-hooks.yaml +++ b/.github/workflows/pl-hooks.yaml @@ -36,6 +36,12 @@ jobs: working-directory: . run: pnpm install + - name: Build pl-api + env: + NODE_ENV: production + working-directory: ./packages/pl-api + run: pnpm build + - name: Lint working-directory: ./packages/pl-hooks run: pnpm lint diff --git a/packages/pl-api/lib/entities/notification.ts b/packages/pl-api/lib/entities/notification.ts index 8f778069b..fbbf6631d 100644 --- a/packages/pl-api/lib/entities/notification.ts +++ b/packages/pl-api/lib/entities/notification.ts @@ -102,8 +102,8 @@ const notificationSchema: v.BaseSchema> type: notification.type === 'pleroma:report' ? 'admin.report' : notification.type === 'reaction' - ? 'emoji_reaction' - : notification.type?.replace(/^pleroma:/, ''), + ? 'emoji_reaction' + : notification.type?.replace(/^pleroma:/, ''), })), v.variant('type', [ accountNotificationSchema,