Trending: de-duplicate results

pull/3781/head
Samantaz Fox 2023-05-03 00:02:38 +02:00
rodzic 384a8e200c
commit 90914343ec
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F42821059186176E
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -35,5 +35,6 @@ def fetch_trending(trending_type, region, locale)
end
end
return extracted, plid
# Deduplicate items before returning results
return extracted.select(SearchVideo).uniq!(&.id), plid
end