25 Commits

Author SHA1 Message Date
supahgreg
dfe6276575
Support sorting 'Recently read' by last read date.
Previously, using 'Newest first' and 'Oldest first' in the 'Recently read' special feed resulted in the article's timestamp being used, which isn't particularly useful when you want to review what you've recently read.
2025-11-22 16:09:43 +00:00
supahgreg
5bec70065a
Assorted array-related (or nearby) tweaks.
Move away from 'array_push', simplify various things (e.g. eliminate low value intermediate vars), etc.
2025-11-01 23:47:00 +00:00
supahgreg
a8320ab9cf
Use first-class callable syntax.
Also tweak 'clean()' a bit in the process.

https://wiki.php.net/rfc/first_class_callable_syntax
2025-10-23 16:59:27 +00:00
supahgreg
f9290ff37a
Rector rule 'ThisCallOnStaticMethodToStaticCallRector'.
https://getrector.com/rule-detail/this-call-on-static-method-to-static-call-rector
2025-10-18 01:48:51 +00:00
supahgreg
8480b14746
Rector rule 'LongArrayToShortArrayRector'.
https://getrector.com/rule-detail/long-array-to-short-array-rector
2025-10-18 01:24:59 +00:00
supahgreg
fbdf35d134
Rector rule 'ListToArrayDestructRector'.
https://getrector.com/rule-detail/list-to-array-destruct-rector
2025-10-18 01:20:32 +00:00
wn_
ecef0ae951 Tweak the 'Feeds::_get_title()' param order to make PHP happy.
Required params need to go before optional.
2025-08-29 12:28:05 +00:00
wn_
e5c5a1bf42 Make 'owner_uid' required for 'Feeds::_get_title()' and 'Feeds::_get_cat_title()'. 2025-08-29 12:19:04 +00:00
wn_
34c7e11d84 Use the official JSON MIME type of 'application/json'. 2025-06-03 13:53:12 +00:00
wn_
2fa54cc627 Deprecate and remove use of the 'SUBSTRING_FOR_DATE' constant.
With MySQL support removed (b154bc7a10e46dc9fa0406996507c4fd410366da) this constant is unnecessary.
2025-05-18 14:26:05 +00:00
Andrew Dolgov
868c1cadad
API/getFeeds: return feed last_error & update_interval 2025-05-17 12:49:41 +03:00
Andrew Dolgov
3098dc0a16
rename article mark/publish hooks 2025-05-02 21:28:37 +03:00
Andrew Dolgov
5f70e41118
add plugin hooks invoked when articles get un/marked or un/published 2025-05-01 22:36:33 +03:00
wn_
7618101e33 Reduce use of legacy 'Config::ICONS_DIR'.
Also some minor cleanup in 'API#_get_config()'.
2025-01-26 17:19:12 +00:00
wn_
a1bd6cea1b Use native typing in more places and clean up 'FeedEnclosure' a bit. 2024-12-14 12:26:59 +00:00
Andrew Dolgov
aaeabbc961
API: allow catchup for search results (bumps api level to 22) 2024-11-25 19:47:28 +03:00
wn_
9b0baf9b32 Use match expressions in some places. 2024-11-24 13:45:26 +00:00
wn_
abcd0e8ba2 Use native union types in most places. 2024-11-23 17:43:24 +00:00
wn_
154abc61a0 Eliminate use of deprecated 'get_pref()' and 'set_pref()'. 2024-11-18 21:59:45 +00:00
wn_
5a200755b8 Move 'IVirtualFeed' checks into 'PluginHost::get_feed_handler()'. 2024-11-12 03:49:58 +00:00
wn_
dca2ae60a1 Remove some PHPStan ignores and make others rule-specific. 2024-11-12 03:38:45 +00:00
wn_
a784305cc7 Address PHPStan findings as of 2.0.1 2024-11-12 03:15:53 +00:00
wn_
9dd4102c7f Replace basic 'isset()' cases with the null coalescing operator. 2024-08-04 15:42:11 +00:00
wn_
8727fb3ba8 Clean up some unused variables.
This is essentially 1ccc0c8c1a without the renames and some other things related to Psalm.
2024-01-08 22:46:13 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader 2023-10-25 12:55:09 +03:00