summaryrefslogtreecommitdiff
path: root/classes/api.php
AgeCommit message (Collapse)Author
2021-02-14move logout_user() to UserHelperAndrew Dolgov
2021-02-12Add defaults to api.php variablesPhilip Klempin
2021-02-11add UserHelper::find_user_by_login() and rewrite some user checks to invoke ↵Andrew Dolgov
it instead of going through PDO
2021-02-11authentication: make logins case-insensitive (force lowercase)Andrew Dolgov
2021-02-09api: one more php8 warningAndrew Dolgov
2021-02-09api: pass hook object payload by referenceAndrew Dolgov
2021-02-09api: fix some php8 warnings (4)Andrew Dolgov
2021-02-09api: fix some php8 warnings (3)Andrew Dolgov
2021-02-09api: fix some php8 warnings (2)Andrew Dolgov
2021-02-09api: fix some php8 warningsAndrew Dolgov
2021-02-08remove PHPMD.UnusedFormalParameterAndrew Dolgov
2021-02-08api: rewrite a few more hooksAndrew Dolgov
2021-02-06fix even more warnings reported by phpstanAndrew Dolgov
2021-02-05initial WIP for php8; bump php version requirement to 7.0Andrew Dolgov
2021-01-05use X-Real-IP headers if possible while authenticatingAndrew Dolgov
2020-12-07get_article_image: return basic kind to which flavor image belongsAndrew Dolgov
2020-10-03api: catchupfeed: allow passing 'mode' (optional), bump api versionAndrew Dolgov
2020-09-22use self:: in some places to invoke static methods from the same classAndrew Dolgov
2020-09-22remove a lot of stuff from global context (functions.php), add a few helper ↵Andrew Dolgov
classes instead
2020-08-13move order_by to SQL override logic into a separate functionAndrew Dolgov
2020-08-11instead of taking batch timestamp and score (?) into account, make oldest ↵Andrew Dolgov
first sorting work consistently with newest first - i.e. rely on feed-provided timestamp
2020-08-01more int/string type mismatches on getCategoriesPaco Esteban
2020-07-31make sure all ints are casted (to int) on getCategoriesPaco Esteban
2020-01-24scrap counter cache system; rework counters to sum() booleans insteadAndrew Dolgov
2020-01-05API/getVersion: don't try to use removed VERSION constantAndrew Dolgov
2019-11-01add placeholder authentication via app passwords if service is passedAndrew Dolgov
forbid logins via regular passwords for services remove AUTH_DISABLE_OTP
2019-08-15API/getHeadlines: fix order of returned feeds to be consistent with main UIAndrew Dolgov
2019-08-14Article::get_article_image() - also return stream URI if possibleAndrew Dolgov
2019-08-14* move get_article_image to Article; implement better og:image detection ↵Andrew Dolgov
(similar to android app) * pass article image to API clients in headlines row object
2019-08-13move rewrite_cached_urls to DiskCache::rewriteUrls()Andrew Dolgov
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