Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added line breaks to incoming transfer notification
wrapped notifications into double quotes to make line breaks possible

Signed-off-by: Sascha Wiswedel <[email protected]>
  • Loading branch information
wiswedel authored and rullzer committed Dec 17, 2019
commit a1df5d1e98f285b94b1c2a5338c41a70960785af
4 changes: 2 additions & 2 deletions apps/files/lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ public function handleTransferownershipRequest(INotification $notification, stri
])
->setParsedSubject(str_replace('{user}', $param['sourceUser'], $l->t('Incoming ownership transfer from {user}')))
->setRichMessage(
$l->t('Do you want to accept {path}? Note: The transfer process after accepting may take up to 1 hour.'),
$l->t("Do you want to accept {path}?\n\nNote: The transfer process after accepting may take up to 1 hour."),
[
'path' => [
'type' => 'highlight',
'id' => $param['targetUser'] . '::' . $param['nodeName'],
'name' => $param['nodeName'],
]
])
->setParsedMessage(str_replace('{path}', $param['nodeName'], $l->t('Do you want to accept {path}? Note: The transfer process after accepting may take up to 1 hour.')));
->setParsedMessage(str_replace('{path}', $param['nodeName'], $l->t("Do you want to accept {path}?\n\nNote: The transfer process after accepting may take up to 1 hour.")));

return $notification;
}
Expand Down