Commit Graph

210 Commits

Author SHA1 Message Date
justauser 3b96b0ed7c Merge branch 'master' into hookhead
Conflicts:
	include/functions.php

changes for conflicts with master
2013-07-07 13:57:06 -04:00
Andrew Dolgov e9687f67e0 date_reverse view mode: take scoring into account 2013-07-06 12:03:01 +04:00
justauser 6763143835 Changed the implementation of HOOK_QUERY_HEADLINES to deal with issue Fox raised 2013-06-28 10:46:45 -04:00
justauser 891e36f57e Changes to add a new hook: HOOK_QUERY_HEADLINES. An example is provided. 2013-06-27 11:18:23 -04:00
Andrew Dolgov 6f81395d73 api, getArticle: check for article_id being present 2013-05-15 22:29:31 +04:00
Andrew Dolgov bd3c672320 api, add sanitize to getHeadlines (defaults to true) 2013-05-15 18:07:35 +04:00
Rasmus Lerdorf 6f7798b643 Fixing bugs found by static analysis 2013-05-07 00:35:10 -07:00
Andrew Dolgov 38a8c22b9e getHeadlines: return feed title for non-virtual feeds 2013-04-27 12:29:42 +04:00
Andrew Dolgov 2c8eed5395 api: add feed_title to getArticle 2013-04-27 12:25:40 +04:00
Andrew Dolgov 6421b42963 api/getHeadlines: increase limit to 200 2013-04-18 12:36:27 +04:00
Andrew Dolgov 1ffe3391f9 make pluginhost a singleton 2013-04-18 12:27:34 +04:00
Andrew Dolgov d9c85e0f11 classes: use OO DB interface 2013-04-17 20:12:14 +04:00
Andrew Dolgov a42c55f02b fix blank character after opening bracket in function calls 2013-04-17 18:34:18 +04:00
Andrew Dolgov 6322ac79a0 remove $link 2013-04-17 16:48:41 +04:00
Andrew Dolgov 5aaae215e8 api: add score to getHeadlines/getArticle 2013-04-13 10:59:26 +04:00
Andrew Dolgov 79f9bef767 add support for plugins adding API methods 2013-04-12 08:18:43 +04:00
Andrew Dolgov 8096a20a95 Revert "Add new API method: `getFeedStats'"
This reverts commit 0192ffe5a5.
2013-04-12 07:53:14 +04:00
Andrew Dolgov b91a1e4deb bump api level 2013-04-11 20:06:07 +04:00
Pedro Silva 0192ffe5a5 Add new API method: `getFeedStats'
`getFeedStats' calls the new static function `api_get_feed_stats' to
return an array of real feeds of the following form:

    [{
       "first" : 1127,
       "unread" : 873,
       "last" : 15460,
       "title" : "Some feed",
       "id" : 31,
       "total" : 1513
    }]

where "first", "last", "total" are the first, last and total number of
articles in the feed.

