You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A post containing an image but no text (e.g someone posting a meme) should show up on custom feeds (previously on "goodstuff") when a user has a configured preferred language.
Reproduction
Have a preferred language configured
Make a post containing only an image
Have this post be popular enough to show on goodstuff or on the custom feeds branch go to a custom feed you know should show this post
Observe the lack of the post showing
Actual behaviour
These posts are filtered out by the client and do not render.
Details
Platform: Web
Platform version: Observed most recently at commit e891039
Guess at cause
preferredLangOnly tuner contains the following if statement:
if(hasProp(item.post.record,'text')&&typeofitem.post.record.text==='string'){constres=lande(item.post.record.text)console.log(res)if(langsCode3.includes(res[0][0])){hasPreferredLang=truebreak}}else{// no text? roll with ithasPreferredLang=truebreak}
This is missing an additional check to ensure that item.post.record.text is not an empty string.
The text was updated successfully, but these errors were encountered:
strideynet
changed the title
Posts containing only an image still undergo language analysis in the preferredLangOnly tuner
Posts containing only an image do not show in goodstuff or on custom feeds
May 25, 2023
strideynet
changed the title
Posts containing only an image do not show in goodstuff or on custom feeds
Posts containing only an image do not show in custom feeds
May 26, 2023
Expected behaviour
A post containing an image but no text (e.g someone posting a meme) should show up on custom feeds (previously on "goodstuff") when a user has a configured preferred language.
Reproduction
goodstuff
or on the custom feeds branch go to a custom feed you know should show this postActual behaviour
These posts are filtered out by the client and do not render.
Details
Guess at cause
preferredLangOnly
tuner contains the following if statement:This is missing an additional check to ensure that
item.post.record.text
is not an empty string.The text was updated successfully, but these errors were encountered: