Send parent id and comment text to internal-apis for notifications

This commit is contained in:
Mark Beamer Jr 2020-07-24 15:43:34 -04:00
parent 1c3a25f82d
commit c2230cdefb
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -37,6 +37,10 @@ def create_notification_batch(action: str, comments: List[dict]) -> List[dict]:
} }
if comment.get('channel_id'): if comment.get('channel_id'):
event['channel_id'] = comment['channel_id'] event['channel_id'] = comment['channel_id']
if comment.get('parent_id'):
event['parent_id'] = comment['parent_id']
if comment.get('comment'):
event['comment'] = comment['comment']
events.append(event) events.append(event)
return events return events