Skip to content

Commit

Permalink
add unique name
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi committed Apr 3, 2020
1 parent 3058b67 commit f6d706f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superdesk/publish/formatters/ninjs_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f6d706f

Please sign in to comment.