Handling missing original page.

This commit is contained in:
Samuel Clay 2018-08-09 09:53:25 -04:00
parent f04e1a5279
commit 03efc14a07
2 changed files with 2 additions and 14 deletions

View file

@ -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)

View file

@ -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) {