aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAllan Nordhøy <epost@anotheragency.no>2017-11-23 21:35:55 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-27 08:50:39 +0100
commit011e05574f0abdc00b36e1be9712762c3a176a70 (patch)
tree871c4ed7b984041a27975c5b2643310a54df686b /apps
parent55cad46a21d13cbfd6a3802f6eae0b1f38f26a9a (diff)
downloadnextcloud-server-011e05574f0abdc00b36e1be9712762c3a176a70.tar.gz
nextcloud-server-011e05574f0abdc00b36e1be9712762c3a176a70.zip
that has since been deleted, ID to node
You were mentioned in a group chat by a user that has since been deleted Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/lib/Notification/Notifier.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php
index 55802c9a08d..2b1129f04b3 100644
--- a/apps/comments/lib/Notification/Notifier.php
+++ b/apps/comments/lib/Notification/Notifier.php
@@ -99,17 +99,17 @@ class Notifier implements INotifier {
$userFolder = $this->rootFolder->getUserFolder($notification->getUser());
$nodes = $userFolder->getById((int)$parameters[1]);
if(empty($nodes)) {
- throw new \InvalidArgumentException('Cannot resolve file id to Node instance');
+ throw new \InvalidArgumentException('Cannot resolve file ID to node instance');
}
$node = $nodes[0];
if ($isDeletedActor) {
$notification->setParsedSubject($l->t(
- 'A (now) deleted user mentioned you in a comment on “%s”',
+ 'You were mentioned on “%s”, in a comment by a user that has since been deleted',
[$node->getName()]
))
->setRichSubject(
- $l->t('A (now) deleted user mentioned you in a comment on “{file}”'),
+ $l->t('You were mentioned in “{file}”, in a comment by a user that has since been deleted'),
[
'file' => [
'type' => 'file',