diff options
author | Markus Amalthea Magnuson <markus@polyscopic.works> | 2023-06-13 00:05:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 17:05:31 -0500 |
commit | 571285c2b425381689bfe7b71d28bafcca34e666 (patch) | |
tree | bcb21fd9235681a452e4be119ced226af81d00ee /src/lib/api/feed-manip.ts | |
parent | 9232daba7a4e29d82bafd3e088f1c11bd115840f (diff) | |
download | voidsky-571285c2b425381689bfe7b71d28bafcca34e666.tar.zst |
Fix image-only posts not being visible in custom feeds. (#871)
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r-- | src/lib/api/feed-manip.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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])) { |