Merge pull request #1480 from michael5r/newsfeed-removestarttags-bug

[FIX] Bug in newsfeed module using removeStartTags on a description
This commit is contained in:
Michael Teeuw
2018-12-19 16:17:52 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ Module.register("newsfeed",{
if (this.isShowingDescription) {
for (f=0; f<this.config.startTags.length;f++) {
if (this.newsItems[this.activeItem].description.slice(0,this.config.startTags[f].length) === this.config.startTags[f]) {
this.newsItems[this.activeItem].title = this.newsItems[this.activeItem].description.slice(this.config.startTags[f].length,this.newsItems[this.activeItem].description.length);
this.newsItems[this.activeItem].description = this.newsItems[this.activeItem].description.slice(this.config.startTags[f].length,this.newsItems[this.activeItem].description.length);
}
}
}