Repository navigation
Report new articles count per feed in actualize_script output - #8948
Conversation
When refreshing feeds from the command line (app/actualize_script.php), also report the number of newly fetched articles for each feed that received new entries, in addition to the existing per-user summary. Implemented entirely within the CLI script via two hooks: - FeedBeforeActualize records each feed name - EntryBeforeAdd counts new entries per feed (fires only for genuinely new entries, matching the controller's own new-article counter) No change to the feed controller or to any other behaviour. For #8291 Co-Authored-By: Claude Opus 4.8 <[email protected]>
The tab character is escaped in some logs, e.g. ``` [notice] --- \x091 new article(s) from feed: L’Express ```
| echo $user, ' '; //Buffered | ||
| $app->run(); | ||
|
|
||
| foreach ($nbNewArticlesByFeed as $feedId => $nbNew) { |
There was a problem hiding this comment.
Should the list be sorted? For instance alphabetically, and/or by descending number of articles?
There was a problem hiding this comment.
Done — the per-feed report is now sorted by descending article count, then alphabetically by feed name as a tie-breaker (covers the "and/or": most-active feeds first, with a stable alphabetical order within the same count).
| return $feed; | ||
| }); | ||
| Minz_ExtensionManager::addHook(Minz_HookType::EntryBeforeAdd, static function (FreshRSS_Entry $entry) use (&$nbNewArticlesByFeed) { | ||
| $nbNewArticlesByFeed[$entry->feedId()] = ($nbNewArticlesByFeed[$entry->feedId()] ?? 0) + 1; |
There was a problem hiding this comment.
Note that this covers both new articles, and updated articles
There was a problem hiding this comment.
Good catch, thanks. I traced the actualization loop: EntryBeforeAdd (in feedController.php, the new-GUID branch, _isUpdated(false)) fires only for genuinely new articles, while updated articles (existing GUID, changed hash) go through EntryBeforeUpdate. So the original single count was new-only.
I've now added a separate EntryBeforeUpdate hook and report the two distinctly, e.g. 10 new, 2 updated article(s) from feed: X (feeds with only new — or only updated — show just that part). Verified locally: after tampering one existing entry's hash to force re-processing, the run reports 1 updated article(s) for that feed while the unchanged feeds report nothing.
Addresses review feedback on #8948: - Sort the per-feed report by descending article count, then feed name. - Also count updated articles (via EntryBeforeUpdate) and report them alongside new ones, e.g. '10 new, 2 updated article(s) from feed: X'. EntryBeforeAdd fires only for new articles (new-GUID branch), so updated articles need the separate EntryBeforeUpdate hook. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
I have reduced the code a bit. Double-check welcome |
|
Thanks! The consolidation into Reproduced locally with 2 feeds, running the actualization twice in a row (so TTL skips both on the 2nd run): A small guard at the top of the loop restores the "only report feeds that fetched something" behavior: if ($row['new'] === 0 && $row['updated'] === 0) {
continue;
}Happy to push that if you'd like. |
|
Could catch and yes, please do |
FeedBeforeActualize initializes every actualized feed in $feedStatistics
and fires before the TTL/mute skips, so skipped or unchanged feeds would
otherwise print an empty count (' article(s) from feed: X'). Skip them.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Pushed. Added the guard at the top of the output loop. Verified locally: a second immediate run (feeds skipped by TTL) now prints nothing, while feeds with new/updated articles still report correctly. |
|
Thanks! Please add a line for you in https://github.com/FreshRSS/FreshRSS/blob/edge/CREDITS.md |
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | minor | `1.29.1-alpine` → `1.30.0-alpine` | --- ### Release Notes <details> <summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary> ### [`v1.30.0`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-09-09-FreshRSS-1300) [Compare Source](FreshRSS/FreshRSS@1.29.1...1.30.0) - Security - 💥 Disallow access to local networks such as `127.0.0.1` by default, for security reasons (breaking change) [#​8400](FreshRSS/FreshRSS#8400), [#​9195](FreshRSS/FreshRSS#9195) - Selected local networks can be allowed under *System configuration* or using the `INTERNAL_HOST_ALLOWLIST` environment variable - Passing `*` allows all networks like before (unsafe) - Improve SSRF mitigations by restricting `CURLOPT_PROXY` [#​8950](FreshRSS/FreshRSS#8950) - Fix auth CSRFs (login and register actions) [#​9171](FreshRSS/FreshRSS#9171) - Log invalid challenge and ignore JSON error during login [#​9278](FreshRSS/FreshRSS#9278) - Disallow fetching of non remote URI [#​9215](FreshRSS/FreshRSS#9215) - Only allow HTTP/HTTPS schemes for enclosure and thumbnail URLs [#​9272](FreshRSS/FreshRSS#9272) - Fix access control in `rss` and `opml` actions [#​8912](FreshRSS/FreshRSS#8912) - Refactor to use CSRF field directly instead of borrowing it from a form [#​9169](FreshRSS/FreshRSS#9169), [#​9205](FreshRSS/FreshRSS#9205) - Cleaner limit anonymous mode to default user [#​9235](FreshRSS/FreshRSS#9235) - Fix HTML ingestions in templates [#​9146](FreshRSS/FreshRSS#9146), [#​9170](FreshRSS/FreshRSS#9170) - Fix bad header filtering bypass [#​8964](FreshRSS/FreshRSS#8964) - Sanitize all fields during JSON import [#​9168](FreshRSS/FreshRSS#9168) - Gate `greader` (JSON) user query share format behind *Share by OPML* [#​9248](FreshRSS/FreshRSS#9248) - Public OPML should not contain cURL parameters [#​9070](FreshRSS/FreshRSS#9070) - Ignore security-relevant OPML attributes for dynamic OPML sources [#​9276](FreshRSS/FreshRSS#9276) - Strip feed URL credentials from anonymous user query output [#​9246](FreshRSS/FreshRSS#9246) - Set limits for regex during search [#​8913](FreshRSS/FreshRSS#8913) - Fix path disclosure in cache error message [#​9206](FreshRSS/FreshRSS#9206) - Limit the length and parentheses nesting depth of a search query [#​9277](FreshRSS/FreshRSS#9277) - Use timing-safe comparison for tokens [#​8945](FreshRSS/FreshRSS#8945) - Use `hash_equals()` for GReader API token comparison [#​9183](FreshRSS/FreshRSS#9183) - Mailer: allow disabling SMTPAutoTLS via config [#​9026](FreshRSS/FreshRSS#9026) - Warn during install if document root does not point to `./p/` [#​9010](FreshRSS/FreshRSS#9010) - Stop the unread-count poller after the session ends [#​9065](FreshRSS/FreshRSS#9065) - Add remote IP address to warning on form login [#​8942](FreshRSS/FreshRSS#8942) - Pin the GitHub actions using SHA [#​9200](FreshRSS/FreshRSS#9200) - Harden cache and SimplePie cache deserialization [#​9273](FreshRSS/FreshRSS#9273) - SimplePie - Security: Disallow `javascript:` URI scheme (protocol) [#​8263](FreshRSS/FreshRSS#8263) - Fix wrong player parent logic leading to invalid type [#​8893](FreshRSS/FreshRSS#8893), [simplepie#978](simplepie/simplepie#978) - Consistently enable `XML_OPTION_PARSE_HUGE` [#​8894](FreshRSS/FreshRSS#8894), [simplepie#977](simplepie/simplepie#977) - Fix null warning in IRI for PHP 8.5+ [#​8918](FreshRSS/FreshRSS#8918), [simplepie#979](simplepie/simplepie#979) - Fix sanitizer whitelist stripping order [#​9066](FreshRSS/FreshRSS#9066) - Show only one representation per `media:group` [#​9009](FreshRSS/FreshRSS#9009) - Bump upstream SimplePie [#​8947](FreshRSS/FreshRSS#8947) - Features - Filter global view feed list by state and search [#​9132](FreshRSS/FreshRSS#9132) - Use global view when searching from subscription page [#​9144](FreshRSS/FreshRSS#9144) - New option to hide badges showing number of unread articles (*Phantom Obligation*) [#​8844](FreshRSS/FreshRSS#8844) - Refresh only feeds in the current view [#​9060](FreshRSS/FreshRSS#9060) - Offer to add a prefix when resharing user labels [#​9236](FreshRSS/FreshRSS#9236) - Add log search to the logs page [#​9059](FreshRSS/FreshRSS#9059) - Add configurable `log_level` system setting [#​9185](FreshRSS/FreshRSS#9185) - New option to keep or not the custom sort order when navigating between categories and feeds [#​8969](FreshRSS/FreshRSS#8969) - New per-feed option to show or hide enclosures (attachments) [#​9015](FreshRSS/FreshRSS#9015) - Detect JSON feeds from URLs containing `json` [#​9058](FreshRSS/FreshRSS#9058) - Also when subscribing via the API [#​9167](FreshRSS/FreshRSS#9167) - Order categories during OPML import/export according to position [#​9203](FreshRSS/FreshRSS#9203) - OPML: include each feed’s refresh interval (TTL) in export/import [#​8982](FreshRSS/FreshRSS#8982) - Log failed CSS content retrieval (Web scraping) [#​9077](FreshRSS/FreshRSS#9077) - Allow providing a category when adding a feed by bookmarklet [#​9047](FreshRSS/FreshRSS#9047) - Add LinkAce sharing service [#​9024](FreshRSS/FreshRSS#9024) - Add Nextcloud Bookmarks sharing service [#​9032](FreshRSS/FreshRSS#9032) - Bug fixing - Fix lost elements while parsing search query [#​8884](FreshRSS/FreshRSS#8884) - Fix “mark as read older than…” widening the active search [#​9173](FreshRSS/FreshRSS#9173) - Fix saving user queries [#​9190](FreshRSS/FreshRSS#9190) - Fix SQL errors breaking some regex searches with MySQL / MariaDB [#​9036](FreshRSS/FreshRSS#9036) - Fix marking filtered label articles as read in SQLite and PostgreSQL [#​9264](FreshRSS/FreshRSS#9264) - Fix tagging an already-tagged entry on PostgreSQL raising a SQL error instead of being a no-op [#​9136](FreshRSS/FreshRSS#9136) - PostgreSQL: make committing new entries resilient to duplicate keys [#​9231](FreshRSS/FreshRSS#9231) - Preserve negative timezone offsets in date intervals [#​9071](FreshRSS/FreshRSS#9071) - Fix feed dropdown bugs due to hash desync [#​8949](FreshRSS/FreshRSS#8949) - Fix slider not reinitializing after form submit [#​8973](FreshRSS/FreshRSS#8973) - Minz: Skip loading duplicated JS/CSS assets [#​9000](FreshRSS/FreshRSS#9000) - Respect `simplepie_syslog_enabled` for the *uses cache* logs [#​8986](FreshRSS/FreshRSS#8986) - Fix statistics repartition averages [#​8996](FreshRSS/FreshRSS#8996) - Fix article hover date visibility [#​8997](FreshRSS/FreshRSS#8997) - Keep search and state filters when marking articles as read [#​9007](FreshRSS/FreshRSS#9007) - Fix `--db-prefix` silently drops following CLI flags [#​9042](FreshRSS/FreshRSS#9042) - Remove stale dynamic favicon links [#​9127](FreshRSS/FreshRSS#9127) - Fix desync between favicon and title unread counters [#​9262](FreshRSS/FreshRSS#9262) - Fix outdated username length hint on registration and install forms [#​9013](FreshRSS/FreshRSS#9013) - Redirect away from wrong URL paths [#​9075](FreshRSS/FreshRSS#9075) - Fix auto-share shortcut on first use [#​9072](FreshRSS/FreshRSS#9072) - Exclude hidden feeds from global view counts [#​9152](FreshRSS/FreshRSS#9152) - Fix only the last `<media:credit>` being written to the RSS output [#​9174](FreshRSS/FreshRSS#9174) - CLI - New `cli/reconfigure-user.php` to read/write per-user config attributes [#​8873](FreshRSS/FreshRSS#8873) - Report new articles count per feed in `app/actualize_script.php` output [#​8948](FreshRSS/FreshRSS#8948) - Output a diagnostic when the `cli/health.php` check fails [#​8980](FreshRSS/FreshRSS#8980) - API - Add a warning message to the API password section and a log warning when a client uses GET instead of recommended POST [#​8845](FreshRSS/FreshRSS#8845) - Fever API: log the client IP address on authentication failure [#​8981](FreshRSS/FreshRSS#8981) - WebSub: ignore HTTP/HTTPS scheme difference in Self URL comparison [#​9005](FreshRSS/FreshRSS#9005) - Deployment - Docker alternative image updated to Alpine 3.24 with PHP 8.5.7 and Apache 2.4.67 [#​8916](FreshRSS/FreshRSS#8916) - Start supporting PHP 8.6+ - Docker dev `:newest` with PHP 8.6 [#​9155](FreshRSS/FreshRSS#9155) - Docker: attach provenance and SBOM attestations to the published image [#​9150](FreshRSS/FreshRSS#9150) - Apache use only `CONN_REMOTE_ADDR` in logs when `mod_remoteip` is available, for compatibility with LiteSpeed Web Server [#​8890](FreshRSS/FreshRSS#8890) - Fix `.dockerignore` being ignored during build in CI [#​9001](FreshRSS/FreshRSS#9001) - New `ENABLE_ACCESS_LOG` environment variable to disable access logs [#​9191](FreshRSS/FreshRSS#9191) - Check GMP during 32-bit installation [#​9046](FreshRSS/FreshRSS#9046) - Improve actualize mutex to allow multiple instances [#​9045](FreshRSS/FreshRSS#9045) - OIDC: redirect to a default URL on expired auth state instead of 400 [#​9143](FreshRSS/FreshRSS#9143) - UI - Always jump article to top when header is offscreen, also when *Stick the article to the top when opened* is disabled [#​8870](FreshRSS/FreshRSS#8870) - Move article header/footer options (feed title, authors and date, icons position, tags) from *Reading* to *Display* configuration [#​9139](FreshRSS/FreshRSS#9139) - Move disable button before remove button in user management [#​8944](FreshRSS/FreshRSS#8944) - Keep scroll position of slider after form submit [#​8974](FreshRSS/FreshRSS#8974) - Group export feeds by category [#​9079](FreshRSS/FreshRSS#9079), [#​9154](FreshRSS/FreshRSS#9154) - Sort feed names with locale-aware collation [#​8985](FreshRSS/FreshRSS#8985) - Sort labels with locale-aware collation [#​9023](FreshRSS/FreshRSS#9023) - Format unread counter in title on page load [#​9263](FreshRSS/FreshRSS#9263) - Display slider after submit for all buttons in feed update UI [#​8999](FreshRSS/FreshRSS#8999) - Improve aside keyboard navigation [#​9202](FreshRSS/FreshRSS#9202) - Allows usage of <kbd>Ctrl/Shift</kbd> keys with the open website shortcut [#​9186](FreshRSS/FreshRSS#9186) - Fix padding for `.nav_menu` in Alternative-Dark, Flat, and Nord themes [#​8901](FreshRSS/FreshRSS#8901) - Fix typo in alert error border `color` variable [#​9266](FreshRSS/FreshRSS#9266) - Use JavaScript `Event()` constructor instead of deprecated `initEvent()` [#​9035](FreshRSS/FreshRSS#9035) - Use `:user-invalid` instead of `:invalid` for CSS form field styling [#​9025](FreshRSS/FreshRSS#9025) - Remove unused simple layout [#​8998](FreshRSS/FreshRSS#8998) - Various UI and style improvements: [#​8823](FreshRSS/FreshRSS#8823), [#​8824](FreshRSS/FreshRSS#8824), [#​9140](FreshRSS/FreshRSS#9140), [#​9145](FreshRSS/FreshRSS#9145) - Extensions - Minor `Minz_Extension` typing [#​8952](FreshRSS/FreshRSS#8952) - Improve extension list fetch diagnostics [#​9055](FreshRSS/FreshRSS#9055) - Fix a PHP warning in *Serve* action [#​9267](FreshRSS/FreshRSS#9267) - Fix extension settings cancel action [#​9053](FreshRSS/FreshRSS#9053) - Fix sharing menu conflicts with extensions [#​9074](FreshRSS/FreshRSS#9074) - Add read status hook for entries [#​8995](FreshRSS/FreshRSS#8995) - Dispatch a new JavaScript event `freshrss:entryStateChange` when an entry finishes being marked read/unread [#​9031](FreshRSS/FreshRSS#9031) - Redirect after saving user CSS/JS so changes apply immediately [#​9006](FreshRSS/FreshRSS#9006) - I18n - New plural system [#​8988](FreshRSS/FreshRSS#8988) - Pluralize the *new articles* count message - Prefer OS-bundled Japanese fonts when UI language is Japanese [#​9002](FreshRSS/FreshRSS#9002) - Add Azerbaijani [#​9269](FreshRSS/FreshRSS#9269) - Add Lithuanian [#​9201](FreshRSS/FreshRSS#9201), [#​9213](FreshRSS/FreshRSS#9213) - Improve Brazilian Portuguese [#​9240](FreshRSS/FreshRSS#9240), [#​9242](FreshRSS/FreshRSS#9242) - Improve German [#​9149](FreshRSS/FreshRSS#9149) - Improve Greek [#​8977](FreshRSS/FreshRSS#8977), [#​9038](FreshRSS/FreshRSS#9038) - Improve Hungarian [#​8879](FreshRSS/FreshRSS#8879) - Improve Indonesian (Bahasa Indonesia) [#​9220](FreshRSS/FreshRSS#9220) - Improve Italian [#​8880](FreshRSS/FreshRSS#8880) - Improve Japanese [#​9064](FreshRSS/FreshRSS#9064) - Improve Persian [#​8923](FreshRSS/FreshRSS#8923) - Improve Spanish [#​8878](FreshRSS/FreshRSS#8878), [#​9245](FreshRSS/FreshRSS#9245) - Improve Traditional Chinese [#​9037](FreshRSS/FreshRSS#9037), [#​9069](FreshRSS/FreshRSS#9069), [#​9223](FreshRSS/FreshRSS#9223) - Improve Turkish [#​8966](FreshRSS/FreshRSS#8966), [#​8971](FreshRSS/FreshRSS#8971), [#​8970](FreshRSS/FreshRSS#8970), [#​8989](FreshRSS/FreshRSS#8989) - Improve Ukrainian [#​8871](FreshRSS/FreshRSS#8871) - Refactor user query translation keys [#​9049](FreshRSS/FreshRSS#9049) - Misc. - Update to PHPMailer 7.1.1 [#​8907](FreshRSS/FreshRSS#8907) - Improve PHP code [#​8906](FreshRSS/FreshRSS#8906), [#​9156](FreshRSS/FreshRSS#9156) - Fix PHPStan 2.2.2 in CLI [#​8911](FreshRSS/FreshRSS#8911) - Migrate `markdownlint-cli` to `markdownlint-cli2` [#​8987](FreshRSS/FreshRSS#8987) - Update dev dependencies [#​8904](FreshRSS/FreshRSS#8904), [#​8905](FreshRSS/FreshRSS#8905), [#​8926](FreshRSS/FreshRSS#8926), [#​8939](FreshRSS/FreshRSS#8939), [#​8940](FreshRSS/FreshRSS#8940), [#​8963](FreshRSS/FreshRSS#8963), [#​8961](FreshRSS/FreshRSS#8961), [#​8959](FreshRSS/FreshRSS#8959), [#​8958](FreshRSS/FreshRSS#8958), [#​8962](FreshRSS/FreshRSS#8962), [#​8960](FreshRSS/FreshRSS#8960), [#​9148](FreshRSS/FreshRSS#9148), [#​9162](FreshRSS/FreshRSS#9162), [#​9165](FreshRSS/FreshRSS#9165), [#​9158](FreshRSS/FreshRSS#9158), [#​9159](FreshRSS/FreshRSS#9159), [#​9176](FreshRSS/FreshRSS#9176), [#​9178](FreshRSS/FreshRSS#9178), [#​9179](FreshRSS/FreshRSS#9179), [#​9219](FreshRSS/FreshRSS#9219), [#​9253](FreshRSS/FreshRSS#9253), [#​9254](FreshRSS/FreshRSS#9254), [#​9255](FreshRSS/FreshRSS#9255), [#​9257](FreshRSS/FreshRSS#9257) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42Ni4xIiwidXBkYXRlZEluVmVyIjoiNDQuNjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==--> Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/157
…056) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | minor | `1.29.1-alpine` → `1.30.0-alpine` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/6) for more information. --- ### Release Notes <details> <summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary> ### [`v1.30.0`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-09-09-FreshRSS-1300) [Compare Source](FreshRSS/FreshRSS@1.29.1...1.30.0) - Security - 💥 SSRF mitigation: disallow access to local networks such as `127.0.0.1` by default, for security reasons (breaking change) [#​8400](FreshRSS/FreshRSS#8400), [#​8950](FreshRSS/FreshRSS#8950), [#​9195](FreshRSS/FreshRSS#9195) - Selected local networks can be allowed under *System configuration* or using the `INTERNAL_HOST_ALLOWLIST` environment variable - Passing `*` allows all networks like before (unsafe) - Fix auth CSRFs (login and register actions) [#​9171](FreshRSS/FreshRSS#9171) - Log invalid challenge and ignore JSON error during login [#​9278](FreshRSS/FreshRSS#9278) - Disallow fetching of non remote URI [#​9215](FreshRSS/FreshRSS#9215) - Only allow HTTP/HTTPS schemes for enclosure and thumbnail URLs [#​9272](FreshRSS/FreshRSS#9272) - Fix access control in `rss` and `opml` actions [#​8912](FreshRSS/FreshRSS#8912) - Refactor to use CSRF field directly instead of borrowing it from a form [#​9169](FreshRSS/FreshRSS#9169), [#​9205](FreshRSS/FreshRSS#9205) - Cleaner limit anonymous mode to default user [#​9235](FreshRSS/FreshRSS#9235) - Fix HTML ingestions in templates [#​9146](FreshRSS/FreshRSS#9146), [#​9170](FreshRSS/FreshRSS#9170) - Fix bad header filtering bypass [#​8964](FreshRSS/FreshRSS#8964) - Sanitize all fields during JSON import [#​9168](FreshRSS/FreshRSS#9168) - Gate `greader` (JSON) user query share format behind *Share by OPML* [#​9248](FreshRSS/FreshRSS#9248) - Public OPML should not contain cURL parameters [#​9070](FreshRSS/FreshRSS#9070) - Ignore security-relevant OPML attributes for dynamic OPML sources [#​9276](FreshRSS/FreshRSS#9276) - Strip feed URL credentials from anonymous user query output [#​9246](FreshRSS/FreshRSS#9246) - Set limits for regex during search [#​8913](FreshRSS/FreshRSS#8913) - Fix path disclosure in cache error message [#​9206](FreshRSS/FreshRSS#9206) - Limit the length and parentheses nesting depth of a search query [#​9277](FreshRSS/FreshRSS#9277) - Use timing-safe comparison for tokens [#​8945](FreshRSS/FreshRSS#8945) - Use `hash_equals()` for GReader API token comparison [#​9183](FreshRSS/FreshRSS#9183) - Mailer: allow disabling SMTPAutoTLS via config [#​9026](FreshRSS/FreshRSS#9026) - Warn during install if document root does not point to `./p/` [#​9010](FreshRSS/FreshRSS#9010) - Stop the unread-count poller after the session ends [#​9065](FreshRSS/FreshRSS#9065) - Add remote IP address to warning on form login [#​8942](FreshRSS/FreshRSS#8942) - Pin the GitHub actions using SHA [#​9200](FreshRSS/FreshRSS#9200) - Harden cache and SimplePie cache deserialization [#​9273](FreshRSS/FreshRSS#9273) - SimplePie - Security: Disallow `javascript:` URI scheme (protocol) [#​8263](FreshRSS/FreshRSS#8263) - Fix wrong player parent logic leading to invalid type [#​8893](FreshRSS/FreshRSS#8893), [simplepie#978](simplepie/simplepie#978) - Consistently enable `XML_OPTION_PARSE_HUGE` [#​8894](FreshRSS/FreshRSS#8894), [simplepie#977](simplepie/simplepie#977) - Fix null warning in IRI for PHP 8.5+ [#​8918](FreshRSS/FreshRSS#8918), [simplepie#979](simplepie/simplepie#979) - Fix sanitizer whitelist stripping order [#​9066](FreshRSS/FreshRSS#9066) - Show only one representation per `media:group` [#​9009](FreshRSS/FreshRSS#9009) - Bump upstream SimplePie [#​8947](FreshRSS/FreshRSS#8947) - Features - Filter global view feed list by state and search [#​9132](FreshRSS/FreshRSS#9132) - Use global view when searching from subscription page [#​9144](FreshRSS/FreshRSS#9144) - New option to hide badges showing number of unread articles (*Phantom Obligation*) [#​8844](FreshRSS/FreshRSS#8844) - Refresh only feeds in the current view [#​9060](FreshRSS/FreshRSS#9060) - Offer to add a prefix when resharing user labels [#​9236](FreshRSS/FreshRSS#9236) - Add log search to the logs page [#​9059](FreshRSS/FreshRSS#9059) - Add configurable `log_level` system setting [#​9185](FreshRSS/FreshRSS#9185) - New option to keep or not the custom sort order when navigating between categories and feeds [#​8969](FreshRSS/FreshRSS#8969) - New per-feed option to show or hide enclosures (attachments) [#​9015](FreshRSS/FreshRSS#9015) - Detect JSON feeds from URLs containing `json` [#​9058](FreshRSS/FreshRSS#9058) - Also when subscribing via the API [#​9167](FreshRSS/FreshRSS#9167) - Order categories during OPML import/export according to position [#​9203](FreshRSS/FreshRSS#9203) - OPML: include each feed’s refresh interval (TTL) in export/import [#​8982](FreshRSS/FreshRSS#8982) - Log failed CSS content retrieval (Web scraping) [#​9077](FreshRSS/FreshRSS#9077) - Allow providing a category when adding a feed by bookmarklet [#​9047](FreshRSS/FreshRSS#9047) - Add LinkAce sharing service [#​9024](FreshRSS/FreshRSS#9024) - Add Nextcloud Bookmarks sharing service [#​9032](FreshRSS/FreshRSS#9032) - Bug fixing - Fix lost elements while parsing search query [#​8884](FreshRSS/FreshRSS#8884) - Fix “mark as read older than…” widening the active search [#​9173](FreshRSS/FreshRSS#9173) - Fix saving user queries [#​9190](FreshRSS/FreshRSS#9190) - Fix SQL errors breaking some regex searches with MySQL / MariaDB [#​9036](FreshRSS/FreshRSS#9036) - Fix marking filtered label articles as read in SQLite and PostgreSQL [#​9264](FreshRSS/FreshRSS#9264) - Fix tagging an already-tagged entry on PostgreSQL raising a SQL error instead of being a no-op [#​9136](FreshRSS/FreshRSS#9136) - PostgreSQL: make committing new entries resilient to duplicate keys [#​9231](FreshRSS/FreshRSS#9231) - Preserve negative timezone offsets in date intervals [#​9071](FreshRSS/FreshRSS#9071) - Fix feed dropdown bugs due to hash desync [#​8949](FreshRSS/FreshRSS#8949) - Fix slider not reinitializing after form submit [#​8973](FreshRSS/FreshRSS#8973) - Minz: Skip loading duplicated JS/CSS assets [#​9000](FreshRSS/FreshRSS#9000) - Respect `simplepie_syslog_enabled` for the *uses cache* logs [#​8986](FreshRSS/FreshRSS#8986) - Fix statistics repartition averages [#​8996](FreshRSS/FreshRSS#8996) - Fix article hover date visibility [#​8997](FreshRSS/FreshRSS#8997) - Keep search and state filters when marking articles as read [#​9007](FreshRSS/FreshRSS#9007) - Fix `--db-prefix` silently drops following CLI flags [#​9042](FreshRSS/FreshRSS#9042) - Remove stale dynamic favicon links [#​9127](FreshRSS/FreshRSS#9127) - Fix desync between favicon and title unread counters [#​9262](FreshRSS/FreshRSS#9262) - Fix outdated username length hint on registration and install forms [#​9013](FreshRSS/FreshRSS#9013) - Redirect away from wrong URL paths [#​9075](FreshRSS/FreshRSS#9075) - Fix auto-share shortcut on first use [#​9072](FreshRSS/FreshRSS#9072) - Exclude hidden feeds from global view counts [#​9152](FreshRSS/FreshRSS#9152) - Fix only the last `<media:credit>` being written to the RSS output [#​9174](FreshRSS/FreshRSS#9174) - CLI - New `cli/reconfigure-user.php` to read/write per-user config attributes [#​8873](FreshRSS/FreshRSS#8873) - Report new articles count per feed in `app/actualize_script.php` output [#​8948](FreshRSS/FreshRSS#8948) - Output a diagnostic when the `cli/health.php` check fails [#​8980](FreshRSS/FreshRSS#8980) - API - Add a warning message to the API password section and a log warning when a client uses GET instead of recommended POST [#​8845](FreshRSS/FreshRSS#8845) - Fever API: log the client IP address on authentication failure [#​8981](FreshRSS/FreshRSS#8981) - WebSub: ignore HTTP/HTTPS scheme difference in Self URL comparison [#​9005](FreshRSS/FreshRSS#9005) - Deployment - Docker alternative image updated to Alpine 3.24 with PHP 8.5.7 and Apache 2.4.67 [#​8916](FreshRSS/FreshRSS#8916) - Start supporting PHP 8.6+ - Docker dev `:newest` with PHP 8.6 [#​9155](FreshRSS/FreshRSS#9155) - Docker: attach provenance and SBOM attestations to the published image [#​9150](FreshRSS/FreshRSS#9150) - Apache use only `CONN_REMOTE_ADDR` in logs when `mod_remoteip` is available, for compatibility with LiteSpeed Web Server [#​8890](FreshRSS/FreshRSS#8890) - Fix `.dockerignore` being ignored during build in CI [#​9001](FreshRSS/FreshRSS#9001) - New `ENABLE_ACCESS_LOG` environment variable to disable access logs [#​9191](FreshRSS/FreshRSS#9191) - Check GMP during 32-bit installation [#​9046](FreshRSS/FreshRSS#9046) - Improve actualize mutex to allow multiple instances [#​9045](FreshRSS/FreshRSS#9045) - OIDC: redirect to a default URL on expired auth state instead of 400 [#​9143](FreshRSS/FreshRSS#9143) - UI - Always jump article to top when header is offscreen, also when *Stick the article to the top when opened* is disabled [#​8870](FreshRSS/FreshRSS#8870) - Move article header/footer options (feed title, authors and date, icons position, tags) from *Reading* to *Display* configuration [#​9139](FreshRSS/FreshRSS#9139) - Move disable button before remove button in user management [#​8944](FreshRSS/FreshRSS#8944) - Keep scroll position of slider after form submit [#​8974](FreshRSS/FreshRSS#8974) - Group export feeds by category [#​9079](FreshRSS/FreshRSS#9079), [#​9154](FreshRSS/FreshRSS#9154) - Sort feed names with locale-aware collation [#​8985](FreshRSS/FreshRSS#8985) - Sort labels with locale-aware collation [#​9023](FreshRSS/FreshRSS#9023) - Format unread counter in title on page load [#​9263](FreshRSS/FreshRSS#9263) - Display slider after submit for all buttons in feed update UI [#​8999](FreshRSS/FreshRSS#8999) - Improve aside keyboard navigation [#​9202](FreshRSS/FreshRSS#9202) - Allows usage of <kbd>Ctrl/Shift</kbd> keys with the open website shortcut [#​9186](FreshRSS/FreshRSS#9186) - Fix padding for `.nav_menu` in Alternative-Dark, Flat, and Nord themes [#​8901](FreshRSS/FreshRSS#8901) - Fix typo in alert error border `color` variable [#​9266](FreshRSS/FreshRSS#9266) - Use JavaScript `Event()` constructor instead of deprecated `initEvent()` [#​9035](FreshRSS/FreshRSS#9035) - Use `:user-invalid` instead of `:invalid` for CSS form field styling [#​9025](FreshRSS/FreshRSS#9025) - Remove unused simple layout [#​8998](FreshRSS/FreshRSS#8998) - Various UI and style improvements: [#​8823](FreshRSS/FreshRSS#8823), [#​8824](FreshRSS/FreshRSS#8824), [#​9140](FreshRSS/FreshRSS#9140), [#​9145](FreshRSS/FreshRSS#9145) - Extensions - Minor `Minz_Extension` typing [#​8952](FreshRSS/FreshRSS#8952) - Improve extension list fetch diagnostics [#​9055](FreshRSS/FreshRSS#9055) - Fix a PHP warning in *Serve* action [#​9267](FreshRSS/FreshRSS#9267) - Fix extension settings cancel action [#​9053](FreshRSS/FreshRSS#9053) - Fix sharing menu conflicts with extensions [#​9074](FreshRSS/FreshRSS#9074) - Add read status hook for entries [#​8995](FreshRSS/FreshRSS#8995) - Dispatch a new JavaScript event `freshrss:entryStateChange` when an entry finishes being marked read/unread [#​9031](FreshRSS/FreshRSS#9031) - Redirect after saving user CSS/JS so changes apply immediately [#​9006](FreshRSS/FreshRSS#9006) - I18n - New plural system [#​8988](FreshRSS/FreshRSS#8988) - Pluralize the *new articles* count message - Prefer OS-bundled Japanese fonts when UI language is Japanese [#​9002](FreshRSS/FreshRSS#9002) - Add Azerbaijani [#​9269](FreshRSS/FreshRSS#9269) - Add Lithuanian [#​9201](FreshRSS/FreshRSS#9201), [#​9213](FreshRSS/FreshRSS#9213) - Improve Brazilian Portuguese [#​9240](FreshRSS/FreshRSS#9240), [#​9242](FreshRSS/FreshRSS#9242) - Improve German [#​9149](FreshRSS/FreshRSS#9149) - Improve Greek [#​8977](FreshRSS/FreshRSS#8977), [#​9038](FreshRSS/FreshRSS#9038) - Improve Hungarian [#​8879](FreshRSS/FreshRSS#8879) - Improve Indonesian (Bahasa Indonesia) [#​9220](FreshRSS/FreshRSS#9220) - Improve Italian [#​8880](FreshRSS/FreshRSS#8880) - Improve Japanese [#​9064](FreshRSS/FreshRSS#9064) - Improve Persian [#​8923](FreshRSS/FreshRSS#8923) - Improve Spanish [#​8878](FreshRSS/FreshRSS#8878), [#​9245](FreshRSS/FreshRSS#9245) - Improve Traditional Chinese [#​9037](FreshRSS/FreshRSS#9037), [#​9069](FreshRSS/FreshRSS#9069), [#​9223](FreshRSS/FreshRSS#9223) - Improve Turkish [#​8966](FreshRSS/FreshRSS#8966), [#​8971](FreshRSS/FreshRSS#8971), [#​8970](FreshRSS/FreshRSS#8970), [#​8989](FreshRSS/FreshRSS#8989) - Improve Ukrainian [#​8871](FreshRSS/FreshRSS#8871) - Refactor user query translation keys [#​9049](FreshRSS/FreshRSS#9049) - Misc. - Update to PHPMailer 7.1.1 [#​8907](FreshRSS/FreshRSS#8907) - Improve PHP code [#​8906](FreshRSS/FreshRSS#8906), [#​9156](FreshRSS/FreshRSS#9156) - Fix PHPStan 2.2.2 in CLI [#​8911](FreshRSS/FreshRSS#8911) - Migrate `markdownlint-cli` to `markdownlint-cli2` [#​8987](FreshRSS/FreshRSS#8987) - Update dev dependencies [#​8904](FreshRSS/FreshRSS#8904), [#​8905](FreshRSS/FreshRSS#8905), [#​8926](FreshRSS/FreshRSS#8926), [#​8939](FreshRSS/FreshRSS#8939), [#​8940](FreshRSS/FreshRSS#8940), [#​8963](FreshRSS/FreshRSS#8963), [#​8961](FreshRSS/FreshRSS#8961), [#​8959](FreshRSS/FreshRSS#8959), [#​8958](FreshRSS/FreshRSS#8958), [#​8962](FreshRSS/FreshRSS#8962), [#​8960](FreshRSS/FreshRSS#8960), [#​9148](FreshRSS/FreshRSS#9148), [#​9162](FreshRSS/FreshRSS#9162), [#​9165](FreshRSS/FreshRSS#9165), [#​9158](FreshRSS/FreshRSS#9158), [#​9159](FreshRSS/FreshRSS#9159), [#​9176](FreshRSS/FreshRSS#9176), [#​9178](FreshRSS/FreshRSS#9178), [#​9179](FreshRSS/FreshRSS#9179), [#​9219](FreshRSS/FreshRSS#9219), [#​9253](FreshRSS/FreshRSS#9253), [#​9254](FreshRSS/FreshRSS#9254), [#​9255](FreshRSS/FreshRSS#9255), [#​9257](FreshRSS/FreshRSS#9257) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Rome) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNy4xIiwidXBkYXRlZEluVmVyIjoiNDQuMTcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==--> Reviewed-on: https://git.aresu.eu/GiorgioAresu/home-ops/pulls/2056
Closes #8291
Changes proposed in this pull request
app/actualize_script.phpnow reports, for each feed that received new articles, how many new articles were fetched — in addition to the existing per-user summary. This makes batch refreshes (cron / systemd timers) much more informative.Example output:
The feature is implemented entirely within the CLI script, reusing the existing extension-hook mechanism that the script already uses for the actualization mutex — no change to
feedControlleror to any other behaviour:FeedBeforeActualizerecords each feed's name.EntryBeforeAddcounts new entries per feed. This hook fires only in the "genuinely new GUID" branch of the actualization loop (updated articles go throughEntryBeforeUpdate), so the count matches the controller's own$nbNewArticlescounter. Because the counting hook is registered after$app->init(), it runs last in the chain and is skipped for entries dropped by another extension — i.e. it counts only articles that are actually added.Counts are printed through the script's existing
notice()helper, so they reach STDOUT regardless of theenvironmentsetting (unlikeMinz_Log::notice, which is suppressed inproduction).How to test the feature manually
make start(or any FreshRSS install) with at least one feed that has new articles.php ./app/actualize_script.php.N new article(s) from feed: …line for each feed that fetched new articles.Verified locally with the
freshrss/freshrss:alpineimage (SQLite, default feeds): the default FreshRSS releases feed correctly reported10 new article(s) from feed: FreshRSS releases.php -l,phpcs, andphpstanall pass.Pull request checklist