Implemented feed aggregation filtering based on categories.

This commit is contained in:
2015-10-12 15:53:50 +02:00
parent ed24eb7c94
commit 8044f7d52b
3 changed files with 29 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
note
description: "CMS module bringing support for feed aggregation."
date: "$Date: 2015-02-13 13:08:13 +0100 (ven., 13 févr. 2015) $"
revision: "$Revision: 96616 $"
date: "$Date$"
revision: "$Revision$"
class
FEED_AGGREGATOR_MODULE
@@ -280,6 +280,19 @@ feature -- Hook
vis.set_footer (s)
if attached l_feed_api.aggregation_feed (l_agg) as l_feed then
if l_agg.has_category_filter and attached l_feed.items as lst then
from
lst.start
until
lst.after
loop
if not l_agg.is_included (lst.item_for_iteration) then
lst.remove
else
lst.forth
end
end
end
l_feed.accept (vis)
end
l_cache.put (Result)