Compare commits

...

2 commits

Author SHA1 Message Date
Mark Beamer Jr
c2230cdefb
Send parent id and comment text to internal-apis for notifications 2020-07-24 15:43:34 -04:00
Mark
1c3a25f82d
Merge pull request #47 from lbryio/fix_notifications
Fix notifications
2020-07-21 11:10:28 -04:00

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