~homeworkprod/byceps

5af49e5194262a3125a8117a774acdeb9d93db55 — Jochen Kupperschmidt 1 year, 2 months ago ad71427
Fix initiator ID on news publication

Raises `PicklingError` in the rq job.
1 files changed, 3 insertions(+), 1 deletions(-)

M byceps/blueprints/admin/news/views.py
M byceps/blueprints/admin/news/views.py => byceps/blueprints/admin/news/views.py +3 -1
@@ 444,7 444,9 @@ def item_publish(item_id):
    """Publish a news item."""
    item = _get_item_or_404(item_id)

    event = news_item_service.publish_item(item.id, initiator_id=g.current_user)
    event = news_item_service.publish_item(
        item.id, initiator_id=g.current_user.id
    )

    signals.item_published.send(None, event=event)