Merge pull request #26240 from nextcloud/backport/26231/stable19
This commit is contained in:
commit
6b1fe290d1
|
@ -179,8 +179,8 @@ class ShareByMailProvider implements IShareProvider {
|
|||
*/
|
||||
$alreadyShared = $this->getSharedWith($shareWith, \OCP\Share::SHARE_TYPE_EMAIL, $share->getNode(), 1, 0);
|
||||
if (!empty($alreadyShared)) {
|
||||
$message = 'Sharing %1$s failed, this item is already shared with %2$s';
|
||||
$message_t = $this->l->t('Sharing %1$s failed, this item is already shared with %2$s', [$share->getNode()->getName(), $shareWith]);
|
||||
$message = 'Sharing %1$s failed, because this item is already shared with user %2$s';
|
||||
$message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with user %2$s', [$share->getNode()->getName(), $shareWith]);
|
||||
$this->logger->debug(sprintf($message, $share->getNode()->getName(), $shareWith), ['app' => 'Federated File Sharing']);
|
||||
throw new \Exception($message_t);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue