Andrew Dolgov
|
9f734c9050
|
minor phpstan tweaks
|
2021-10-22 13:49:08 +03:00 |
Andrew Dolgov
|
295fc1f88a
|
API: bump api level to 17
|
2021-05-18 16:55:00 +03:00 |
Andrew Dolgov
|
2adf364c2c
|
provide base configuration object in login response to skip on initial getConfig
|
2021-05-18 16:54:33 +03:00 |
Andrew Dolgov
|
57cd8acfc9
|
API: return custom sort types in getConfig
|
2021-05-18 16:36:56 +03:00 |
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).
|
2021-03-20 14:00:53 +00:00 |
Andrew Dolgov
|
fcce1c443e
|
api: don't try to pass null site_url to Article::_get_image()
|
2021-03-12 17:15:45 +03:00 |
Andrew Dolgov
|
ef03f8188c
|
api: add support for setting score (bump api level to 16)
|
2021-03-08 13:45:15 +03:00 |
Andrew Dolgov
|
ac6a59914b
|
nsfw: support API clients
|
2021-03-07 13:22:38 +03:00 |
sam302psu
|
57fdf032e9
|
changed skip and limit to coalesce to 0 instead of ""
|
2021-03-02 18:44:13 +03:00 |
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.
|
2021-03-02 17:36:57 +03:00 |
Andrew Dolgov
|
320503dd39
|
move version-related stuff to Config; fix conditional feed requests
|
2021-03-01 13:43:37 +03:00 |
Andrew Dolgov
|
b05d4e3d9f
|
speed up plugin updating a bit, fix some phpstan warnings
|
2021-02-28 21:50:05 +03:00 |
Andrew Dolgov
|
59c14e9c00
|
api: remove base64 encoded passwords (wtf), log all authentication failures in userhelper
|
2021-02-25 15:39:46 +03:00 |
Andrew Dolgov
|
efd196839a
|
stop caching schema version entirely, fix some session_start() related warnings
|
2021-02-25 15:28:27 +03:00 |
Andrew Dolgov
|
c96172fa04
|
use constants in get_pref()/set_pref()
|
2021-02-25 14:49:58 +03:00 |
Andrew Dolgov
|
553548b689
|
request label counters conditionally
|
2021-02-24 15:07:31 +03:00 |
Andrew Dolgov
|
8d2e3c2528
|
drop errors.php and simplify error handling
|
2021-02-23 22:26:07 +03:00 |
Andrew Dolgov
|
e4107ac952
|
wip: initial for config object
|
2021-02-22 21:47:48 +03:00 |
Andrew Dolgov
|
be4e7b1340
|
fix several issues reported by phpstan
|
2021-02-22 14:41:09 +03:00 |
Andrew Dolgov
|
22fe9b54d2
|
feed editor: use client dialog
|
2021-02-20 13:32:09 +03:00 |
Andrew Dolgov
|
d1c83fad14
|
api: unify naming
|
2021-02-15 16:18:17 +03:00 |
Andrew Dolgov
|
166f2d4666
|
diskcache: unify naming
|
2021-02-15 16:11:30 +03:00 |
Andrew Dolgov
|
5704deb460
|
counters: unify naming
|
2021-02-15 16:00:54 +03:00 |
Andrew Dolgov
|
257efb43c6
|
article: unify naming
|
2021-02-15 15:52:28 +03:00 |
Andrew Dolgov
|
020f062a76
|
feeds: unify naming
|
2021-02-15 15:43:07 +03:00 |
Andrew Dolgov
|
82adb01307
|
render enclosures on the client
|
2021-02-15 14:10:46 +03:00 |
Andrew Dolgov
|
868b9b476e
|
api: rewrite article urls at the very end to prevent plugins which expect source URLs from breaking
|
2021-02-15 09:40:43 +03:00 |
Andrew Dolgov
|
52a86c5e38
|
Revert "api: get flavor image from plugin-processed content"
This reverts commit a4604e892c .
|
2021-02-15 08:49:12 +03:00 |
Andrew Dolgov
|
a4604e892c
|
api: get flavor image from plugin-processed content
|
2021-02-15 08:28:46 +03:00 |
Andrew Dolgov
|
a8cc43a0ff
|
move logout_user() to UserHelper
|
2021-02-14 15:31:03 +03:00 |
Philip Klempin
|
ace19c0790
|
Add defaults to api.php variables
|
2021-02-12 10:59:30 +01:00 |
Andrew Dolgov
|
09e9f34bb4
|
add UserHelper::find_user_by_login() and rewrite some user checks to invoke it instead of going through PDO
|
2021-02-11 10:22:27 +03:00 |
Andrew Dolgov
|
7af8744c85
|
authentication: make logins case-insensitive (force lowercase)
|
2021-02-11 09:57:57 +03:00 |
Andrew Dolgov
|
2f8efab275
|
api: one more php8 warning
|
2021-02-09 12:04:59 +03:00 |
Andrew Dolgov
|
6a25bc53ef
|
api: pass hook object payload by reference
|
2021-02-09 08:57:23 +03:00 |
Andrew Dolgov
|
3655e7aaf1
|
api: fix some php8 warnings (4)
|
2021-02-09 08:50:51 +03:00 |
Andrew Dolgov
|
aba028a375
|
api: fix some php8 warnings (3)
|
2021-02-09 08:47:41 +03:00 |
Andrew Dolgov
|
0871a51cb4
|
api: fix some php8 warnings (2)
|
2021-02-09 08:16:04 +03:00 |
Andrew Dolgov
|
63a90d26f3
|
api: fix some php8 warnings
|
2021-02-09 08:15:07 +03:00 |
Andrew Dolgov
|
7874f6ac58
|
remove PHPMD.UnusedFormalParameter
|
2021-02-08 19:42:10 +03:00 |
Andrew Dolgov
|
fa2ebcd0a2
|
api: rewrite a few more hooks
|
2021-02-08 17:03:34 +03:00 |
Andrew Dolgov
|
41fc03287e
|
fix even more warnings reported by phpstan
|
2021-02-06 17:56:47 +03:00 |
Andrew Dolgov
|
403dca154c
|
initial WIP for php8; bump php version requirement to 7.0
|
2021-02-05 23:41:32 +03:00 |
Andrew Dolgov
|
a8302fb253
|
use X-Real-IP headers if possible while authenticating
|
2021-01-05 10:17:24 +03:00 |
Andrew Dolgov
|
e40b79ab33
|
get_article_image: return basic kind to which flavor image belongs
|
2020-12-07 12:09:06 +03:00 |
Andrew Dolgov
|
935f163919
|
api: catchupfeed: allow passing 'mode' (optional), bump api version
|
2020-10-03 10:23:21 +03:00 |
Andrew Dolgov
|
6811d0bde2
|
use self:: in some places to invoke static methods from the same class
|
2020-09-22 14:54:15 +03:00 |
Andrew Dolgov
|
74568df4ff
|
remove a lot of stuff from global context (functions.php), add a few helper classes instead
|
2020-09-22 09:04:33 +03:00 |
Andrew Dolgov
|
dfa65e9374
|
move order_by to SQL override logic into a separate function
|
2020-08-13 11:52:32 +03:00 |
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
|
2020-08-11 13:29:09 +03:00 |