server: use foundkey-js definition of ffVisibilities

This commit is contained in:
Johann150 2023-05-20 00:23:18 +02:00
parent ed9f2f4900
commit ded48c96d8
Signed by: Johann150
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import RE2 from 're2';
import * as mfm from 'mfm-js';
import { notificationTypes } from 'foundkey-js';
import { ffVisibility, notificationTypes } from 'foundkey-js';
import { publishMainStream, publishUserEvent } from '@/services/stream.js';
import { acceptAllFollowRequests } from '@/services/following/requests/accept-all.js';
import { publishToFollowers } from '@/services/i/update.js';
@ -67,7 +67,7 @@ export const paramDef = {
injectFeaturedNote: { type: 'boolean' },
receiveAnnouncementEmail: { type: 'boolean' },
alwaysMarkNsfw: { type: 'boolean' },
ffVisibility: { type: 'string', enum: ['public', 'followers', 'private'] },
ffVisibility: { type: 'string', enum: ffVisibility },
pinnedPageId: { type: 'array', items: {
type: 'string', format: 'misskey:id',
} },