mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-19 12:58:29 +00:00
Showing comment boxes in all the right places on blurblogs.
This commit is contained in:
parent
99976d6f18
commit
6af93f97b2
2 changed files with 3 additions and 1 deletions
|
@ -1370,6 +1370,8 @@ class MSharedStory(mongo.Document):
|
|||
story['share_count_friends'] = len(friends_with_shares)
|
||||
story['friend_user_ids'] = list(set(story['commented_by_friends'] + story['shared_by_friends']))
|
||||
story['public_user_ids'] = list(set(story['commented_by_public'] + story['shared_by_public']))
|
||||
if not story['share_user_ids']:
|
||||
story['share_user_ids'] = story['friend_user_ids'] + story['public_user_ids']
|
||||
if story.get('source_user_id'):
|
||||
profile_user_ids.add(story['source_user_id'])
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
</div>
|
||||
|
||||
<div class="NB-story-comments-container">
|
||||
{% if story.comment_count %}
|
||||
{% if story.comment_count or not story.shared_by_user %}
|
||||
{% render_story_comments story %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue