Commit Graph

146 Commits (320503dd3911de93d059ebe1ba8b96004d8f6b03)

Author SHA1 Message Date
Andrew Dolgov 320503dd39 move version-related stuff to Config; fix conditional feed requests 3 years ago
Andrew Dolgov afc7142250 move all $fetch globals to UrlHelper 3 years ago
Andrew Dolgov 126b1fd2de don't try to compare null value against anything 3 years ago
Andrew Dolgov a1ca62af50 cache schema version better 3 years ago
Andrew Dolgov dcf0135285 logger: shorter syntax 3 years ago
Andrew Dolgov c96172fa04 use constants in get_pref()/set_pref() 3 years ago
Andrew Dolgov 7f18e8c33b updater: show owner login instead of just uid 3 years ago
Andrew Dolgov 7869378436 deal with feed update scheduling w/ new prefs 3 years ago
Andrew Dolgov 2ae0b7059f cleanup some defined-stuff 3 years ago
Andrew Dolgov 211f699aa0 migrate the rest into Config:: 3 years ago
Andrew Dolgov e4107ac952 wip: initial for config object 3 years ago
wn_ 6fbf7ef368 Remove check against the old file in 'RSSUtils::check_feed_favicon'. 3 years ago
wn_ 02a9485966 Try to limit max favicon size, don't store current/old in a var. 3 years ago
wn_ cb401af6f6 Let 'RSSUtils::check_feed_favicon' update existing favicons. 3 years ago
Andrew Dolgov 7fad6ce651 move rgb/hsl functions to their own namespace 3 years ago
Andrew Dolgov 166f2d4666 diskcache: unify naming 3 years ago
Andrew Dolgov 257efb43c6 article: unify naming 3 years ago
Andrew Dolgov 020f062a76 feeds: unify naming 3 years ago
Andrew Dolgov 71dfc83466 force _ENABLED_PLUGINS to string when passed to pluginhost 3 years ago
Andrew Dolgov 7874f6ac58 remove PHPMD.UnusedFormalParameter 3 years ago
Andrew Dolgov 363b3629a4 rewrite a few more hooks 3 years ago
Andrew Dolgov 3b52cea811 move some old-style handlers to new callback ones 3 years ago
Andrew Dolgov 1eb1629d9e pluginhost: rework run_hooks() to be shorter, add callback variant; implement exception handling for both 3 years ago
Andrew Dolgov 3ad820e083 oops, remove unneeded warnings 3 years ago
Andrew Dolgov 479da5aa86 jimIcon: hide GD warning 3 years ago
Andrew Dolgov b6e1a5c91a fix several warnings reported by phpstan 3 years ago
Andrew Dolgov ce489a724b fix a few more warnings 3 years ago
Andrew Dolgov 403dca154c initial WIP for php8; bump php version requirement to 7.0 3 years ago
Andrew Dolgov da0ad82c24 Archive cleanup:
- remove code to manually archive/unarchive articles
- remove ttrss_archived_feeds/orig_feed_id handling - the whole thing was implemented for
this data to be kept indefinitely; it doesn't make a lot of sense to deal with this stuff
now that it is expired after one month anyway (same reasons as feed browser being removed - privacy)
- remove "originally from"-related stuff because of the above
- also remove unused remaining frontend/backend code related to feed browser (rip)
3 years ago
Andrew Dolgov 40f38fc87f pluginhost: load plugin data automatically (also marks load_data method as private) 3 years ago
Andrew Dolgov f59c567831 update_rss_feed: fix BLACKLISTED_TAGS not working properly, simplify tag-related code 4 years ago
JustAMacUser f782ee46ad Fix incorrect parenthesis placement in `count()`. 4 years ago
Andrew Dolgov f1fd5e8db1 mark feed as having an error if update task fails (and no last error is already stored for this feed) 4 years ago
Andrew Dolgov 4ea407f613 when auto disabling feeds based on DAEMON_UNSUCCESSFUL_DAYS_LIMIT only consider feeds with recent attempts to update (to prevent clashes with not recently logged users, etc) 4 years ago
Andrew Dolgov 38a7a1da88 hide uninteresting errors in several DOMDocument->loadHTML() invocations 4 years ago
Andrew Dolgov 8a02a728c8 add DAEMON_UNSUCCESSFUL_DAYS_LIMIT tunable (defaults to 30 days) 4 years ago
Andrew Dolgov e641547d37 set ttrss_feeds.last_successful_update as needed 4 years ago
Andrew Dolgov 15e8ee3471 housekeeping: add task to cleanup orphan feed icons 4 years ago
Andrew Dolgov 82bc740363 Logger::log - allow specifying errno
bump severity of PDO exception log messages to E_USER_WARNING
4 years ago
Andrew Dolgov 23d20847a3 update_rss_feed: fallback to previous method if passthru() is not available 4 years ago
Andrew Dolgov 7c8bed0524 accept -1 as a valid exit code for per-feed update processes 4 years ago
Andrew Dolgov 335dcd3bf9 don't mention last_updated in non-zero failure error message because that's not what it means 4 years ago
Andrew Dolgov 3534b8dfa7 improve logging for per-feed update task failures 4 years ago
Andrew Dolgov 74cd60d7cc update_rss_feed: don't return as if failed on http 304 4 years ago
Andrew Dolgov d4d0e976dc update-feed: exit with non-zero exit code if update_rss_feed() failed
daemon: log if per-feed update task terminated with non-zero exit code
4 years ago
Andrew Dolgov 0761533d0a lock per-feed update processes based on feed ID to reduce possibilty
of concurrent updates
4 years ago
Andrew Dolgov 528b387563 update individual feed in a separate process to prevent PHP fatal errors
(for example, OOM) from stopping the entire batch
this should also slightly increase memory budget for update processes
4 years ago
Andrew Dolgov 05744bb474 fix updater never scheduling feeds for update if they never been updated before while having default update interval set 4 years ago
Andrew Dolgov 6811d0bde2 use self:: in some places to invoke static methods from the same class 4 years ago
Andrew Dolgov 74568df4ff remove a lot of stuff from global context (functions.php), add a few helper classes instead 4 years ago