Commit Graph

90 Commits (a93047802c459f83c2be9fd6111407a6f7a7aa85)

Author SHA1 Message Date
JustAMacUser 73c77ab0a5 Add optional (default: true), boolean "sanitize" parameter to API::getArticle() method. 9 years ago
Andrew Dolgov 19e47ad60b queryFeedHeadlines: don't check first_id when sorting by oldest first 9 years ago
Andrew Dolgov 94b8ce6cec queryfeedheadlines: remove disable_offsets hack 9 years ago
Andrew Dolgov 0bd172cd6a experimental: if using adaptive/unread mode w/ auto catchup don't calculate offsets because we're only interested in top $limit headlines anyway 9 years ago
Andrew Dolgov 48fefe2f6b fixes for first_id stuff 10 years ago
Andrew Dolgov ec57104d6e apparently it's a bad idea to do is_resource() on a mysqli result 10 years ago
Andrew Dolgov 96ac72bc12 api: getHeadlines: cast feed_it to int if needed 10 years ago
Andrew Dolgov b0ce3d33c3 api: initialize headlines header 10 years ago
Andrew Dolgov 491f69c7e3 bump api level 10 years ago
Andrew Dolgov 5c784e701c api: add top id stuff, optionally return header w/ status information in getHeadlines (currently only top_id_changed) 10 years ago
Andrew Dolgov 3444020100 report top id changed in headlines buffer 10 years ago
Andrew Dolgov f5a0fb8b64 queryFeedHeadlines: move to array-based arguments, optionally check if first element changed when paginating 10 years ago
Andrew Dolgov 9090b874ab simplify search, remove search_mode as useless
remove dialog to select by tags, simplify browsing by tag query
10 years ago
Andrew Dolgov 3194a70a03 api: getHeadlines: add configurable excerpt_length (bump api version) 10 years ago
Andrew Dolgov 9997b38e3e api: allow requesting headlines as if client supports iframe sandboxing 10 years ago
Andrew Dolgov f71a669b7d api: handle uncached labels the way main headlines function does it 10 years ago
Andrew Dolgov 4baa1afa43 add force_update to api getHeadlines; bump api version to 9 10 years ago
Dave Zaikos a2108ee96d Added syslog reporting for failed API login attempts. 11 years ago
Andrew Dolgov 1d3cbe31c3 api: fix getFeeds returning some ids in string format 11 years ago
Andrew Dolgov 429ff9afb0 api: add article language to getArticle/getHeadlines 11 years ago
Andrew Dolgov bf5bcb8e27 queryFeedHeadlines: remove obsolete content_preview 11 years ago
Andrew Dolgov 25237aea43 api: fix getLabels never returning existing checked labels correctly 11 years ago
Andrew Dolgov 21bb3c064a api: add note support for getHeadlines/getArticle (bump api version) 11 years ago
Andrew Dolgov 273c33e512 api: allow sorting headlines by title 11 years ago
Andrew Dolgov 788cf0a1b1 api: fix setArticleLabel expecting wrong format for label_id 11 years ago
Matt Haley 64595782ff API should return excerpt when asked 11 years ago
Andrew Dolgov d208abc933 api: pass article id to sanitize 11 years ago
Andrew Dolgov 891d033c97 api: getLabels: return converted label ids 11 years ago
Andrew Dolgov c052e25a8b remove unused cached_content 12 years ago
Andrew Dolgov 4f2a2ca945 api: fix typo 12 years ago
justauser 3b96b0ed7c Merge branch 'master' into hookhead
Conflicts:
	include/functions.php

changes for conflicts with master
12 years ago
Andrew Dolgov e9687f67e0 date_reverse view mode: take scoring into account 12 years ago
justauser 6763143835 Changed the implementation of HOOK_QUERY_HEADLINES to deal with issue Fox raised 12 years ago
justauser 891e36f57e Changes to add a new hook: HOOK_QUERY_HEADLINES. An example is provided. 12 years ago
Andrew Dolgov 6f81395d73 api, getArticle: check for article_id being present 12 years ago
Andrew Dolgov bd3c672320 api, add sanitize to getHeadlines (defaults to true) 12 years ago
Rasmus Lerdorf 6f7798b643 Fixing bugs found by static analysis 12 years ago
Andrew Dolgov 38a8c22b9e getHeadlines: return feed title for non-virtual feeds 12 years ago
Andrew Dolgov 2c8eed5395 api: add feed_title to getArticle 12 years ago
Andrew Dolgov 6421b42963 api/getHeadlines: increase limit to 200 12 years ago
Andrew Dolgov 1ffe3391f9 make pluginhost a singleton 12 years ago
Andrew Dolgov d9c85e0f11 classes: use OO DB interface 12 years ago
Andrew Dolgov a42c55f02b fix blank character after opening bracket in function calls 12 years ago
Andrew Dolgov 6322ac79a0 remove $link 12 years ago
Andrew Dolgov 5aaae215e8 api: add score to getHeadlines/getArticle 12 years ago
Andrew Dolgov 79f9bef767 add support for plugins adding API methods 12 years ago
Andrew Dolgov 8096a20a95 Revert "Add new API method: `getFeedStats'"
This reverts commit 0192ffe5a5.
12 years ago
Andrew Dolgov b91a1e4deb bump api level 12 years ago
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)'
12 years ago
Andrew Dolgov 0db61af841 api: add article api hook to getArticle, change parameters passed 12 years ago