From f6d706f5521488dd52912601f3249654becf6c68 Mon Sep 17 00:00:00 2001 From: mehdi Date: Fri, 3 Apr 2020 14:37:47 +0200 Subject: [PATCH] add unique name --- superdesk/publish/formatters/ninjs_formatter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superdesk/publish/formatters/ninjs_formatter.py b/superdesk/publish/formatters/ninjs_formatter.py index aba4e06daa..c2db3592df 100644 --- a/superdesk/publish/formatters/ninjs_formatter.py +++ b/superdesk/publish/formatters/ninjs_formatter.py @@ -270,6 +270,9 @@ def _transform_to_ninjs(self, article, subscriber, recursive=True): ninjs['authors'] = self._format_authors(article) if 'extra' in ninjs: + #get the unique name + if article.get('unique_name'): + ninjs['extra'].update({'uniqueName': article.get('unique_name').replace('#', '')}) # get the article's content type content_type = _get_content_type(article) if content_type: