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 (b154bc7a10
) 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
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
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
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_
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
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
Andrew Dolgov
865ecc8796
move to psr-4 autoloader
2023-10-25 12:55:09 +03:00