mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fixing hinting.
This commit is contained in:
parent
afb93fd26d
commit
191df1edf4
1 changed files with 3 additions and 3 deletions
|
@ -436,10 +436,10 @@ def load_social_page(request, user_id, username=None, **kwargs):
|
||||||
for story in stories:
|
for story in stories:
|
||||||
if user.pk in story['share_user_ids']:
|
if user.pk in story['share_user_ids']:
|
||||||
story['shared_by_user'] = True
|
story['shared_by_user'] = True
|
||||||
shared_story = MSharedStory.objects.get(user_id=user.pk,
|
shared_story = MSharedStory.objects.hint([('story_hash', 1)])\
|
||||||
|
.get(user_id=user.pk,
|
||||||
story_feed_id=story['story_feed_id'],
|
story_feed_id=story['story_feed_id'],
|
||||||
story_hash=story['story_hash'])\
|
story_hash=story['story_hash'])
|
||||||
.hint([('story_hash', 1)])
|
|
||||||
story['user_comments'] = shared_story.comments
|
story['user_comments'] = shared_story.comments
|
||||||
|
|
||||||
stories = MSharedStory.attach_users_to_stories(stories, profiles)
|
stories = MSharedStory.attach_users_to_stories(stories, profiles)
|
||||||
|
|
Loading…
Add table
Reference in a new issue