1
0
mirror of https://github.com/ONLYOFFICE/onlyoffice-owncloud.git synced 2025-07-28 23:21:59 +03:00

save version author

This commit is contained in:
Antipkin-A
2020-10-19 12:22:48 +03:00
committed by Sergey Linnik
parent 41ec95619f
commit 79c205beca
2 changed files with 52 additions and 0 deletions

View File

@ -547,6 +547,10 @@ class CallbackController extends Controller {
FileVersions::saveHistory($file->getFileInfo(), $history, $changes, $prevVersion);
}
if (!empty($user)) {
FileVersions::saveAuthor($file->getFileInfo(), $user);
}
$result = 0;
} catch (\Exception $e) {
$this->logger->logException($e, ["message" => "Track: $fileId status $status error", "app" => $this->appName]);