mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Fixing errors with missing story content from ifttt.
This commit is contained in:
parent
1135446ff0
commit
a9d90d08ae
1 changed files with 5 additions and 4 deletions
|
@ -639,10 +639,11 @@ def api_share_new_story(request):
|
|||
story_content = original_story['content']
|
||||
if not story_title:
|
||||
story_title = original_story['title']
|
||||
|
||||
story_content = lxml.html.fromstring(story_content)
|
||||
story_content.make_links_absolute(story_url)
|
||||
story_content = lxml.html.tostring(story_content)
|
||||
|
||||
if story_content:
|
||||
story_content = lxml.html.fromstring(story_content)
|
||||
story_content.make_links_absolute(story_url)
|
||||
story_content = lxml.html.tostring(story_content)
|
||||
|
||||
shared_story = MSharedStory.objects.filter(user_id=user.pk,
|
||||
story_feed_id=original_feed and original_feed.pk or 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue