v2.8.5
v2.8.5 (2024-04-24)
Features
- ci/build: add nightly build workflow
- conf/http: add
http.proxy_header
config option - go: upgrade golang to v1.22.2 and some deps
Bug Fixes
- cmd/gen: ensure directory before saving in
gen
cmd (#612) - dao: prevent potential infinite loop in
FindCommentRootID
- db/migrate: issue with root id generation
- db/migrator: remove foreign key constraints and better
root_id
generation (#835) - log: improve log system and fix memory leaks (#843)
- transfer: retrieve root_id for imported comment data
- ui/comment: missing reply comment data when inserting (#838)
- ui/comment: incorrect reply comment data in nested mode (#771) (#837)
- ui/lifecycle: keep root element during destroy (#810)
- ui/sidebar: user list not refresh when data is modified
- ui/upload: unable to upload image when file extension is uppercase
- upload: add config option to solve request entity too large issue (#834)
Performance Improvements
- conf/upgit: disallow custom executable path of
upgit
for security (#817) - db: optimize N+1 query in comment list (#799)
- i18n: add translation for 'parameter is required'
- ui/pkg: add shorter export names (#821)
- ui/version_check: beautify version upgrade notice
Code Refactoring
- comments_get: reduce api complexity by introducing
LiteDB
(#800) - ui/prettier: add prettier code formatter
Documentation
BREAKING CHANGE
For UpGit users: Due to security reasons, Artalk no longer allows configuring the executable file path (img_upload.upgit.exec) for upgit. Please add it to system environment variables instead.