summaryrefslogtreecommitdiff
path: root/classes/api.php
AgeCommit message (Collapse)Author
2018-08-29API: getHeadlines: return feed_id for Archived entries as 0 instead of null ↵Andrew Dolgov
to be consistent with requested feed_id
2018-08-29API: oops, forgot that headlines could be requested for a tagAndrew Dolgov
2018-08-29API: getHeadlines: check for feed_id correctlyAndrew Dolgov
2018-08-20split transparent rewriting of locally cached media URLs to execute after ↵Andrew Dolgov
both sanitize() and HOOK_RENDER_ARTICLE to allow plugins work on original source URLs consistently
2017-12-03force strip_tags() on all user input unless explicitly allowedAndrew Dolgov
2017-12-03queryfeedheadlines: there's no need to quote order_by/override_orderAndrew Dolgov
else: feedicon cache busting etc
2017-12-03api: do not use sql_bool_to_bool()Andrew Dolgov
2017-12-02Fixed PDO query to prepared statement in API::updateArticles.JustAMacUser
2017-12-01API: small fixAndrew Dolgov
2017-12-01api: switch to PDOAndrew Dolgov
2017-10-15api, setArticleLabel: allow JSON booleansAndrew Dolgov
2017-10-09makes 'order by title' to sort by title and by ascending dateGilles Grandou
* this allows to chronologically browse all articles with the same title.
2017-06-26pref/feeds: start user category ordering from 1Andrew Dolgov
api, getFeeds: send subcategory order_id
2017-05-16remove pubsubhubbub: deadAndrew Dolgov
2017-05-05wrap rssfuncs into rssutils classAndrew Dolgov
2017-05-05move counter stuff to a separate classAndrew Dolgov
2017-05-04move label stuff to Labels classAndrew Dolgov
fix some unresolved functions
2017-05-04move get_article_labels to ArticleAndrew Dolgov
2017-05-04move counter cache to a separate classAndrew Dolgov
fix references to get_article_tags
2017-05-04move a bunch of functions into Feeds/Article namespacesAndrew Dolgov
+ 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
2017-05-04move to Article:Andrew Dolgov
+ 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) {
2017-05-04move the following to Feeds:Andrew Dolgov
+ 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) {
2017-05-04move the following to Article:Andrew Dolgov
+ 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) {
2017-04-27add api test for labels, api: fix setArticleLabel assign not handled correctlyAndrew Dolgov
2017-04-27add some basic API unit testsAndrew Dolgov
2017-04-26remove some redundant php closing tagsAndrew Dolgov
2017-04-26fix various issues reported by static analysisAndrew Dolgov
update gitlab-ci config
2017-01-23reference pubsubhubbub classes using their namespaceAndrew Dolgov
2016-08-27Add feed_id to subscribeToFeed response when the code is 1 or 0.John Brayton
Set the API_LEVEL to 14.
2016-07-20api: fix article guid not being passed to render article hookAndrew Dolgov
2016-01-23prevent frontend updating of feeds on view if open_basedir is set to prevent ↵Andrew Dolgov
plugins potentially not working correctly (i.e. if backend system has open_basedir disabled)
2015-11-23Add optional (default: true), boolean "sanitize" parameter to ↵JustAMacUser
API::getArticle() method.
2015-11-21queryFeedHeadlines: don't check first_id when sorting by oldest firstAndrew Dolgov
2015-09-15queryfeedheadlines: remove disable_offsets hackAndrew Dolgov
2015-08-05experimental: if using adaptive/unread mode w/ auto catchup don't calculate ↵Andrew Dolgov
offsets because we're only interested in top $limit headlines anyway
2015-07-12fixes for first_id stuffAndrew Dolgov
2015-07-12apparently it's a bad idea to do is_resource() on a mysqli resultAndrew Dolgov
2015-07-12api: getHeadlines: cast feed_it to int if neededAndrew Dolgov
2015-07-12api: initialize headlines headerAndrew Dolgov
2015-07-12bump api levelAndrew Dolgov
2015-07-12api: add top id stuff, optionally return header w/ status information in ↵Andrew Dolgov
getHeadlines (currently only top_id_changed)
2015-07-12report top id changed in headlines bufferAndrew Dolgov
2015-07-12queryFeedHeadlines: move to array-based arguments, optionally check if first ↵Andrew Dolgov
element changed when paginating
2015-07-07simplify search, remove search_mode as uselessAndrew Dolgov
remove dialog to select by tags, simplify browsing by tag query
2014-11-29api: getHeadlines: add configurable excerpt_length (bump api version)Andrew Dolgov
2014-11-25api: allow requesting headlines as if client supports iframe sandboxingAndrew Dolgov
2014-10-27api: handle uncached labels the way main headlines function does itAndrew Dolgov
2014-10-16add force_update to api getHeadlines; bump api version to 9Andrew Dolgov
2014-01-24Added syslog reporting for failed API login attempts.Dave Zaikos
2014-01-24api: fix getFeeds returning some ids in string formatAndrew Dolgov