59 Commits

Author SHA1 Message Date
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
da5bb77dc1
Describe array shapes in some more places. 2025-11-01 04:12:20 +00:00
supahgreg
b1d289441a
Rector rule 'RandomFunctionRector'.
https://getrector.com/rule-detail/random-function-rector
2025-10-18 14:16:15 +00:00
supahgreg
fbac26467b
Various Rector rules for files that got missed previously.
Rules applied:
* ListToArrayDestructRector
* LongArrayToShortArrayRector
* ClassOnObjectRector
* ClassOnThisVariableObjectRector
* RemoveUnusedVariableInCatchRector
2025-10-18 02:05:57 +00:00
supahgreg
1da5a6ef1e
Rector rule 'TernaryToElvisRector'.
https://getrector.com/rule-detail/ternary-to-elvis-rector
2025-10-18 01:45:21 +00:00
supahgreg
b30ce92d58
Rector rule 'StrStartsWithRector'.
https://getrector.com/rule-detail/str-starts-with-rector
2025-10-18 01:42:29 +00:00
supahgreg
6cf8f11b2b
Rector rule 'RemoveUnusedVariableInCatchRector'.
https://getrector.com/rule-detail/remove-unused-variable-in-catch-rector
2025-10-18 01:37:11 +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
supahgreg
e1f34c982c
Stop using 'set_include_path', remove related PHPStan exclude. 2025-10-17 03:29:51 +00:00
supahgreg
e0b116f904
Bump PHPStan to 2.1.30 and address new findings.
Also some minor adjacent cleanup.
2025-10-05 20:51:13 +00:00
supahgreg
5e99eb41ec Remove references to, and integrations with, 'tt-rss.org'. 2025-10-03 21:00:43 +00:00
wn_
0cd788220d Separate feed type detection from init, don't subscribe on failures.
Also some FeedParser tweaks.
2025-07-06 02:33:18 +00:00
Andrew Dolgov
ec0a19c5a6
replace all instances of die() with print+exit because die() returns exit code 0 2025-07-04 13:31:15 +03:00
wn_
25d8655214 Drop legacy feed icon storage migration and unused 'Config::ICONS_DIR'. 2025-05-22 18:05:02 +00:00
Andrew Dolgov
dba83a639c
fix wrong config param being used & add a link to cron syntax we support 2025-05-22 20:36:09 +03:00
Andrew Dolgov
b25684a5a6
make default task schedules configurable 2025-05-22 20:01:00 +03:00
wn_
df28c71641 Improve naming when working with filter actions.
Also updated some related typing and documentation.
2025-05-21 18:34:16 +00:00
wn_
ce36b27a0d Fix check for no articles found in 'RSSUtils::update_rss_feed()'.
FeedParser will always return an array.
2025-05-18 16:08:13 +00:00
wn_
2749c75b72 Minor ORM usage tweak in 'RSSUtils::update_rss_feed()'. 2025-05-18 16:06:44 +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
wn_
c472f00445 Get rid of 'Db::past_comparison_qpart()'.
With MySQL support dropped this function is just an unnecessary layer of abstraction.
2025-05-17 19:08:15 +00:00
Andrew Dolgov
ea6f42dc61
switch insert query for base article record to named parameters and add previously missing ts_content stuff 2025-05-05 22:08:01 +03:00
Andrew Dolgov
677cd7453f
drop some pointless queries now that we can use RETURNING for inserts 2025-05-05 21:55:38 +03:00
Andrew Dolgov
070585ac5e
only open PDO transaction while performing CRUD operations on article 2025-05-05 20:45:40 +03:00
Andrew Dolgov
fc059fc0fc
expose scheduled tasks to plugins, switch cache_starred_images plugin to use them instead of housekeeping hook 2025-05-04 17:50:03 +03:00
wn_
3ee0f331cc Move registration of 'purge_orphaned_scheduled_tasks' into Scheduler. 2025-05-04 14:20:17 +00:00
Andrew Dolgov
07eb34529f Merge branch 'feature/purge-orphaned-scheduled-tasks' into 'master'
Periodically purge orphaned scheduled task records

See merge request tt-rss/tt-rss!126
2025-05-04 14:10:56 +00:00
wn_
853864794a Move logging users excluded from updates to a daily scheduled task, exclude disabled or readonly users. 2025-05-04 13:28:09 +00:00
wn_
868385442a Periodically purge orphaned scheduled task records. 2025-05-04 12:57:58 +00:00
Andrew Dolgov
997c10437e
reorder housekeeping tasks by interval 2025-05-02 23:26:13 +03:00
Andrew Dolgov
d5d15072e1
move scheduled tasks to a separate class, add some try-catches, improve/shorten logging and descriptions 2025-05-02 22:51:07 +03:00
Andrew Dolgov
b30f8c93a0
rename article mark/publish hooks 2025-05-02 21:27:50 +03:00
Andrew Dolgov
aeca30cb0c
drop SIMPLE_UPDATE_MODE, limit housekeeping and updates to background processes 2025-05-02 13:26:58 +03:00
Andrew Dolgov
36f60b51d7
make digest sending a hourly cron job 2025-05-02 13:17:20 +03:00
Andrew Dolgov
44b5b33f3d
remove synchronous usages of _purge_orphans() 2025-05-02 10:28:35 +03:00
Andrew Dolgov
6a40940ad6
split housekeeping jobs to separate scheduled tasks on longer cooldown intervals, add table to record task execution timestamps, bump schema 2025-05-02 10:17:13 +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
Andrew Dolgov
b154bc7a10
initial attempt to remove mysql-related stuff from tt-rss 2025-04-14 12:59:00 +03:00
Andrew Dolgov
f00d9a18f8
if possible, automatically encrypt stored plaintext password for feed on update 2025-04-08 09:43:03 +03:00
Andrew Dolgov
eedc1460e5
support transparent encryption for feed passwords, bump schema to drop length limit of ttrss_feeds.auth_pass 2025-04-08 09:36:04 +03:00
wn_
e1256b06ea Only use valid feed basic info from plugins. 2025-04-04 17:53:47 +00:00
wn_
89b0332d38 Add and use 'Db::now_comparison_qpart()'.
This introduces a helper to build a query part comparing a field against a past datetime (determined by '$now - $some_interval'), eliminating certain boilerplate code.
2025-03-04 18:34:35 +00:00
wn_
f8198933b1 Use the fileinfo module for favicon validation in 'RSSUtils::update_favicon()'. 2025-02-25 20:23:17 +00:00
wn_
e0d9ffcbc1 Only continue filter testing when there are likely more entries to check.
Prior to this, a filter test could needlessly result in up to 100 backend requests (limit 100, max_offset 10000) when the filter's associated feeds+categories have fewer than 10000 entries.
2025-02-15 16:51:25 +00: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_
667528d5b9 Use PHP 8 'str_' functions.
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +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
Andrew Dolgov
884fd92f13
drop opentelemetry 2024-10-01 16:00:34 +03:00