kjb085 / MMM-Reddit

Magic Mirror Module for displaying top level content from reddit
34 stars 7 forks source link

Does not show posts + Double Header #8

Closed memoriasIT closed 5 years ago

memoriasIT commented 5 years ago

It does not show any posts. imagen

Steps to achieve current state:

Code in config file (provided in README.md): { module: "MMM-Reddit", position: "center", config: { subreddit: ['television', 'science', 'nottheonion'], headerType: 'chained', displayType: 'headlines', count: 14, show: 7, width: 700, showScore: false, showSubreddit: true, colorText: false, showThumbnail: false, } },

memoriasIT commented 5 years ago

After fiddling with it for a while it is working. I don't know why, but won't touch it lol:

Current code in config.js: { module: "MMM-Reddit", position: "top_right", config: { subreddit: "hackernews", displayType: "headlines", imageQuality: "high", count: 10, show: 5, width: 500, showAll: true, } },

The double header doesn't dissapear tho, will update if I manage to fix it

memoriasIT commented 5 years ago

Fixed the double header with a temporal fix. The bug should be more carefully looked, but with a quick look I managed to edit "MMM-Reddit.js" to fix the double header:

Just make the function getHeader () return "" instead of this.getHeaderText();

Currently in line 283: ` /**