From 45e1b25ea3a1a85f18cea88f2d013900c4f53725 Mon Sep 17 00:00:00 2001 From: mikiher Date: Sat, 21 Feb 2026 07:46:23 +0200 Subject: [PATCH] AuthorController: Update author name in match if changed --- server/controllers/AuthorController.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/controllers/AuthorController.js b/server/controllers/AuthorController.js index 50eeda31a..ab6092624 100644 --- a/server/controllers/AuthorController.js +++ b/server/controllers/AuthorController.js @@ -368,6 +368,11 @@ class AuthorController { hasUpdates = true } + if (authorData.name && req.author.name !== authorData.name) { + req.author.name = authorData.name + hasUpdates = true + } + if (hasUpdates) { await req.author.save()