6
.github/workflows/pl-hooks.yaml
vendored
6
.github/workflows/pl-hooks.yaml
vendored
@ -36,6 +36,12 @@ jobs:
|
|||||||
working-directory: .
|
working-directory: .
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build pl-api
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
working-directory: ./packages/pl-api
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
working-directory: ./packages/pl-hooks
|
working-directory: ./packages/pl-hooks
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
|
|||||||
@ -102,8 +102,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
|
|||||||
type: notification.type === 'pleroma:report'
|
type: notification.type === 'pleroma:report'
|
||||||
? 'admin.report'
|
? 'admin.report'
|
||||||
: notification.type === 'reaction'
|
: notification.type === 'reaction'
|
||||||
? 'emoji_reaction'
|
? 'emoji_reaction'
|
||||||
: notification.type?.replace(/^pleroma:/, ''),
|
: notification.type?.replace(/^pleroma:/, ''),
|
||||||
})),
|
})),
|
||||||
v.variant('type', [
|
v.variant('type', [
|
||||||
accountNotificationSchema,
|
accountNotificationSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user