summaryrefslogtreecommitdiff
path: root/classes/RSSUtils.php
AgeCommit message (Collapse)Author
2025-10-05Bump PHPStan to 2.1.30 and address new findings.supahgreg
Also some minor adjacent cleanup.
2025-10-03Remove references to, and integrations with, 'tt-rss.org'.supahgreg
2025-07-06Separate feed type detection from init, don't subscribe on failures.wn_
Also some FeedParser tweaks.
2025-07-04replace all instances of die() with print+exit because die() returns exit code 0Andrew Dolgov
2025-05-22Drop legacy feed icon storage migration and unused 'Config::ICONS_DIR'.wn_
2025-05-22fix wrong config param being used & add a link to cron syntax we supportAndrew Dolgov
2025-05-22make default task schedules configurableAndrew Dolgov
2025-05-21Improve naming when working with filter actions.wn_
Also updated some related typing and documentation.
2025-05-18Fix check for no articles found in 'RSSUtils::update_rss_feed()'.wn_
FeedParser will always return an array.
2025-05-18Minor ORM usage tweak in 'RSSUtils::update_rss_feed()'.wn_
2025-05-18Deprecate and remove use of the 'SUBSTRING_FOR_DATE' constant.wn_
With MySQL support removed (b154bc7a10e46dc9fa0406996507c4fd410366da) this constant is unnecessary.
2025-05-17Get rid of 'Db::past_comparison_qpart()'.wn_
With MySQL support dropped this function is just an unnecessary layer of abstraction.
2025-05-05switch insert query for base article record to named parameters and add ↵Andrew Dolgov
previously missing ts_content stuff
2025-05-05drop some pointless queries now that we can use RETURNING for insertsAndrew Dolgov
2025-05-05only open PDO transaction while performing CRUD operations on articleAndrew Dolgov
2025-05-04expose scheduled tasks to plugins, switch cache_starred_images plugin to use ↵Andrew Dolgov
them instead of housekeeping hook
2025-05-04Move registration of 'purge_orphaned_scheduled_tasks' into Scheduler.wn_
2025-05-04Merge branch 'feature/purge-orphaned-scheduled-tasks' into 'master'Andrew Dolgov
Periodically purge orphaned scheduled task records See merge request tt-rss/tt-rss!126
2025-05-04Move logging users excluded from updates to a daily scheduled task, exclude ↵wn_
disabled or readonly users.
2025-05-04Periodically purge orphaned scheduled task records.wn_
2025-05-02reorder housekeeping tasks by intervalAndrew Dolgov
2025-05-02move scheduled tasks to a separate class, add some try-catches, ↵Andrew Dolgov
improve/shorten logging and descriptions
2025-05-02rename article mark/publish hooksAndrew Dolgov
2025-05-02drop SIMPLE_UPDATE_MODE, limit housekeeping and updates to background processesAndrew Dolgov
2025-05-02make digest sending a hourly cron jobAndrew Dolgov
2025-05-02remove synchronous usages of _purge_orphans()Andrew Dolgov
2025-05-02split housekeeping jobs to separate scheduled tasks on longer cooldown ↵Andrew Dolgov
intervals, add table to record task execution timestamps, bump schema
2025-05-01add plugin hooks invoked when articles get un/marked or un/publishedAndrew Dolgov
2025-04-14initial attempt to remove mysql-related stuff from tt-rssAndrew Dolgov
2025-04-08if possible, automatically encrypt stored plaintext password for feed on updateAndrew Dolgov
2025-04-08support transparent encryption for feed passwords, bump schema to drop ↵Andrew Dolgov
length limit of ttrss_feeds.auth_pass
2025-04-04Only use valid feed basic info from plugins.wn_
2025-03-04Add and use 'Db::now_comparison_qpart()'.wn_
This introduces a helper to build a query part comparing a field against a past datetime (determined by '$now - $some_interval'), eliminating certain boilerplate code.
2025-02-25Use the fileinfo module for favicon validation in 'RSSUtils::update_favicon()'.wn_
2025-02-15Only continue filter testing when there are likely more entries to check.wn_
Prior to this, a filter test could needlessly result in up to 100 backend requests (limit 100, max_offset 10000) when the filter's associated feeds+categories have fewer than 10000 entries.
2025-01-26Reduce use of legacy 'Config::ICONS_DIR'.wn_
Also some minor cleanup in 'API#_get_config()'.
2024-11-24Use PHP 8 'str_' functions.wn_
A few more characters in some places, but helps with readability.
2024-11-23Use native union types in most places.wn_
2024-11-18Eliminate use of deprecated 'get_pref()' and 'set_pref()'.wn_
2024-10-01drop opentelemetryAndrew Dolgov
2024-07-05Don't reuse the '$matches' array in 'RSSUtils::decode_srcset()'.wn_
This causes the size of the array to be incorrectly doubled due to the original regex match items being combined with the custom items (i.e. the ones with just 'url' and 'size' keys). Also rework 'RSSUtils::encode_srcset()' a bit so it looks similar to 'RSSUtils::decode_srcset()'.
2024-06-19add some time-related debugging output for feeds and usersAndrew Dolgov
2024-06-18 * pass arbitrary CLI arguments to update daemon via updater.sh entrypointAndrew Dolgov
* add configurable log level for update daemon (DAEMON_LOG_LEVEL) * when daemon log level is set to LOG_EXTENDED (2) log queries for feed update selection
2024-03-26Make implicit nullable parameters explicitly nullable.wn_
This is to address a deprecation planned for PHP 8.4. https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-02-06Fix passing auth credentials to plugins for HOOK_FETCH_FEED.wn_
2024-01-20Use FeedEnclosure throughout RSSUtils.wn_
2024-01-08Clean up some unused variables.wn_
This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm.
2023-12-30Update all UrlHelper::fetch() calls to use the associative array approach.wn_
The other approach (passing in individual params) was marked as deprecated a few years ago.
2023-10-25move to psr-4 autoloaderAndrew Dolgov