Commit Graph

155 Commits (6b006a18e7efef814fa7a59102c85299acb0a0a4)

Author SHA1 Message Date
Andrew Dolgov 7c9b5a3fe4 move label stuff to Labels class
fix some unresolved functions
8 years ago
Andrew Dolgov 4a0da0e5bf move get_article_labels to Article 8 years ago
Andrew Dolgov 2ed0d6c433 move counter cache to a separate class
fix references to get_article_tags
8 years ago
Andrew Dolgov aeb1abedb2 move a bunch of functions into Feeds/Article namespaces
+       static function catchupArticlesById($ids, $cmode, $owner_uid = false) {
+       static function getLastArticleId() {
+       static function queryFeedHeadlines($params) {
+       static function getParentCategories($cat, $owner_uid) {
+       static function getChildCategories($cat, $owner_uid) {

move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
8 years ago
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) {
8 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) {
8 years ago
Andrew Dolgov 7e5f8d9fb3 move the following to Article:
+       static function format_article_enclosures($id, $always_display_enclosures,
+       static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+       static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+       static function format_tags_string($tags) {
+       static function format_article_labels($labels) {
+       static function format_article_note($id, $note, $allow_edit = true) {
+       static function get_article_enclosures($id) {
8 years ago
Andrew Dolgov 3517d363d3 add api test for labels, api: fix setArticleLabel assign not handled correctly 8 years ago
Andrew Dolgov 891df34637 add some basic API unit tests 8 years ago
Andrew Dolgov ea79a0e033 remove some redundant php closing tags 8 years ago
Andrew Dolgov 7b55001eee fix various issues reported by static analysis
update gitlab-ci config
8 years ago
Andrew Dolgov cb3f877303 reference pubsubhubbub classes using their namespace 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 1818614949 api: fix article guid not being passed to render article hook 8 years ago
Andrew Dolgov 29c92d7b08 prevent frontend updating of feeds on view if open_basedir is set to prevent plugins potentially not working correctly (i.e. if backend system has open_basedir disabled) 9 years ago
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 9 years ago
Andrew Dolgov ec57104d6e apparently it's a bad idea to do is_resource() on a mysqli result 9 years ago
Andrew Dolgov 96ac72bc12 api: getHeadlines: cast feed_it to int if needed 9 years ago
Andrew Dolgov b0ce3d33c3 api: initialize headlines header 9 years ago
Andrew Dolgov 491f69c7e3 bump api level 9 years ago
Andrew Dolgov 5c784e701c api: add top id stuff, optionally return header w/ status information in getHeadlines (currently only top_id_changed) 9 years ago
Andrew Dolgov 3444020100 report top id changed in headlines buffer 9 years ago
Andrew Dolgov f5a0fb8b64 queryFeedHeadlines: move to array-based arguments, optionally check if first element changed when paginating 9 years ago
Andrew Dolgov 9090b874ab simplify search, remove search_mode as useless
remove dialog to select by tags, simplify browsing by tag query
9 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
Andrew Dolgov ffd0786416 api: add a few logical spaces 12 years ago
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)
12 years ago
Andrew Dolgov dc5a8a21a8 api, also hide uncategorized if empty 12 years ago
Andrew Dolgov c0a08063d6 api: do not return Labels category when there are no labels (closes #651) 12 years ago
Andrew Dolgov 583dbc5695 api: add author to getHeadlines 12 years ago
Andrew Dolgov b3575bd8e4 fix include_empty to use bool type 12 years ago
Andrew Dolgov 66ca7c3097 api: add include_empty to getCategories/getFeedTree 12 years ago
Andrew Dolgov 0bb5833beb api: add getFeedTree 12 years ago
Andrew Dolgov 79bb55892b api/login: add session_destroy 12 years ago
Andrew Dolgov 5160620c8a only autostart session if login cookie exists 12 years ago
Andrew Dolgov c1f6e5f865 api: fix updateFeed crashing (closes #616) 12 years ago
Andrew Dolgov 7be3fcd5e1 api, getCategories: properly return information for categories with 0 feeds, but children categories present 12 years ago
Andrew Dolgov efc6553da4 api: implement subscribeToFeed/unsubscribeFeed (closes #623) 12 years ago
Andrew Dolgov 3972bf5981 db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close() 12 years ago
Andrew Dolgov b6604c9613 add HOOK_RENDER_ARTICLE_API (closes #608) 12 years ago
Joschasa ca5d9be49f Remove deprecated $match_on 12 years ago
Andrew Dolgov bfd61d3f85 rework STRIP_IMAGES to remove embedding; add per-feed control over embedded images (bump schema) 12 years ago
Andrew Dolgov 9955a13462 properly allow false parameters passed through to API calls (refs #576) 12 years ago
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
12 years ago
Andrew Dolgov ef3da31cd9 api: force returned timestamps to integer 12 years ago
Andrew Dolgov d49dfa381e api: block real categories with 0 feeds to appear in getCategories 12 years ago
Andrew Dolgov 5b55e9e25c js: simplify counter updating, remove some unused stuff 12 years ago
Andrew Dolgov 5083271956 move some more functions out of functions.php; fix opml.php failing due to redeclared autoload 12 years ago
Andrew Dolgov 04f60eb729 move api_get_* functions to classes/api 12 years ago
Andrew Dolgov 12f317822d api: use text/json content-type 12 years ago
Andrew Dolgov 87764a50cf implement ttrss_feeds.cache_content 12 years ago
Andrew Dolgov 1b4d1a6b44 sharepopup: implement assigning labels while sharing 12 years ago
Andrew Dolgov db9e00e339 api: sanitize article content 12 years ago
Andrew Dolgov 5ba4ebc65e api: return api_level with login 12 years ago
Andrew Dolgov 839b065860 api: remove unneeded stuff, add special header for android httpurlconnection which seems to be retarded 12 years ago
Andrew Dolgov 4864633612 API: support nested categories 12 years ago
Andrew Dolgov 8361e72478 implement sharing of arbitrary stuff using bookmarklet and API call, bump API version 12 years ago
Andrew Dolgov b11e9943d8 API: add order_id to getCategories; add feed_title to getHeadlines; bump api level to 3 13 years ago
Andrew Dolgov 1a740cf68e api: limit getHeadlines output to 60 headlines 13 years ago
Andrew Dolgov 3e4af5b0b3 api: add search parameters to getHeadlines (bump API level) 13 years ago