~homeworkprod/byceps

0a5af42de7aa90e5eb1db5800d22efc4f2872cf3 — Jochen Kupperschmidt 1 year, 7 months ago 02af3bd
Add missing channel ID argument to render public news item body
1 files changed, 1 insertions(+), 1 deletions(-)

M byceps/blueprints/news/views.py
M byceps/blueprints/news/views.py => byceps/blueprints/news/views.py +1 -1
@@ 101,7 101,7 @@ def _may_view_drafts(user):

def _replace_body_with_rendered_body(item):
    try:
        rendered_body = news_service.render_body(item.body)
        rendered_body = news_service.render_body(item.body, item.channel.id)
    except Exception as e:
        rendered_body = None  # Not the best error indicator.