mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling missing original page.
This commit is contained in:
parent
f04e1a5279
commit
03efc14a07
2 changed files with 2 additions and 14 deletions
|
@ -526,7 +526,8 @@ def original_story(request):
|
|||
|
||||
if not story:
|
||||
logging.user(request, "~FYFetching ~FGoriginal~FY story page: ~FRstory not found")
|
||||
return {'code': -1, 'message': 'Story not found.', 'original_page': None, 'failed': True}
|
||||
# return {'code': -1, 'message': 'Story not found.', 'original_page': None, 'failed': True}
|
||||
raise Http404
|
||||
|
||||
original_page = story.fetch_original_page(force=force, request=request, debug=debug)
|
||||
|
||||
|
|
|
@ -1900,19 +1900,6 @@ NEWSBLUR.AssetModel = Backbone.Router.extend({
|
|||
});
|
||||
},
|
||||
|
||||
fetch_original_story_page: function(story_hash, callback, error_callback) {
|
||||
var story = this.get_story(story_hash);
|
||||
this.make_request('/rss_feeds/original_story', {
|
||||
story_hash: story_hash
|
||||
}, function(data) {
|
||||
story.set('original_page', data.original_page);
|
||||
callback(data);
|
||||
}, error_callback, {
|
||||
request_type: 'GET',
|
||||
ajax_group: 'statistics'
|
||||
});
|
||||
},
|
||||
|
||||
recalculate_story_scores: function(feed_id, options) {
|
||||
options = options || {};
|
||||
this.stories.each(_.bind(function(story, i) {
|
||||
|
|
Loading…
Add table
Reference in a new issue