This adds the ability to nntp-oriented clients to efficiently retrieve
an "active file" without having to resort to `getHeadlines(limit=-1)'
2013-04-11 16:25:37 +01:00
Andrew Dolgov 0db61af841 api: add article api hook to getArticle, change parameters passed 2013-04-02 23:02:52 +04:00
Andrew Dolgov ffd0786416 api: add a few logical spaces 2013-04-02 09:34:32 +04:00
j0nson 0bbd14146a adds sort order to API
Allows sort by feed date or by reverse order
api Params:
order_by (string = feed_dates, date_reverse)
2013-04-01 22:21:36 -03:00
Andrew Dolgov dc5a8a21a8 api, also hide uncategorized if empty 2013-04-01 14:08:17 +04:00
Andrew Dolgov c0a08063d6 api: do not return Labels category when there are no labels (closes #651) 2013-04-01 14:04:56 +04:00
Andrew Dolgov 583dbc5695 api: add author to getHeadlines 2013-03-30 18:24:32 +04:00
Andrew Dolgov b3575bd8e4 fix include_empty to use bool type 2013-03-28 15:31:39 +04:00
Andrew Dolgov 66ca7c3097 api: add include_empty to getCategories/getFeedTree 2013-03-28 15:28:37 +04:00
Andrew Dolgov 0bb5833beb api: add getFeedTree 2013-03-28 11:04:27 +04:00
Andrew Dolgov 79bb55892b api/login: add session_destroy 2013-03-28 08:46:20 +04:00
Andrew Dolgov 5160620c8a only autostart session if login cookie exists 2013-03-28 08:06:21 +04:00
Andrew Dolgov c1f6e5f865 api: fix updateFeed crashing (closes #616) 2013-03-25 16:20:45 +04:00
Andrew Dolgov 7be3fcd5e1 api, getCategories: properly return information for categories with 0 feeds, but children categories present 2013-03-24 14:46:45 +04:00
Andrew Dolgov efc6553da4 api: implement subscribeToFeed/unsubscribeFeed (closes #623) 2013-03-24 14:28:43 +04:00
Andrew Dolgov 3972bf5981 db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close() 2013-03-22 09:14:55 +04:00
Andrew Dolgov b6604c9613 add HOOK_RENDER_ARTICLE_API (closes #608) 2013-03-21 18:19:23 +04:00
Joschasa ca5d9be49f Remove deprecated $match_on 2013-03-21 00:36:30 +01:00
Andrew Dolgov bfd61d3f85 rework STRIP_IMAGES to remove embedding; add per-feed control over embedded images (bump schema) 2013-03-19 22:41:10 +04:00
Andrew Dolgov 9955a13462 properly allow false parameters passed through to API calls (refs #576) 2013-03-17 21:04:16 +04:00
Andrew Dolgov 7873d58822 implement proper last_marked/last_published feeds for proper sorting of
published and marked virtual feeds, remove sorting by last_read
workaround
api: add pubsubhubbub ping when article is being set published
bump schema
2013-03-17 15:38:21 +04:00
Andrew Dolgov ef3da31cd9 api: force returned timestamps to integer 2013-03-15 09:40:31 +04:00
Andrew Dolgov d49dfa381e api: block real categories with 0 feeds to appear in getCategories 2013-02-10 11:40:03 +04:00
Andrew Dolgov 5b55e9e25c js: simplify counter updating, remove some unused stuff 2013-02-01 13:09:43 +04:00
Andrew Dolgov 5083271956 move some more functions out of functions.php; fix opml.php failing due to redeclared autoload 2013-01-22 22:36:16 +04:00
Andrew Dolgov 04f60eb729 move api_get_* functions to classes/api 2013-01-22 22:15:56 +04:00
Andrew Dolgov 12f317822d api: use text/json content-type 2013-01-12 12:52:35 +04:00
Andrew Dolgov 87764a50cf implement ttrss_feeds.cache_content 2012-11-23 13:22:34 +04:00
Andrew Dolgov 1b4d1a6b44 sharepopup: implement assigning labels while sharing 2012-10-31 12:55:24 +04:00
Andrew Dolgov db9e00e339 api: sanitize article content 2012-10-29 16:01:41 +04:00
Andrew Dolgov 5ba4ebc65e api: return api_level with login 2012-09-29 11:59:50 +04:00
Andrew Dolgov 839b065860 api: remove unneeded stuff, add special header for android httpurlconnection which seems to be retarded 2012-09-19 15:54:55 +04:00
Andrew Dolgov 4864633612 API: support nested categories 2012-09-18 10:03:26 +04:00
Andrew Dolgov 8361e72478 implement sharing of arbitrary stuff using bookmarklet and API call, bump API version 2012-09-09 16:05:59 +04:00
Andrew Dolgov b11e9943d8 API: add order_id to getCategories; add feed_title to getHeadlines; bump api level to 3 2012-03-08 19:01:23 +04:00
Andrew Dolgov 1a740cf68e api: limit getHeadlines output to 60 headlines 2012-02-06 14:32:30 +04:00
Andrew Dolgov 3e4af5b0b3 api: add search parameters to getHeadlines (bump API level) 2012-01-19 14:07:59 +04:00
Andrew Dolgov 396bfdf928 api: add setArticleLabel 2011-12-17 11:22:50 +04:00
Andrew Dolgov ea1c2903ee api: add getLabels 2011-12-17 11:06:55 +04:00
Andrew Dolgov 8aa3becccc api: fix browsing uncategorized 2011-12-15 13:13:46 +04:00
Andrew Dolgov a3b5394aaf api: fix API_LEVEL 2011-12-13 16:51:49 +04:00
Andrew Dolgov de8260cb10 move API to classes/ 2011-12-13 15:40:42 +04:00