Commit Graph

619 Commits (a230bf88a9ce4589eeaf2d00226eafb78b4de01c)

Author SHA1 Message Date
Andrew Dolgov a230bf88a9 move to Article:
+       static function purge_orphans($do_output = false) {

move to Feeds

+       static function getGlobalUnread($user_id = false) {
+       static function getCategoryTitle($cat_id) {
+       static function getLabelUnread($label_id, $owner_uid = false) {
7 years ago
Andrew Dolgov 86a8351ca2 move the following to Feeds:
+       static function catchup_feed($feed, $cat_view, $owner_uid = false, $mode = 'all', $search = false) {
+       static function getFeedArticles($feed, $is_cat = false, $unread_only = false,
+       static function subscribe_to_feed($url, $cat_id = 0,
+       static function getFeedIcon($id) {
+       static function getFeedTitle($id, $cat = false) {
+       static function getCategoryUnread($cat, $owner_uid = false) {
+       static function getCategoryChildrenUnread($cat, $owner_uid = false) {
7 years ago
Andrew Dolgov 9549e33c2c move some common control-generating functions to controls.php 7 years ago
Andrew Dolgov 7b55001eee fix various issues reported by static analysis
update gitlab-ci config
7 years ago
Andrew Dolgov 337535416f filter by search results while marking feed as read 7 years ago
Andrew Dolgov 1bfe1d7b31 simplify error handling
* less convoluted exception dialogs
* use window.onerror for the majority of exception catching/reporting
* remove most of now useless try/catch blocks
* report stacktrace instead of manually specified error locations
7 years ago
Andrew Dolgov dc8bd8a640 add some print_checkbox/print_button calls; rename some plugin preference pane titles 7 years ago
Andrew Dolgov 8cf37284e7 af_zz_imgproxy: add optional setting to proxy all remote images
functions: add some form helper methods
7 years ago
Andrew Dolgov 24c7e4132d subscribe dialog: do not report errors via alert()
fetch_file_contents: reset all globals on start, return error message body when not using curl
subscribe_to_feed: report if cloudflare is in the error message
8 years ago
Andrew Dolgov e934d63e0c fetch_file_contents: rework the way shim works to prevent intermittent warnings 8 years ago
Andrew Dolgov 70c5b2bfcc feed tree: only run animation for appearing unread counters to prevent clashes with aux counter updating and animations ending up in wrong state 8 years ago
JustAMacUser fabfb9fc2a Added support to fetch_file_contents() to explicitly set CURLOPT_FOLLOWLOCATION. 8 years ago
Anders Kaseorg 5ddc3e274d lib: Upgrade php-publisher from ??? to a5d6a0e (2016-11-15)
https://github.com/pubsubhubbub/php-publisher

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 years ago
Andrew Dolgov 17a8e61d2a deprecate encrypted feed passwords because mcrypt is getting removed from php 7.1
1. transparent decryption for existing installs stays for the time being
2. new passwords are not going to be encrypted even if FEED_CRYPT_KEY is defined
3. added update.php --decrypt-feeds to bulk decrypt existing encrypted passwords
4. updated install to not auto-generate crypt key
5. added warning to config.php-dist
8 years ago
Andrew Dolgov 3bba9c396f fetch_file_contents: set timeout when not using CURL 8 years ago
John Brayton 401eb0f694 Specify feed_id as an int rather than a string. 8 years ago
John Brayton f1b3b3f330 Add feed_id to subscribeToFeed response when the code is 1 or 0.
Set the API_LEVEL to 14.
8 years ago
Andrew Dolgov 5cbd1fe8e4 perform housekeeping tasks for plugins loaded in user-context only 8 years ago
Andrew Dolgov e6905f7f87 test if mb_internal_encoding() is available in functions.php head 8 years ago
Andrew Dolgov c71add385d fetch_file_contents: fix shim when invoked with 1 argument only 8 years ago
Andrew Dolgov 465fb16d33 remove fetch_file_contents2, use a compat shim instead 8 years ago
Andrew Dolgov e3bc4591af add a hash-based fetch_file_contents2() 8 years ago
Andrew Dolgov cc43e19b44 error handler: do not log last query, truncate error message to a smaller length 8 years ago
Andrew Dolgov 312742db6e updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins 9 years ago
Andrew Dolgov a956648502 catchup_feed: proper fix for mysql 5.7 9 years ago
Andrew Dolgov 15c0bca0e5 catchup maybe add workaround for mysql 5.7 derived_merge 9 years ago
Andrew Dolgov 4c46702672 drop support for (obsolete, removed from recent php versions) php safe_mode setting
remove ugly hacks for curl + open_basedir combination breaking support for http redirects
9 years ago
Andrew Dolgov 6497fb65b4 fix ttrss_feeds.last_update defaulting to 0 on mysql, set to null instead
bump schema
9 years ago
Andrew Dolgov 7475580b37 getLabelCounters: stricter ownership check 9 years ago
Andrew Dolgov d5eaaa0508 curl: let's verify ssl peers 9 years ago
Andrew Dolgov 45913edda0 fetch_file_contents: use http/1.1 when not using curl 9 years ago
Andrew Dolgov b87744534a add plugin-based filter actions (see example plugin in attic)
bump schema
9 years ago
Andrew Dolgov 6b3160cf1e purge_feed: remove obsolete postgresql queries 9 years ago
Andrew Dolgov 8f135ce3b6 bump schema 9 years ago
Andrew Dolgov 3ceb893f66 add one catchall function to make uniqids/keyhashes/etc used by tt-rss 9 years ago
Andrew Dolgov 97aa917c6d smart_date_time: better eta_min handling 9 years ago
Andrew Dolgov 7680d44ef2 purge_orphans: optimize the query, maybe
https://tt-rss.org/forum/viewtopic.php?f=1&t=3417&p=20408#p20407
9 years ago
Andrew Dolgov a950fbecb5 Revert "Performance breakthrough"
This reverts commit c291685654.
9 years ago
GregThib c291685654 Performance breakthrough
Improvement in the Purge method for huge performance increase.
"WHERE ref_id IS NOT NULL" is needed by pgsql, not necessarily by mysql.
This is a more standard way to make deletions based on propagation (from ttrss_user_entries) with 1-to-N relations.
9 years ago
Andrew Dolgov b6714c77d2 limit smart_date_time stuff to headlines only 9 years ago
Andrew Dolgov 46973af5df smart_date_time: add special case when article date is within current hour 9 years ago
Andrew Dolgov 3318d32410 move language detection to a plugin, remove config.php constant 9 years ago
Andrew Dolgov 6022776dac speedup feed subscription process 9 years ago
Andrew Dolgov 51faa1150c add bg_BG entry to get_translations() 9 years ago
Andrew Dolgov d498b60c6d do not subscribe new users to now obsolete releases feed 10 years ago
Anders Kaseorg bd40827b73 Drop duplicate database indexes
These duplicate indexes were found by the pt-duplicate-key-checker
tool in percona-toolkit.  Duplicate indexes waste space and slow down
the query planner.  Closes #835.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
10 years ago
Andrew Dolgov 584411fee6 disable libxml entity loader to prevent attacks via xml external entities (fixes #833) 10 years ago
Andrew Dolgov 9fd581336e fetch_file_contents: support retarded schema-less urls
af_comics_dilbert: fix for new dilbert.com shenanigans
10 years ago
Andrew Dolgov 229a871be7 do not force sslversion in any cases 10 years ago
Dave Zaikos 32703cc636 Added ltrim to in fetch_file_contents to fix edge cases where a URL has one or more spaces before it, which causes CURL to fail. 10 years ago