Skip to content

Commit f5b2b8c

Browse files
committed
内容发布优化
1 parent e02b4bd commit f5b2b8c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

models/document.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ func (m *Document) ReleaseContent(bookId int, baseUrl string) {
202202
continue
203203
}
204204

205-
if !ds.UpdatedAt.After(item.ModifyTime) {
206-
continue
207-
}
208-
209205
if strings.TrimSpace(utils.GetTextFromHtml(strings.Replace(ds.Markdown, "[TOC]", "", -1))) == "" {
210206
// 如果markdown内容为空,则查询下一级目录内容来填充
211207
ds.Markdown, ds.Content = item.BookStackAuto(bookId, ds.DocumentId)

0 commit comments

Comments
 (0)