Skip to content

Commit

Permalink
added line breaks to incoming transfer notification
Browse files Browse the repository at this point in the history
wrapped notifications into double quotes to make line breaks possible

Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
  • Loading branch information
wiswedel committed Dec 16, 2019
1 parent 3f4d24e commit c3bd6aa
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit c3bd6aa

Please sign in to comment.