~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/feeds.py

merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    title_template = 'pybb/feeds/posts_title.html'
57
57
    description_template = 'pybb/feeds/posts_description.html'
58
58
 
59
 
    all_objects = Post.objects.filter(hidden=False)
 
59
    all_objects = Post.objects.exclude(topic__in=Post.hidden_topics.all()).filter(hidden=False)
60
60
 
61
61
    def items_for_object(self, obj):
62
 
        return Post.objects.filter(hidden=False, topic__forum=obj).order_by('-created')[:15]
 
62
        return Post.objects.exclude(topic__in=Post.hidden_topics.all()).filter(hidden=False, topic__forum=obj).order_by('-created')[:15]
63
63
 
64
64
# Validated through http://validator.w3.org/feed/
65
65