Andrew Dolgov
68b0380118
add placeholder authentication via app passwords if service is passed
...
forbid logins via regular passwords for services
remove AUTH_DISABLE_OTP
5 years ago
Andrew Dolgov
e46ed1ff97
API/getHeadlines: fix order of returned feeds to be consistent with main UI
5 years ago
Andrew Dolgov
d4df57e1a4
Article::get_article_image() - also return stream URI if possible
5 years ago
Andrew Dolgov
68e2b05f65
* move get_article_image to Article; implement better og:image detection (similar to android app)
...
* pass article image to API clients in headlines row object
5 years ago
Andrew Dolgov
133c2b482b
move rewrite_cached_urls to DiskCache::rewriteUrls()
5 years ago
Andrew Dolgov
2ab49fec9a
API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be consistent with requested feed_id
6 years ago
Andrew Dolgov
a291a0c00f
API: oops, forgot that headlines could be requested for a tag
6 years ago
Andrew Dolgov
70e180e887
API: getHeadlines: check for feed_id correctly
6 years ago
Andrew Dolgov
2aef804f4b
split transparent rewriting of locally cached media URLs to execute after both sanitize() and HOOK_RENDER_ARTICLE to allow plugins work on original source URLs consistently
6 years ago
Andrew Dolgov
e6532439d6
force strip_tags() on all user input unless explicitly allowed
7 years ago
Andrew Dolgov
fa3bcfa379
queryfeedheadlines: there's no need to quote order_by/override_order
...
else: feedicon cache busting etc
7 years ago
Andrew Dolgov
4dc3f7e779
api: do not use sql_bool_to_bool()
7 years ago
JustAMacUser
1a05210933
Fixed PDO query to prepared statement in API::updateArticles.
7 years ago
Andrew Dolgov
9652fa6b66
API: small fix
7 years ago
Andrew Dolgov
3467e1fd7c
api: switch to PDO
7 years ago
Andrew Dolgov
91f49ba17d
api, setArticleLabel: allow JSON booleans
7 years ago
Gilles Grandou
81d96c0dee
makes 'order by title' to sort by title and by ascending date
...
* this allows to chronologically browse all articles with the
same title.
7 years ago
Andrew Dolgov
c053b97697
pref/feeds: start user category ordering from 1
...
api, getFeeds: send subcategory order_id
8 years ago
Andrew Dolgov
5b6ea1ef91
remove pubsubhubbub: dead
8 years ago
Andrew Dolgov
e6c886bf66
wrap rssfuncs into rssutils class
8 years ago
Andrew Dolgov
65af3b2cbb
move counter stuff to a separate class
8 years ago
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
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