diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 6abf278dda..d9016e4093 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -137,12 +137,7 @@ class Storage { $versionsSize += $users_view->filesize('files'.$filename); - // expire old revisions if necessary - $newSize = self::expire($filename, $versionsSize); - - if ( $newSize != $versionsSize ) { - self::setVersionsSize($uid, $newSize); - } + self::setVersionsSize($uid, $versionsSize); } }