fix: resolve No post yet by adapting postMatchesRequestedTags to tag groups and filtering 'and' from provider queries

This commit is contained in:
2026-09-03 21:15:01 +03:00
parent a8b778146d
commit fb31a303ff
3 changed files with 30 additions and 15 deletions
+6 -1
View File
@@ -257,12 +257,17 @@ class ProviderManager {
required String? providerId,
required TopPeriodFilter topPeriod,
}) async {
final cleanTags = tags
.map((t) => t.trim())
.where((t) => t.isNotEmpty && t.toLowerCase() != 'and')
.toList(growable: false);
final seen = <String>{};
final providerResults = <List<Post>>[];
for (final provider in providers) {
try {
final providerPosts = await provider.searchPosts(
tags: tags,
tags: cleanTags,
page: page,
limit: limit,
rating: rating,