Andrew Dolgov
ed43a73369
api: escape newlines in headline content HTML object
2023-10-24 21:35:48 +03:00
defkev
af3e9eb4a0
Forgot delimiter
2023-05-21 06:16:36 +02:00
defkev
5bfd18d3e6
Update API
...
Add site_url property for 9e169dc3aa7c7e30c11d7d3d1bbc4bc66fa39760
2023-05-21 04:55:25 +02:00
Rodney Stromlund
80bd26b3b1
isLoggedIn adds a message to the system log when it returns false, fix for php8+, removed empty test for bool conversion.
2023-03-31 20:26:36 -05:00
Rodney Stromlund
7795c415ab
isLoggedIn adds a message to the system log when it returns false, fix for php8+
2023-03-29 08:20:52 -05:00
wn_
fe08299ec4
Replace special feed and category numbers with constants.
2023-03-05 19:16:48 +00:00
Andrew Dolgov
d210ae50ad
API:
...
- 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-03-05 08:07:55 +03:00
Andrew Dolgov
a2af3a6bb4
API: add getFeedIcon endpoint, bump version
2023-02-23 18:00:18 +03:00
Andrew Dolgov
42bc1620b8
make phpstan happy
2022-09-29 20:02:59 +03:00
Shemi
f0a20a62c7
Merge branch 'master' into master
2022-09-29 11:18:41 +03:00
Shemi
e2f9a3b9a4
Added support for api plugins virtual feeds
2022-09-29 08:37:56 +03:00
jmechnich
359f0af2e7
Fix PHP8 strtime warning if argument is null
2022-09-28 12:29:57 +02:00
powerivq
f490bdd17a
Fix PHP8 empty param problem
2022-08-31 00:36:49 -07:00
wn_
3487c922b3
Replace use of 'array_merge' with the spread operator and 'array_push' in 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-08-12 17:58:38 +00:00
Andrew Dolgov
f7e2f62022
fix Feeds::_get_counters() used improperly as a replacement for
...
getFeedUnread()
2022-02-20 12:48:38 +03:00
Andrew Dolgov
77f39d65b5
* Feeds::_get_counters - fix retrieving unread for tags
...
* mark several symbols as @deprecated properly
* replace uses of (deprecated) getFeedUnread() with Feeds::_get_counters()
2022-02-20 11:04:40 +03:00
Andrew Dolgov
5df8dacf9f
api, getHeadlines: properly accept feed_id 0
2021-12-01 19:04:42 +03:00
Andrew Dolgov
409c63dcf8
remove mixed type hints from function arguments because we still support PHP7
2021-11-29 12:30:33 +03:00
Andrew Dolgov
28fb571dca
* fix showing headlines for tag-based virtual feeds
...
* API: allow retrieving headlines for tag-based feeds (bump api level to 18)
2021-11-29 10:20:13 +03:00
Andrew Dolgov
a6cad5cbca
api: don't try to pass null login/password when subscribing to feed
2021-11-23 16:55:21 +03:00
fox
0a3a464def
Merge pull request 'Consistently handle param string to bool conversions in 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-19 07:36:15 +03:00
Philip Klempin
739c3fe760
Fix Undefined array key "order_by"
2021-11-18 22:33:03 +00:00
wn_
4a891b20f0
Fix 'view_mode' default in API#getHeadlines()
2021-11-18 21:31:52 +00:00
wn_
d532eb773b
Switch from null to false as the default for missing bool params.
2021-11-18 18:25:04 +00:00
wn_
2422aae577
Consistently handle param string to bool conversions in handlers.
2021-11-18 18:09:47 +00:00
Andrew Dolgov
d6f604c06c
API/catchupFeed: properly pass is_cat as bool
2021-11-18 20:02:24 +03:00
Andrew Dolgov
9ac67c7973
API: fix unexpected null being passed to _order_to_override_query
2021-11-18 11:01:46 +03:00
Andrew Dolgov
b77f6c9a6b
API: force methods to return bool to make wrap() mistakes easier to track
2021-11-18 10:46:06 +03:00
Andrew Dolgov
9e469b1642
api: a few more returns in login
2021-11-18 09:04:08 +03:00
Andrew Dolgov
10a1d4d879
api: don't return errors on login success
2021-11-18 09:01:44 +03:00
Andrew Dolgov
a7983d475e
fix phpstan warnings in classes/api.php
2021-11-13 17:51:26 +03:00
wn_
3ba8d964b6
Address PHPStan warnings in 'classes/api.php'.
2021-11-13 14:15:20 +00:00
wn_
1ec003ce35
Typing IHandler methods, typing Handler_Public, fix type of $feed_id (might be tag).
2021-11-13 14:05:48 +00:00
wn_
763515de79
Address PHPStan warnings in 'classes/feeds.php'.
...
Also some minor related tweaks in other classes.
2021-11-12 04:48:06 +00:00
wn_
03495c11ed
Address PHPStan warnings in 'classes/sanitizer.php'.
...
This also includes some minor tweaks to things that call 'Sanitizer::sanitize()'.
2021-11-11 19:59:25 +00:00
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