summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2022-12-24Fix getting active feeds with errors.wn_
fb4bc2615e3910e8a7d15c6306e10247f7f80f4b incorrectly excluded feeds using the default update interval. This change ignores the unlikely scenario where someone has the default update interval set to 'disabled'.
2022-12-21Only count updating (i.e. enabled) feeds when determining active feeds with ↵wn_
errors. This excludes feeds that had errors and currently have updating disabled (e.g. disabled due to the site being down for a while, getting compromised, etc.). Disabled / non-updating feeds' error states are still visible when viewed in the feed tree.
2022-12-20Only touch on send for expirable cache files.wn_
With d373b7b452c6d64b47180940ed88c99c21bd9bc3 feed icon modification times get used for cache-busting, but 'Cache_Local' updates that value on each send. This change makes it so the modification time only gets updated on files in expirable caches, keeping the value consistent between sends for files in non-expiring caches. Also, marking 'Cache_Local::send_local_file()' private since it's unique to that adapter.
2022-12-19make phpstan happyAndrew Dolgov
2022-12-19 * bring back cache-busting for feed icons based on timestampAndrew Dolgov
* DiskCache: use singleton pattern to create less cache object instances * DiskCache: implement ETag
2022-12-02Merge branch 'master' of git.tt-rss.org:tt-rss/tt-rssAndrew Dolgov
2022-12-02fix cleanup_feed_icons unlinking nonexistant files, limit it to actual feed ↵Andrew Dolgov
icons
2022-11-28Consistently get the self URL.wn_
This ensures all uses of the self URL get the same normalized/sanitized value.
2022-11-28get_self_url: strip all trailing slashesAndrew Dolgov
2022-11-26DiskCache: enforce basename() on filenames passed to cache adapterAndrew Dolgov
2022-11-24migrate favicons directly to new cacheAndrew Dolgov
2022-11-24rework favicon storage to use DiskCacheAndrew Dolgov
2022-11-24DiskCache: tweak how expiration is invokedAndrew Dolgov
2022-11-24deprecate DiskCache->touch()Andrew Dolgov
2022-11-23update_rss_feed: use DiskCache to store feed dataAndrew Dolgov
2022-11-23 * split local cache implementation into a separate classAndrew Dolgov
* allow custom implementations provided by plugins
2022-11-12Address upcoming string interpolation deprecation.wn_
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
2022-10-15fix some PHP8 warnings generated while dragging feed tree items aroundAndrew Dolgov
2022-10-01Fix PHP8 strtime warning if argument is null (addendum)jmechnich
2022-09-29make phpstan happyAndrew Dolgov
2022-09-29Merge branch 'master' into masterShemi
2022-09-29Added support for api plugins virtual feedsShemi
2022-09-28Fix PHP8 strtime warning if argument is nulljmechnich
2022-08-31Set user related sessions for single user modepowerivq
2022-08-31Merge pull request 'Fix PHP8 empty param warning' (#79) from ↵fox
powerivq/tt-rss:php8compat into master Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/79
2022-08-31Add last_login to single user modepowerivq
2022-08-31Fix PHP8 empty param problempowerivq
2022-08-17Merge pull request 'Use PHP 7.4 features' (#77) from ↵fox
wn/tt-rss:feature/php-7.4-stuff into master Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/77
2022-08-16generate_syndicated_feed: add source section to JSON-formatted outputAndrew Dolgov
2022-08-15Merge remote-tracking branch 'origin/master' into feature/php-7.4-stuffwn_
2022-08-15amend logic flow to fix phpstan warning in previousAndrew Dolgov
2022-08-14Handle 'file_get_contents()' failure in 'UrlHelper::fetch()'.wn_
2022-08-14Handle valid HTTP responses with no response body.wn_
2022-08-12Use the null coalescing assignment operator in various places.wn_
2022-08-12Replace use of 'array_merge' with the spread operator and 'array_push' in ↵wn_
various places. This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
2022-08-12Use arrow functions in some places.wn_
2022-08-12Remove a PHP < 7.1 branch in UrlHelper.wn_
2022-08-12Switch to direct type declarations of class properties.wn_
2022-07-31update phpstan to 1.8.2Andrew Dolgov
2022-07-29properly check for baseline required PHP version (7.4)Andrew Dolgov
2022-07-24 * add HOOK_LOGINFORM_ADDITIONAL_BUTTONSAndrew Dolgov
* allow plugins to inject JS code into login form
2022-07-24public: allow system plugins to expose public methodsAndrew Dolgov
2022-07-24make_self_url: properly strip out GET paramsAndrew Dolgov
2022-07-24readability: add missing dependenciesAndrew Dolgov
2022-07-16Fix an error when disabling all user pluginsChih-Hsuan Yen
If I enabled some user plugins via Preferences -> Plugins and then disabled all of them, an error occurred: Jul 16 22:34:20 php[100]: PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /usr/share/webapps/tt-rss/classes/pref/prefs.php:1027 Jul 16 22:34:20 php[100]: Stack trace: Jul 16 22:34:20 php[100]: #0 /usr/share/webapps/tt-rss/classes/pref/prefs.php(1027): array_filter() Jul 16 22:34:20 php[100]: #1 /usr/share/webapps/tt-rss/backend.php(136): Pref_Prefs->setplugins() Jul 16 22:34:20 php[100]: #2 {main} Jul 16 22:34:20 php[100]: thrown in /usr/share/webapps/tt-rss/classes/pref/prefs.php on line 1027 Apparently the issue was elevated from a warning to an error in PHP 8.0 [1]. [1] https://php.watch/versions/8.0/internal-function-exceptions
2022-07-13some very minor php8.1 warnings fixedAndrew Dolgov
2022-07-04Fix MySQL search QueriesDJ_TBX
Add the missing space between "AND" and "MATCH" in MySQL search queries
2022-06-19implement native fulltext search on mysqlAndrew Dolgov
2022-06-19schema: add fulltext indexes for mysql to support af_psql_trgm and possibly ↵Andrew Dolgov
future fulltext search
2022-06-13userhelper: fix optional parameter being declared before a required oneAndrew Dolgov