pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
963 stars 304 forks source link

new feed appends below to current feed after update period #300

Open kbunnyjoel opened 6 years ago

kbunnyjoel commented 6 years ago

The new feed appends to the current feed after setting update period seconds. It keep on appending to the current feed creating a problem to my website. Please help me

ovsw commented 6 years ago

Confirmed, having the exact same issue. I've set update_period: 0 as a work-around. Pretty please, fix? 😸

ovsw commented 6 years ago

Actually, this is not a bug! Found the solution. The bug doesn't happen if you use the provided html template.

If using a custom template, don't forget to add the html attribute: dt-create="{{=it.dt_create}}" in the HTML container of each item (div).

If you fail to add that, the plugin has no way of knowing which posts are new, and it keeps pulling the same posts over and over again!

Hope this helps you @kbunnyjoel ! 👋