Commit Graph

176 Commits (2ed5a79e64f55cda11d99994af06dedbb9d6b823)

Author SHA1 Message Date
wn_ 711e8e70e0 Switch most of API to ORM
'updateArticle' was left as-is due to Idiorm not supporting efficient multi-row updating (i.e. it would do an UPDATE per row).
4 years ago
Andrew Dolgov fcce1c443e api: don't try to pass null site_url to Article::_get_image() 4 years ago
Andrew Dolgov ef03f8188c api: add support for setting score (bump api level to 16) 4 years ago
Andrew Dolgov ac6a59914b nsfw: support API clients 4 years ago
sam302psu 57fdf032e9 changed skip and limit to coalesce to 0 instead of "" 4 years ago
sam302psu 8f8142df29 Fix undefined array key warnings when using iOS app
Use coalesce operator and empty string/default value to fix undefined array key warnings filling up logs when using iOS app to access api.
4 years ago
Andrew Dolgov 320503dd39 move version-related stuff to Config; fix conditional feed requests 4 years ago
Andrew Dolgov b05d4e3d9f speed up plugin updating a bit, fix some phpstan warnings 4 years ago
Andrew Dolgov 59c14e9c00 api: remove base64 encoded passwords (wtf), log all authentication failures in userhelper 4 years ago
Andrew Dolgov efd196839a stop caching schema version entirely, fix some session_start() related warnings 4 years ago
Andrew Dolgov c96172fa04 use constants in get_pref()/set_pref() 4 years ago
Andrew Dolgov 553548b689 request label counters conditionally 4 years ago
Andrew Dolgov 8d2e3c2528 drop errors.php and simplify error handling 4 years ago
Andrew Dolgov e4107ac952 wip: initial for config object 4 years ago
Andrew Dolgov be4e7b1340 fix several issues reported by phpstan 4 years ago
Andrew Dolgov 22fe9b54d2 feed editor: use client dialog 4 years ago
Andrew Dolgov d1c83fad14 api: unify naming 4 years ago
Andrew Dolgov 166f2d4666 diskcache: unify naming 4 years ago
Andrew Dolgov 5704deb460 counters: unify naming 4 years ago
Andrew Dolgov 257efb43c6 article: unify naming 4 years ago
Andrew Dolgov 020f062a76 feeds: unify naming 4 years ago
Andrew Dolgov 82adb01307 render enclosures on the client 4 years ago
Andrew Dolgov 868b9b476e api: rewrite article urls at the very end to prevent plugins which expect source URLs from breaking 4 years ago
Andrew Dolgov 52a86c5e38 Revert "api: get flavor image from plugin-processed content"
This reverts commit a4604e892c.
4 years ago
Andrew Dolgov a4604e892c api: get flavor image from plugin-processed content 4 years ago
Andrew Dolgov a8cc43a0ff move logout_user() to UserHelper 4 years ago
Philip Klempin ace19c0790 Add defaults to api.php variables 4 years ago
Andrew Dolgov 09e9f34bb4 add UserHelper::find_user_by_login() and rewrite some user checks to invoke it instead of going through PDO 4 years ago
Andrew Dolgov 7af8744c85 authentication: make logins case-insensitive (force lowercase) 4 years ago
Andrew Dolgov 2f8efab275 api: one more php8 warning 4 years ago
Andrew Dolgov 6a25bc53ef api: pass hook object payload by reference 4 years ago
Andrew Dolgov 3655e7aaf1 api: fix some php8 warnings (4) 4 years ago
Andrew Dolgov aba028a375 api: fix some php8 warnings (3) 4 years ago
Andrew Dolgov 0871a51cb4 api: fix some php8 warnings (2) 4 years ago
Andrew Dolgov 63a90d26f3 api: fix some php8 warnings 4 years ago
Andrew Dolgov 7874f6ac58 remove PHPMD.UnusedFormalParameter 4 years ago
Andrew Dolgov fa2ebcd0a2 api: rewrite a few more hooks 4 years ago
Andrew Dolgov 41fc03287e fix even more warnings reported by phpstan 4 years ago
Andrew Dolgov 403dca154c initial WIP for php8; bump php version requirement to 7.0 4 years ago
Andrew Dolgov a8302fb253 use X-Real-IP headers if possible while authenticating 4 years ago
Andrew Dolgov e40b79ab33 get_article_image: return basic kind to which flavor image belongs 4 years ago
Andrew Dolgov 935f163919 api: catchupfeed: allow passing 'mode' (optional), bump api version 4 years ago
Andrew Dolgov 6811d0bde2 use self:: in some places to invoke static methods from the same class 4 years ago
Andrew Dolgov 74568df4ff remove a lot of stuff from global context (functions.php), add a few helper classes instead 4 years ago
Andrew Dolgov dfa65e9374 move order_by to SQL override logic into a separate function 4 years ago
Andrew Dolgov 48be005774 instead of taking batch timestamp and score (?) into account, make oldest first sorting work consistently with newest first - i.e. rely on feed-provided timestamp 4 years ago
Paco Esteban c4ee0e25a1 more int/string type mismatches on getCategories 4 years ago
Paco Esteban 3da618e0ea make sure all ints are casted (to int) on getCategories 4 years ago
Andrew Dolgov 6080cca9ca scrap counter cache system; rework counters to sum() booleans instead 5 years ago
Andrew Dolgov b1c5ebdace API/getVersion: don't try to use removed VERSION constant 5 years ago