Fix image-only posts not being visible in custom feeds. (#871)

This commit is contained in:
Markus Amalthea Magnuson 2023-06-13 00:05:31 +02:00 committed by GitHub
parent 9232daba7a
commit 571285c2b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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])) {