Remove language filtering from Universe feed because language detection can be inaccurate

Changelog-Removed: Removed language filtering from Universe feed because language detection can be inaccurate

Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
2025-01-19 13:21:31 -05:00
committed by Daniel D’Aquino
parent a97532b90d
commit 26df547605
3 changed files with 1 additions and 18 deletions
+1 -12
View File
@@ -62,18 +62,7 @@ struct SearchHomeView: View {
return false
}
if damus_state.settings.show_only_preferred_languages == false {
return true
}
// If we can't determine the note's language with 50%+ confidence, lean on the side of caution and show it anyway.
let note_lang = damus_state.events.get_cache_data(ev.id).translations_model.note_language
guard let note_lang else {
return true
}
let currentLanguage = localeToLanguage(Locale.current.identifier)
return currentLanguage == note_lang
return true
},
content: {
AnyView(VStack {