From f3e655e6cd578125c8a049a8c1befddd31645d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 4 Aug 2025 23:57:13 +0200 Subject: [PATCH] pl-api: format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .github/workflows/pl-hooks.yaml | 6 ++++++ packages/pl-api/lib/entities/notification.ts | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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,