summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2024-08-14Remove unused 'dashboard feed' code.wn_
Displaying auxiliary info when there's nothing to load is being handled in 'Feeds::_format_headlines_list()'.
2024-08-04Replace basic 'isset()' cases with the null coalescing operator.wn_
2024-07-17Merge branch 'feature/php84-session_set_save_handler' into 'master'Andrew Dolgov
Switch to the non-deprecated form of 'session_set_save_handler'. See merge request tt-rss/tt-rss!44
2024-07-12Move side effects out of the 'Sessions' constructor.wn_
2024-07-11Add and use the 'Sessions' class.wn_
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-18set DAEMON_FEED_LIMIT to 50 by default and use it consistently between ↵Andrew Dolgov
forking daemon and any other update methods
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-06-15fix untranslated stringsAndrew Dolgov
2024-05-16Add option to debug feeds in 'Feeds with update errors' dialog.wn_
Also, prevent opening that dialog from modifying the URL.
2024-05-09Check 'head' and 'body' when searching HTML for feed links.wn_
YouTube, for some reason, puts theirs in 'body'.
2024-04-16Switch 2 more implicitly nullable params to explicitly nullable.wn_
Missed in https://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/26 . https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-04-13force-set absolute path for local cache if CACHE_DIR config value is relativeAndrew Dolgov
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-03-23Support doing a prefs page search via Enter.wn_
2024-02-21add HOOK_VALIDATE_SESSIONAndrew Dolgov
2024-02-06Fix passing auth credentials to plugins for HOOK_FETCH_FEED.wn_
2024-01-20Use FeedEnclosure throughout RSSUtils.wn_
2024-01-13Merge branch 'feature/unused-var-cleanup' into 'master'Andrew Dolgov
Clean up some unused variables. See merge request tt-rss/tt-rss!19
2024-01-13Merge branch 'feature/reduce-fetch-error-message' into 'master'Andrew Dolgov
Only include the exception message in 'UrlHelper::$fetch_last_error'. See merge request tt-rss/tt-rss!20
2024-01-09Only include the exception message in 'UrlHelper::$fetch_last_error'.wn_
Before this the stack trace was included, which is a bit much.
2024-01-09shorten DIGEST_MIN_SCORE help textAndrew Dolgov
2024-01-09 * mark get_pref/set_pref wrappers as deprecatedAndrew Dolgov
* add per-user preference for minimal score required for digest
2024-01-09* mail test - fill user email address as defaultAndrew Dolgov
* digest - fix some warnings
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-12-29Perform validation of redirect URLs during the redirect process.wn_
Previously, validation was only done after all redirects and the final request had completed. This approach ensures all redirects are to URLs that pass extended validation.
2023-12-24Fix specifying auth type in UrlHelper::fetch(), add a test for 403 auth retry.wn_
2023-12-23Add some tests for UrlHelper::fetch()wn_
2023-12-23Rework content encoding error retrying in UrlHelper::fetch()wn_
2023-12-23Clean up UrlHelper::resolve_redirects().wn_
Also: this doesn't appear to be used... but maybe in some plugin?
2023-12-23Add back 'any auth' retry in UrlHelper::fetch()wn_
2023-12-22Use Guzzlewn_
2023-12-17Revert "Fix sanitizer with libxml2 >= 2.12.0"Andrew Dolgov
This reverts commit d4da4dcc321ca65fb2cd19877f395cc5f75933ab.
2023-11-26Fix sanitizer with libxml2 >= 2.12.0Chih-Hsuan Yen
Somehow with newer libxml2, `<?xml encoding="UTF-8">` no longer enforces UTF-8. Instead, non-ASCII contents are treated as ISO-8859-1 and get broken. For example, `<p>中文</p>` becomes `<p>&auml;&cedil;&shy;&aelig;&#150;&#135;</p>` (should be `<p>&#20013;&#25991;</p>`). Switching to another trick mentioned on [1] fixes the issue, and the new trick still works with older libxml2 (tested 2.11.5). As a side note, DOMDocument::loadHTML uses HTMLParser in libxml2 [2][3]. [1] https://stackoverflow.com/questions/8218230/php-domdocument-loadhtml-not-encoding-utf-8-correctly [2] https://github.com/php/php-src/blob/php-8.1.26/ext/dom/document.c#L1855 [3] https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-HTMLparser.html
2023-11-03add wip UI/backend stuff to filter feed treeAndrew Dolgov
2023-10-28add stuff necessary to run integration tests using phpunitAndrew Dolgov
2023-10-27add a separate interface for auth modules w/ change_password() methodAndrew Dolgov
2023-10-27Merge branch 'master' of gitlab.tt-rss.org:tt-rss/tt-rssAndrew Dolgov
2023-10-27replace some dirname horrors with a separate unit-tested methodAndrew Dolgov
2023-10-26Fix class names in some more places.wn_
Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f
2023-10-25make phpstan happyprotected/psr-4Andrew Dolgov
2023-10-25add healthcheck public method, map by default to /healthzAndrew Dolgov
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-24Revert "api: escape newlines in headline content HTML object"Andrew Dolgov
This reverts commit ed43a7336925c1a97cad8768afa52c5c46f299bb.
2023-10-24add a workaround for make_self_url() when invoked off /api/ endpoint, add ↵Andrew Dolgov
unit tests for this method
2023-10-24api: escape newlines in headline content HTML objectAndrew Dolgov
2023-10-24add stub opentelemetry classes in case it is disabledAndrew Dolgov
2023-10-23Revert "add a self url path hack to strip request path directories (needed ↵Andrew Dolgov
for /api/index.php)" This reverts commit 9826d2f07527e3259957628030adc87bde391b0c.