mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Turns out empty string is false in JS.
This commit is contained in:
parent
994399490e
commit
7674e888c1
1 changed files with 2 additions and 5 deletions
|
@ -195,12 +195,9 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
|
|||
if (!preference) return preference;
|
||||
|
||||
if (NEWSBLUR.assets.view_setting(NEWSBLUR.reader.active_feed, 'layout') == 'grid') {
|
||||
var pruned_description = this.model.content_preview('story_content', 500);
|
||||
return pruned_description;
|
||||
} else {
|
||||
var pruned_description = this.model.content_preview();
|
||||
return this.model.content_preview('story_content', 500) || " ";
|
||||
}
|
||||
|
||||
var pruned_description = this.model.content_preview();
|
||||
var pruned_title = this.model.content_preview('story_title');
|
||||
|
||||
if (pruned_title.substr(0, 30) == pruned_description.substr(0, 30)) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue