~linuxgoose/bocpress

354807b3135764b0816d0029805480bc2142b0ac — Jordan Robinson 2 months ago 42cec5d
fix public post list filtering
1 files changed, 7 insertions(+), 0 deletions(-)

M main/views/general.py
M main/views/general.py => main/views/general.py +7 -0
@@ 139,6 139,13 @@ def post_list(request):
                    published_at__lte=timezone.now().date(),
                ).defer("body")

            # filter by tags if given
            tags = request.GET.get("tags")
            if tags:
                tag_list = [t.strip() for t in tags.split(",") if t.strip()]
                for tag in tag_list:
                    posts = posts.with_tag(tag)

            license_url = request.build_absolute_uri(reverse('rsl_license'))

            # active tags as list