Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Oct 31, 2024
1 parent 93b32f1 commit 94b888f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const meta = {
},
},
} as const;
const searchableByDefaultValue = process.env.NODE_ENV === 'test' ? null : 'public';
export const paramDef = {
type: 'object',
properties: {
Expand All @@ -143,7 +142,10 @@ export const paramDef = {
} },
cw: { type: 'string', nullable: true, minLength: 1, maxLength: 100 },
reactionAcceptance: { type: 'string', nullable: true, enum: [null, 'likeOnly', 'likeOnlyForRemote', 'nonSensitiveOnly', 'nonSensitiveOnlyForLocalLikeOnlyForRemote'], default: null },
searchableBy: { type: 'string', nullable: true, enum: searchableTypes, default: searchableByDefaultValue },
searchableBy: {
type: 'string', nullable: true,
enum: process.env.NODE_ENV === 'test' ? [searchableTypes, null] : searchableTypes,
default: process.env.NODE_ENV === 'test' ? null : 'public' },
disableRightClick: { type: 'boolean', default: false },
noExtractMentions: { type: 'boolean', default: false },
noExtractHashtags: { type: 'boolean', default: false },
Expand Down

0 comments on commit 94b888f

Please sign in to comment.