Enhance FeedService filtering logic

- Added a watch function in useFeed to log updates to filtered posts,
aiding in debugging.
- Updated content filters to include text notes in announcements and
marketplace presets, ensuring broader content visibility.
- Enhanced FeedService to log detailed information during custom
filtering, improving traceability of filtering logic.
- Modified Home.vue to always use custom filters for better consistency
in feed display.

These changes improve the reactivity, flexibility, and clarity of the
feed system, enhancing the overall user experience.
This commit is contained in:
padreug 2025-09-16 22:03:37 +02:00
parent 7025ea81c6
commit f05398fa9e
4 changed files with 55 additions and 19 deletions

View file

@ -59,7 +59,7 @@ const feedType = computed(() => {
for (const [presetName, presetFilters] of Object.entries(FILTER_PRESETS)) {
if (presetFilters.length === selectedFilters.value.length &&
presetFilters.every(pf => selectedFilters.value.some(sf => sf.id === pf.id))) {
return presetName === 'all' ? 'all' : 'custom'
return 'custom' // Always use custom for proper filtering
}
}