fix: do not skip summary for short content
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { SummarySchema } from "@follow/database/schemas/types"
|
||||
import { summaryService } from "@follow/database/services/summary"
|
||||
import type { SupportedActionLanguage } from "@follow/shared"
|
||||
import { parseHtml } from "@follow/utils/html"
|
||||
|
||||
import { api } from "../../context"
|
||||
import type { Hydratable, Resetable } from "../../lib/base"
|
||||
@@ -165,12 +164,6 @@ class SummarySyncService {
|
||||
if (state.generatingStatus[statusID] === SummaryGeneratingStatus.Pending)
|
||||
return this.pendingPromises[statusID] || null
|
||||
|
||||
const content = target === "content" ? entry.content : entry.readabilityContent
|
||||
const textLength = content ? parseHtml(content).toText().length : 0
|
||||
if (textLength < 100) {
|
||||
return null
|
||||
}
|
||||
|
||||
immerSet((state) => {
|
||||
state.generatingStatus[statusID] = SummaryGeneratingStatus.Pending
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user