-
If my understanding is correct: when a feed item is updated, that is to say a previously posted item receives new content, an updated hash is created in the database --- reflecting a difference in the feed item. In the context of an extension, this updated hash item will appear again when using entry_before_insert as the item is, in effect new. Would it be possible to provide to the extension an indication that this is an old updated item, rather than an entirely new one? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Currently, we emit the Update: on the Before FreshRSS 1.24.0, there is an undocumented trick: if (entry->id() == null) {
//updated article
} else {
//new article
} |
Beta Was this translation helpful? Give feedback.
-
Is here anything left todo? |
Beta Was this translation helpful? Give feedback.
-
The undocumented trick is working great for me - cheers |
Beta Was this translation helpful? Give feedback.
Currently, we emit the
entry_before_insert
event both for new articles (INSERT
) and modified articles (UPDATE
). We should differentiate the two cases.Update: on the
edge
rolling release or from FreshRSS 1.24.0, one can test$entry->isUpdated()
Before FreshRSS 1.24.0, there is an undocumented trick: