Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def ingest_comments(self):
if 'comments' in self.obj and 'data' in self.obj['comments']:
for c in self.obj['comments']['data']:
comment = Comment(c)
if not comment.user.id in self.users:
self.users[comment.user.id] = comment.user
self.comments.append(comment)
self.extract_links(comment.message)