mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing missing user_id in comment's replies and likes.
This commit is contained in:
parent
cd07d5252c
commit
ecae048376
1 changed files with 2 additions and 0 deletions
|
@ -1746,9 +1746,11 @@ class MSharedStory(mongo.Document):
|
|||
comment['source_user'] = profiles[comment['source_user_id']]
|
||||
|
||||
for r, reply in enumerate(comment['replies']):
|
||||
if reply['user_id'] not in profiles: continue
|
||||
comment['replies'][r]['user'] = profiles[reply['user_id']]
|
||||
comment['liking_user_ids'] = list(comment['liking_users'])
|
||||
for u, user_id in enumerate(comment['liking_users']):
|
||||
if user_id not in profiles: continue
|
||||
comment['liking_users'][u] = profiles[user_id]
|
||||
|
||||
return comment
|
||||
|
|
Loading…
Add table
Reference in a new issue