Commit Graph
22 Commits
Author SHA1 Message Date
Cohee fb1f890974 Merge branch 'release' into staging 2024-12-04 01:05:56 +02:00
Cohee 8ef49b40b2 Add error handling to group parsing in chat search 2024-12-04 01:05:14 +02:00
Cohee 79700fd983 Add Kobold Lite chats import 2024-12-04 00:44:50 +02:00
Cohee 47b7745ceb Extend message preview length 2024-10-31 20:47:31 +02:00
Cohee e0e60a1d00 Fix incorrect message counter 2024-10-31 20:07:23 +02:00
p3il4 30e9e90b38 optimize chat manager logic 2024-10-31 17:48:58 +03:00
Cohee a0889a15fd Explicitly import node process 2024-10-11 10:43:29 +03:00
Cohee a0e6030836 Simplify node imports 2024-10-11 00:28:17 +03:00
Cohee d52b4fbbde Node: Migrate to ES Modules 2024-10-10 22:37:22 +03:00
ceruleandeep 457475baf1 Save uploaded data unchanged if Chub conversion fails for any reason
Avoid non-resolving promise in /characters/chats readline if chat file is empty
2024-09-20 08:58:17 +10:00
ceruleandeep a2d9526cdf Minimal support for importing chat histories in Chub format
Fix crasher in script.js:displayChats if user has directly put a Chub chat file into their user data

Let eslint tidy a few things
2024-09-19 14:20:05 +10:00
Cohee 1366c2741d Throttle chat backups (#2865)
* Throttle chat backups

* Throttle chat backups and apply backup interval throttling

- Added a new configuration option `chatBackupThrottleInterval` to the `config.yaml` file to specify the interval in milliseconds to throttle chat backups per user.
- Updated the `getBackupFunction` function in `chats.js` to use the `chatBackupThrottleInterval` value from the configuration file when creating a throttled backup function.
2024-09-17 18:18:35 +03:00
Cohee 4b2c074399 Apply sanitation to chat names with extension 2024-09-16 16:49:32 +00:00
Cohee 3e2b892aae Sanitize file names on chat renaming 2024-09-16 11:02:09 +00:00
Cohee b80b2d9a74 Fix imported chats not deleting itself after upload 2024-06-26 23:25:00 +03:00
Cohee 5b002c6e46 #2422 Move uploads under the data root 2024-06-26 23:22:42 +03:00
Cohee e66b270811 Change backups to be user data scoped 2024-05-28 17:49:34 +03:00
Isaac McFadyen 3822ae9356 Switched fs.renameSync to fs.copyFileSync 2024-04-18 15:50:27 -04:00
Cohee b07a6a9a78 Update all endpoints to use user directories 2024-04-07 01:47:07 +03:00
Cohee 3032f47b29 Add import of Agnai chats 2024-03-16 01:11:00 +02:00
Cohee 63484ef40b #1542 Skip system messages in TXT export 2023-12-15 21:41:16 +02:00
valadaptive e870c35613 Move chat endpoints into separate file 2023-12-06 19:59:32 -05:00