StevenJoynt / HumHub-RSS-Reader

A HumHub module which imports an RSS News Feed as Posts in the Stream of a Space.
GNU General Public License v3.0
8 stars 3 forks source link

Generates duplicate Posts in Stream #1

Closed StevenJoynt closed 3 years ago

StevenJoynt commented 3 years ago

Need to use pubDate from RSS to set the date of the Post. Then we can use that to build a database query to find out if the Post is already in the Stream. Add a config option to update the Post or just keep the original version of the News Item. Default to update the Post.

StevenJoynt commented 3 years ago

First part of solution complete: Module now sets created_at time stamp on Post to match pubDate from RSS feed.

StevenJoynt commented 3 years ago

Now searches for old post and updates it if it exists, rather than inserting a duplicate.