Moving NEWSBLUR.Collections.DiscoverStories to its proper place.

This commit is contained in:
Samuel Clay 2024-11-28 14:45:41 -05:00
parent 78c4807c33
commit beb33f2577
4 changed files with 156 additions and 157 deletions

View file

@ -4544,7 +4544,7 @@ body {
.NB-story-content-container {
overflow: hidden;
position: relative;
min-height: 192px;
min-height: 258px;
background-color: white;
}

View file

@ -0,0 +1,16 @@
NEWSBLUR.Collections.DiscoverStories = NEWSBLUR.Collections.Stories.extend({
url: function () {
var url = '/rss_feeds/discover/stories/' + this.similar_to_story_hash + '/';
if (this.feed_ids && this.feed_ids.length > 0) {
url += '?feed_id=' + this.feed_ids.join("&feed_id=");
}
return url;
},
parse: function (response) {
return response.discover_stories;
}
});

View file

@ -719,20 +719,3 @@ NEWSBLUR.Collections.Stories = Backbone.Collection.extend({
}
});
NEWSBLUR.Collections.DiscoverStories = NEWSBLUR.Collections.Stories.extend({
url: function () {
var url = '/rss_feeds/discover/stories/' + this.similar_to_story_hash + '/';
if (this.feed_ids && this.feed_ids.length > 0) {
url += '?feed_id=' + this.feed_ids.join("&feed_id=");
}
return url;
},
parse: function (response) {
return response.discover_stories;
}
});

View file

@ -24,7 +24,6 @@ embed_assets: datauri
# for testing.
compress_assets: on
javascripts:
common:
- js/vendor/jquery-3.6.0.min.js
@ -70,6 +69,7 @@ javascripts:
- js/newsblur/reader/reader.js
- js/newsblur/reader/reader_popover.js
- js/newsblur/common/*.js
- js/newsblur/models/stories.js
- js/newsblur/models/*.js
- js/newsblur/views/*.js
- js/newsblur/reader/*.js