-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Handling feed updates for manipulated entries #1706
Description
Hi guys,
sorry for the disturbing title, I couldn't come up with a better one ;-)
Here is my problem:
After submitting the Dilbert extension, I recognized that there seems to be a strange behaviour when updating the feed.
When add new entries, the extensions rewrites the author and title:
https://github.com/kevinpapst/freshrss-dilbert/blob/master/xExtension-Dilbert/extension.php#L63
After the Cron updated the feed (this one is updated on a daily base) all entries from the feed were marked as unread and title and content changed back to the original feed version:
The feed contains 7 entries, so the newest one was added correctly and the oldest one was kept as is, likely because it wasn't included in the feed anymore. The 6 other entries were switched back to their original state (title, author and read status). I could imagine that the update process somehow flips the entries content without calling the "entry_before_insert" hook => but why?
I cannot reproduce this behaviour with the "Actualize" button, maybe because there is no new feed entry.
Any idea what is going on here?
Which fields are used for the duplicate entry detection?
Can you point me in a code direction, so I can have a look whats going on?
