6
.github/workflows/pl-hooks.yaml
vendored
6
.github/workflows/pl-hooks.yaml
vendored
@ -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
|
||||
|
||||
@ -102,8 +102,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user