1
0
mirror of https://github.com/ONLYOFFICE/onlyoffice-owncloud.git synced 2025-04-18 13:24:05 +03:00

fix: unknown author for last version of document

This commit is contained in:
rivexe 2025-02-11 10:34:13 +03:00
parent 3f4a0b971c
commit 1183875143

View File

@ -991,7 +991,7 @@ class EditorController extends Controller {
"id" => $this->buildUserId($author["id"]),
"name" => $author["name"]
];
} elseif (!empty($this->config->getUnknownAuthor())) {
} elseif (!empty($this->config->getUnknownAuthor()) && $versionNum !== 0) {
$historyItem["user"] = [
"name" => $this->config->getUnknownAuthor()
];