From 8f74c7b94980192c588ad7c67669d74d97bc43a1 Mon Sep 17 00:00:00 2001 From: Markus Amalthea Magnuson Date: Mon, 12 Jun 2023 01:40:59 +0200 Subject: Fix image-only posts not being visible in custom feeds. --- src/lib/api/feed-manip.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/api/feed-manip.ts') diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index f2500c4f7..3ff156dd6 100644 --- a/src/lib/api/feed-manip.ts +++ b/src/lib/api/feed-manip.ts @@ -213,6 +213,12 @@ export class FeedTuner { hasProp(item.post.record, 'text') && typeof item.post.record.text === 'string' ) { + // Treat empty text the same as no text. + if (item.post.record.text.length === 0) { + hasPreferredLang = true + break + } + const res = lande(item.post.record.text) if (langsCode3.includes(res[0][0])) { -- cgit 1.4.1