Skip to content

Commit

Permalink
fix: set restrict_answer default value true (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai authored Dec 13, 2023
1 parent ae6d98a commit 95cdace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/pages/Admin/Write/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Index: FC = () => {
type: 'boolean',
title: t('restrict_answer.title'),
description: t('restrict_answer.text'),
default: true,
},
recommend_tags: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion ui/src/stores/writeSetting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface IProps {

const Index = create<IProps>((set) => ({
write: {
restrict_answer: false,
restrict_answer: true,
recommend_tags: [],
required_tag: '',
reserved_tags: [],
Expand Down

0 comments on commit 95cdace

Please sign in to comment.