aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-02-15 10:31:02 +0100
committerGravatar GitHub <noreply@github.com> 2024-02-15 10:31:02 +0100
commit2989470e881a48fd1176ca0587bdd2d4678e4424 (patch)
treee87ca2fb367920329e46d3565d5ca235798d1d3d /app/Controllers/feedController.php
parent06570b30f0af1b4e4b4f1723bbb2ad0a4b83db6c (diff)
applyFilterActions after extensions (#6091)
fix https://github.com/FreshRSS/FreshRSS/issues/6090
Diffstat (limited to 'app/Controllers/feedController.php')
-rw-r--r--app/Controllers/feedController.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index c194baf95..d393a142e 100644
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -602,10 +602,6 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
} else {
$id = uTimeString();
$entry->_id($id);
- $entry->applyFilterActions($titlesAsRead);
- if ($readWhenSameTitleInFeed > 0) {
- $titlesAsRead[$entry->title()] = true;
- }
$entry = Minz_ExtensionManager::callHook('entry_before_insert', $entry);
if (!($entry instanceof FreshRSS_Entry)) {
@@ -613,6 +609,11 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
continue;
}
+ $entry->applyFilterActions($titlesAsRead);
+ if ($readWhenSameTitleInFeed > 0) {
+ $titlesAsRead[$entry->title()] = true;
+ }
+
if ($pubSubHubbubEnabled && !$simplePiePush) { //We use push, but have discovered an article by pull!
$text = 'An article was discovered by pull although we use PubSubHubbub!: Feed ' .
SimplePie_Misc::url_remove_credentials($url) .