Commit Graph

18 Commits

Author SHA1 Message Date
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_
842e9af4cf Feeds::_search_to_sql(): updates for clarity and SQL quoting. 2024-10-20 17:57:32 +00:00
wn_
142ca20cb0 Fix keyword searches with a quoted string value.
Before this change curly braces wrapped the keyword and its value, making the pair get treated as leftover words.

Also make the search query modification and CSV parsing a bit clearer with some comments and minor refactoring.
2024-10-20 16:08:20 +00:00
Andrew Dolgov
5ea96397c0
properly support search queries in viewfeed debugger, improve some debugging messages and output 2024-10-15 19:58:52 +03:00
Andrew Dolgov
884fd92f13
drop opentelemetry 2024-10-01 16:00:34 +03:00
wn_
207d3dd48d Set 'str_getcsv' escape param to empty string to avoid PHP 8.4 deprecation message.
The escape param is in the process of being eliminated, with PHP 8.4 deprecating passing anything but an empty string as its value.
For some reason they're leaving the default value (a backslash) as-is, meaning the default will cause a deprecation message.
This commit avoids that by setting the escape param to an empty string (see references below).

* https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_proprietary_csv_escaping_mechanism
* https://www.php.net/manual/en/function.str-getcsv.php
* https://old.reddit.com/r/PHP/comments/1eyum8c/new_deprecation_notices_in_php84_with_csv/
* https://nyamsprod.com/blog/csv-and-php8-4/
2024-08-24 14:22:12 +00:00
wn_
d167d5803f Remove unused 'dashboard feed' code.
Displaying auxiliary info when there's nothing to load is being handled in 'Feeds::_format_headlines_list()'.
2024-08-14 01:05:11 +00:00
wn_
9dd4102c7f Replace basic 'isset()' cases with the null coalescing operator. 2024-08-04 15:42:11 +00:00
wn_
5e7713a658 Add option to debug feeds in 'Feeds with update errors' dialog.
Also, prevent opening that dialog from modifying the URL.
2024-05-16 15:48:21 +00:00
wn_
7a5ea2a2b9 Check 'head' and 'body' when searching HTML for feed links.
YouTube, for some reason, puts theirs in 'body'.
2024-05-09 00:00:51 +00:00
wn_
de00a09538 Make implicit nullable parameters explicitly nullable.
This is to address a deprecation planned for PHP 8.4.

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-03-26 16:43:39 +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
wn_
90e7bf7cc3 Update all UrlHelper::fetch() calls to use the associative array approach.
The other approach (passing in individual params) was marked as deprecated a few years ago.
2023-12-30 15:39:17 +00:00
wn_
c7e1caf223 Fix class names in some more places.
Related to the PSR-4 move via 865ecc8796
2023-10-26 15:01:43 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader 2023-10-25 12:55:09 +03:00