summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-19 17:08:52 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-20 16:33:27 +0200
commitaa54d31bd2161f74ccccd375fab46bdf63c5207e (patch)
tree62b69095f7b77fa5a21fff7863876d2fdd4dd4fa /apps/sharebymail/lib
parent972b4c04e2ea3bf96533c111853a57177231c638 (diff)
downloadnextcloud-server-aa54d31bd2161f74ccccd375fab46bdf63c5207e.tar.gz
nextcloud-server-aa54d31bd2161f74ccccd375fab46bdf63c5207e.zip
fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index f31a774b1d1..459b1ffe7c1 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -381,7 +381,6 @@ class ShareByMailProvider implements IShareProvider {
$initiatorUser = $this->userManager->get($initiator);
$ownerDisplayName = ($ownerUser instanceof IUser) ? $ownerUser->getDisplayName() : $owner;
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
- $initiatorEmailAddress = ($initiatorUser instanceof IUser) ? $initiatorUser->getEMailAddress() : null;
if ($owner === $initiator) {
$subject = (string)$this->l->t('%s shared »%s« with you', array($ownerDisplayName, $filename));
} else {
@@ -408,11 +407,6 @@ class ShareByMailProvider implements IShareProvider {
$link
);
- $emailTemplate->addFooter();
- if ($initiatorEmailAddress !== null) {
- $message->setFrom([$initiatorEmailAddress => $initiatorDisplayName]);
- }
-
$message->setTo([$shareWith]);
// The "From" contains the sharers name