From 9232daba7a4e29d82bafd3e088f1c11bd115840f Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Sun, 11 Jun 2023 23:12:50 -0400 Subject: [PATCH 1/2] Move useWebMediaQueries() above return (#872) --- src/view/screens/Search.web.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/screens/Search.web.tsx b/src/view/screens/Search.web.tsx index 62f3fb90..85e8c212 100644 --- a/src/view/screens/Search.web.tsx +++ b/src/view/screens/Search.web.tsx @@ -44,12 +44,12 @@ export const SearchScreen = withAuthRequired( } }, [foafs, suggestedActors, searchUIModel, params.q]) + const {isDesktop} = useWebMediaQueries() + if (searchUIModel) { return } - const {isDesktop} = useWebMediaQueries() - if (!isDesktop) { return } From 571285c2b425381689bfe7b71d28bafcca34e666 Mon Sep 17 00:00:00 2001 From: Markus Amalthea Magnuson Date: Tue, 13 Jun 2023 00:05:31 +0200 Subject: [PATCH 2/2] Fix image-only posts not being visible in custom feeds. (#871) --- src/lib/api/feed-manip.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index f2500c4f..3ff156dd 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])) {