Skip to content

Updated feed items, their hashes and extensions #5602

Answered by Alkarex
kour1er asked this question in Q&A
Discussion options

You must be logged in to vote

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:

if (entry->id() == null) {
	//updated article
} else {
	//new article
}

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Alkarex
Comment options

@pe1uca
Comment options

@Alkarex
Comment options

Answer selected by Alkarex
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #2688 on August 20, 2023 21:18.