Skip to content

Commit eb06f72

Browse files
committed
applyFilterActions after extensions
fix #6090
1 parent d36e110 commit eb06f72

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/Controllers/feedController.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,17 +602,18 @@ public static function actualizeFeeds(?int $feed_id = null, ?string $feed_url =
602602
} else {
603603
$id = uTimeString();
604604
$entry->_id($id);
605-
$entry->applyFilterActions($titlesAsRead);
606-
if ($readWhenSameTitleInFeed > 0) {
607-
$titlesAsRead[$entry->title()] = true;
608-
}
609605

610606
$entry = Minz_ExtensionManager::callHook('entry_before_insert', $entry);
611607
if (!($entry instanceof FreshRSS_Entry)) {
612608
// An extension has returned a null value, there is nothing to insert.
613609
continue;
614610
}
615611

612+
$entry->applyFilterActions($titlesAsRead);
613+
if ($readWhenSameTitleInFeed > 0) {
614+
$titlesAsRead[$entry->title()] = true;
615+
}
616+
616617
if ($pubSubHubbubEnabled && !$simplePiePush) { //We use push, but have discovered an article by pull!
617618
$text = 'An article was discovered by pull although we use PubSubHubbub!: Feed ' .
618619
SimplePie_Misc::url_remove_credentials($url) .

0 commit comments

Comments
 (0)