From: Björn Schießle Date: Tue, 2 Oct 2012 19:37:10 +0000 (+0200) Subject: we are sharing the same file again if item_source of the already shared file and... X-Git-Tag: v4.5.0RC2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=431d92e7b2f59e905b3388052c6998e5c4772690;p=nextcloud-server.git we are sharing the same file again if item_source of the already shared file and the newly shared file is the same. Therefore we can use the same target name --- diff --git a/lib/public/share.php b/lib/public/share.php index 2f06dcb8641..42c4db61521 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -1014,6 +1014,9 @@ class Share { continue; } } + if ($item['uid_owner'] == $uidOwner && $item['item_source'] == \OC_FileCache::getId($itemSource) ) { + return $target; + } } if (!isset($exclude)) { $exclude = array();