mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding friends replies profiles to attachment.
This commit is contained in:
parent
4d17bca57c
commit
54db8505cb
1 changed files with 2 additions and 0 deletions
|
@ -1907,6 +1907,8 @@ class MSharedStory(mongo.Document):
|
|||
comments = shared_story.comments_with_author()
|
||||
story['reply_count'] += len(comments['replies'])
|
||||
story['friend_shares'].append(comments)
|
||||
profile_user_ids = profile_user_ids.union([reply['user_id']
|
||||
for reply in comments['replies']])
|
||||
if comments.get('source_user_id'):
|
||||
profile_user_ids.add(comments['source_user_id'])
|
||||
if comments.get('liking_users'):
|
||||
|
|
Loading…
Add table
Reference in a new issue