Commit Graph

2505 Commits

Author SHA1 Message Date
Andrew Dolgov
1fc19d6e50 adjust indent 2024-11-23 11:54:44 +03:00
Andrew Dolgov
64d9a77fde switch filters _get_rules_list() to ORM 2024-11-23 11:54:24 +03:00
Andrew Dolgov
c23b76eb72 pass resulting action description through gettext 2024-11-23 11:21:18 +03:00
Andrew Dolgov
ce5a96cb30 set type hint for $action_descriptions 2024-11-23 11:14:39 +03:00
Andrew Dolgov
bbc28e626a fix _get_name failing on filters without any rules because of wrong type of JOIN 2024-11-23 11:11:19 +03:00
Andrew Dolgov
31ca090c63 get filter action descriptions on pref_filters class init instead of doing it all the time, use ORM in _get_action_name 2024-11-23 11:07:50 +03:00
Andrew Dolgov
987936f57a pref_filters - refactor _get_name to use ORM, show cumulative score in tree filter description 2024-11-23 10:26:12 +03:00
wn_
64a36970d6 Bump 'chillerlan/php-qrcode' to 5.0.x.
* Maintains PHP `7.4` compatibility and adds PHP `8.4` compatibility
  * The `4.4.x` branch does the same, but I didn't see any reason not to go to `5.0.x`.
* https://github.com/chillerlan/php-qrcode/releases
2024-11-21 17:34:32 +00:00
wn
486c92240a Fix array key warning in 'Feeds::_get_headlines()'. 2024-11-19 23:13:10 +00:00
wn_
154abc61a0 Eliminate use of deprecated 'get_pref()' and 'set_pref()'. 2024-11-18 21:59:45 +00:00
wn_
2dda9f9ab5 Minor @var cleanup in Counters 2024-11-12 04:14:51 +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
Andrew Dolgov
6273e26ea4 Merge branch 'feature/search-improvements' into 'master'
Search improvements

See merge request tt-rss/tt-rss!72
2024-11-11 04:36:47 +00:00
Andrew Dolgov
42ebdb027e fix get_self_url() misbehaving in plugins/ 2024-11-04 13:59:02 +03: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
7e0f5f295c drop OPENTELEMETRY_ global config entries 2024-10-01 17:22:37 +03:00
Andrew Dolgov
884fd92f13 drop opentelemetry 2024-10-01 16:00:34 +03:00
Andrew Dolgov
0163884ef6 add another test for self url, split regex into two parts - one for plugins, one for everything else 2024-09-15 07:17:48 +03:00
Andrew Dolgov
78c903cb7f fix Config::get_self_url() invoked from plugin context, better deal with multiple trailing slashes in URL, update phpunit image path 2024-09-14 10:53:40 +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_
d17f90b96f Fix some broken links and make minor wording tweaks. 2024-08-21 17:59:35 +00:00
Andrew Dolgov
b8cbb167d4 enforce lowercase usernames while keeping backwards-compatibility for authentication 2024-08-16 14:28:20 +03: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
Andrew Dolgov
8f20c1a7ca Merge branch 'feature/php84-session_set_save_handler' into 'master'
Switch to the non-deprecated form of 'session_set_save_handler'.

See merge request tt-rss/tt-rss!44
2024-07-17 06:56:55 +00:00
wn_
44257b8016 Move side effects out of the 'Sessions' constructor. 2024-07-12 01:18:53 +00:00
wn_
c7cc3c92ba Add and use the 'Sessions' class. 2024-07-11 12:16:00 +00:00
wn_
0ce4ae3ece Don't reuse the '$matches' array in 'RSSUtils::decode_srcset()'.
This causes the size of the array to be incorrectly doubled due to the original regex match items being combined with the custom items (i.e. the ones with just 'url' and 'size' keys).

Also rework 'RSSUtils::encode_srcset()' a bit so it looks similar to 'RSSUtils::decode_srcset()'.
2024-07-05 03:17:11 +00:00
Andrew Dolgov
49ef5a929b add some time-related debugging output for feeds and users 2024-06-19 09:12:11 +03:00
Andrew Dolgov
df8403be08 set DAEMON_FEED_LIMIT to 50 by default and use it consistently between forking daemon and any other update methods 2024-06-18 21:54:22 +03:00
Andrew Dolgov
db3e67b3fe * pass arbitrary CLI arguments to update daemon via updater.sh entrypoint
* add configurable log level for update daemon (DAEMON_LOG_LEVEL)
 * when daemon log level is set to LOG_EXTENDED (2) log queries for feed
   update selection
2024-06-18 21:47:05 +03:00
Andrew Dolgov
9d50d95fa3 fix untranslated strings 2024-06-15 14:03:33 +03: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_
ac55a15c84 Switch 2 more implicitly nullable params to explicitly nullable.
Missed in https://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/26 .

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-04-16 14:23:07 +00:00
Andrew Dolgov
ae5e7568f5 force-set absolute path for local cache if CACHE_DIR config value is relative 2024-04-13 00:39:37 +03: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_
9743f0efcd Support doing a prefs page search via Enter. 2024-03-23 15:19:58 +00:00
Andrew Dolgov
81f3139992 add HOOK_VALIDATE_SESSION 2024-02-21 22:13:23 +03:00
wn_
1dbc4dc475 Fix passing auth credentials to plugins for HOOK_FETCH_FEED. 2024-02-06 12:50:26 +00:00
wn_
21aebd8ff1 Use FeedEnclosure throughout RSSUtils. 2024-01-20 17:37:10 +00:00
Andrew Dolgov
283ad4ebea Merge branch 'feature/unused-var-cleanup' into 'master'
Clean up some unused variables.

See merge request tt-rss/tt-rss!19
2024-01-13 18:29:30 +00:00
Andrew Dolgov
d334023267 Merge branch 'feature/reduce-fetch-error-message' into 'master'
Only include the exception message in 'UrlHelper::$fetch_last_error'.

See merge request tt-rss/tt-rss!20
2024-01-13 18:27:19 +00:00
wn_
8ef2803b27 Only include the exception message in 'UrlHelper::$fetch_last_error'.
Before this the stack trace was included, which is a bit much.
2024-01-09 12:38:32 +00:00
Andrew Dolgov
de214a01d2 shorten DIGEST_MIN_SCORE help text 2024-01-09 12:38:25 +03:00
Andrew Dolgov
bcdfedeb8a * mark get_pref/set_pref wrappers as deprecated
* add per-user preference for minimal score required for digest
2024-01-09 11:45:40 +03:00