增加回复可见功能
This commit is contained in:
@@ -359,7 +359,7 @@ func (s *PostService) Create(userID, boardID uint, title, content, tags, postTyp
|
||||
UserID: userID,
|
||||
Title: title,
|
||||
Content: content,
|
||||
ContentPlain: StripHTMLForSearch(content),
|
||||
ContentPlain: StripHTMLForSearch(RedactGatedPostHTML(content)),
|
||||
Tags: tags,
|
||||
PostType: postType,
|
||||
QuestionResolved: false,
|
||||
@@ -420,7 +420,7 @@ func (s *PostService) Update(userID, postID uint, isAdmin bool, title, content,
|
||||
"board_id": nextBoardID,
|
||||
"title": title,
|
||||
"content": content,
|
||||
"content_plain": StripHTMLForSearch(content),
|
||||
"content_plain": StripHTMLForSearch(RedactGatedPostHTML(content)),
|
||||
"tags": tags,
|
||||
"post_type": nextType,
|
||||
"question_resolved": nextResolved,
|
||||
|
||||
Reference in New Issue
Block a user