fix: do not skip summary for short content

This commit is contained in:
Stephen Zhou
2025-10-11 09:55:40 +08:00
parent 9196122f51
commit 157da4d1bd
@@ -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
})