summaryrefslogtreecommitdiff
path: root/classes/api.php
AgeCommit message (Collapse)Author
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-24Revert "api: escape newlines in headline content HTML object"Andrew Dolgov
This reverts commit ed43a7336925c1a97cad8768afa52c5c46f299bb.
2023-10-24api: escape newlines in headline content HTML objectAndrew Dolgov
2023-05-21Forgot delimiterdefkev
2023-05-21Update APIdefkev
Add site_url property for 9e169dc3aa7c7e30c11d7d3d1bbc4bc66fa39760
2023-03-31isLoggedIn adds a message to the system log when it returns false, fix for ↵Rodney Stromlund
php8+, removed empty test for bool conversion.
2023-03-29isLoggedIn adds a message to the system log when it returns false, fix for php8+Rodney Stromlund
2023-03-05Replace special feed and category numbers with constants.wn_
2023-03-05API:Andrew Dolgov
- sharedToPublished: add optional sanitize parameter (defaults to true) if disabled, allows inserting HTML into shared article content; - clean() already invokes strip_tags() so it's pointless to do both;
2023-02-23API: add getFeedIcon endpoint, bump versionAndrew Dolgov
2022-09-29make phpstan happyAndrew Dolgov
2022-09-29Merge branch 'master' into masterShemi
2022-09-29Added support for api plugins virtual feedsShemi
2022-09-28Fix PHP8 strtime warning if argument is nulljmechnich
2022-08-31Fix PHP8 empty param problempowerivq
2022-08-12Replace use of 'array_merge' with the spread operator and 'array_push' in ↵wn_
various places. This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
2022-02-20fix Feeds::_get_counters() used improperly as a replacement forAndrew Dolgov
getFeedUnread()
2022-02-20 * Feeds::_get_counters - fix retrieving unread for tagsAndrew Dolgov
* mark several symbols as @deprecated properly * replace uses of (deprecated) getFeedUnread() with Feeds::_get_counters()
2021-12-01api, getHeadlines: properly accept feed_id 0Andrew Dolgov
2021-11-29remove mixed type hints from function arguments because we still support PHP7Andrew Dolgov
2021-11-29 * fix showing headlines for tag-based virtual feedsAndrew Dolgov
* API: allow retrieving headlines for tag-based feeds (bump api level to 18)
2021-11-23api: don't try to pass null login/password when subscribing to feedAndrew Dolgov
2021-11-19Merge pull request 'Consistently handle param string to bool conversions in ↵fox
handlers.' (#53) from wn/tt-rss:feature/consistent-param-to-bool into master Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/53
2021-11-18Fix Undefined array key "order_by"Philip Klempin
2021-11-18Fix 'view_mode' default in API#getHeadlines()wn_
2021-11-18Switch from null to false as the default for missing bool params.wn_
2021-11-18Consistently handle param string to bool conversions in handlers.wn_
2021-11-18API/catchupFeed: properly pass is_cat as boolAndrew Dolgov
2021-11-18API: fix unexpected null being passed to _order_to_override_queryAndrew Dolgov
2021-11-18API: force methods to return bool to make wrap() mistakes easier to trackAndrew Dolgov
2021-11-18api: a few more returns in loginAndrew Dolgov
2021-11-18api: don't return errors on login successAndrew Dolgov
2021-11-13fix phpstan warnings in classes/api.phpAndrew Dolgov
2021-11-13Address PHPStan warnings in 'classes/api.php'.wn_
2021-11-13Typing IHandler methods, typing Handler_Public, fix type of $feed_id (might ↵wn_
be tag).
2021-11-12Address PHPStan warnings in 'classes/feeds.php'.wn_
Also some minor related tweaks in other classes.
2021-11-11Address PHPStan warnings in 'classes/sanitizer.php'.wn_
This also includes some minor tweaks to things that call 'Sanitizer::sanitize()'.
2021-10-22minor phpstan tweaksAndrew Dolgov
2021-05-18API: bump api level to 17Andrew Dolgov
2021-05-18provide base configuration object in login response to skip on initial getConfigAndrew Dolgov
2021-05-18API: return custom sort types in getConfigAndrew Dolgov
2021-03-20Switch most of API to ORMwn_
'updateArticle' was left as-is due to Idiorm not supporting efficient multi-row updating (i.e. it would do an UPDATE per row).
2021-03-12api: don't try to pass null site_url to Article::_get_image()Andrew Dolgov
2021-03-08api: add support for setting score (bump api level to 16)Andrew Dolgov
2021-03-07nsfw: support API clientsAndrew Dolgov
2021-03-02changed skip and limit to coalesce to 0 instead of ""sam302psu
2021-03-02Fix undefined array key warnings when using iOS appsam302psu
Use coalesce operator and empty string/default value to fix undefined array key warnings filling up logs when using iOS app to access api.
2021-03-01move version-related stuff to Config; fix conditional feed requestsAndrew Dolgov
2021-02-28speed up plugin updating a bit, fix some phpstan warningsAndrew Dolgov
2021-02-25api: remove base64 encoded passwords (wtf), log all authentication failures ↵Andrew Dolgov
in userhelper