From: Björn Schießle Date: Wed, 26 Jun 2013 14:28:23 +0000 (+0200) Subject: also expire versions on rename, to update the history more regularly X-Git-Tag: v6.0.0alpha2~470 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8760d7284577bb785093e0cbea74b8ca13d643a;p=nextcloud-server.git also expire versions on rename, to update the history more regularly --- diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index d9016e40935..b9cc40a0664 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -178,6 +178,8 @@ class Storage { return self::store($new_path); } + self::expire($newpath); + $abs_newpath = $versions_view->getLocalFile($newpath); if ( $files_view->is_dir($oldpath) && $versions_view->is_dir($oldpath) ) {