Skip to content

Handling feed updates for manipulated entries #1706

@kevinpapst

Description

@kevinpapst

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:

bildschirmfoto 2017-12-03 um 14 19 52

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions