From ad5e0938a836ba47431bde082f308106a8acbc25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Ja=C5=A1ek?= Date: Fri, 17 May 2024 13:44:03 +0200 Subject: [PATCH] add author email to cp ninjs output (#243) SDCP-756 --- server/cp/output/formatter/cp_ninjs_formatter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/cp/output/formatter/cp_ninjs_formatter.py b/server/cp/output/formatter/cp_ninjs_formatter.py index 425dacb4..d4614e4c 100644 --- a/server/cp/output/formatter/cp_ninjs_formatter.py +++ b/server/cp/output/formatter/cp_ninjs_formatter.py @@ -33,6 +33,8 @@ class CPNINJSFormatter(NINJSFormatter): type = "cpninjs" name = "CP NINJS" + author_user_fields = ["email"] + def _transform_to_ninjs(self, article, subscriber, recursive=True): ninjs = super()._transform_to_ninjs(article, subscriber, recursive=recursive)