summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-04-12 22:54:29 +0200
committerLukas Reschke <lukas@owncloud.com>2015-04-12 23:03:32 +0200
commite6c2382a19bd6dbf7bb8e9721251a96f0584ee17 (patch)
tree9732a2f749df28b97addc1687cef2f5cedd2b86d /core/ajax
parent43b2f3c2dc76caadb1a32d6341fa24a39083d8fb (diff)
downloadnextcloud-server-e6c2382a19bd6dbf7bb8e9721251a96f0584ee17.tar.gz
nextcloud-server-e6c2382a19bd6dbf7bb8e9721251a96f0584ee17.zip
Add "Reply-To" support for sharing notifications
Very hacky backport of https://github.com/owncloud/core/pull/15541 - I changed the code path to use OC_Mail instead the OCP pendant since I didn't want to modify the public API. (OCP\Util::sendMail() is anyways deprecated with 8.1)
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 451c761c2cd..43e2f229b67 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -104,7 +104,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
// don't send a mail to the user who shared the file
$recipientList = array_diff($recipientList, array(\OCP\User::getUser()));
- $mailNotification = new OC\Share\MailNotifications();
+ $mailNotification = new OC\Share\MailNotifications(\OCP\User::getUser());
$result = $mailNotification->sendInternalShareMail($recipientList, $itemSource, $itemType);
\OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, $recipient, true);
@@ -136,7 +136,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$file = $_POST['file'];
$to_address = $_POST['toaddress'];
- $mailNotification = new \OC\Share\MailNotifications();
+ $mailNotification = new \OC\Share\MailNotifications(\OCP\User::getUser());
$expiration = null;
if (isset($_POST['expiration']) && $_POST['expiration'] !== '') {