]> git.mxchange.org Git - friendica.git/commitdiff
Change email subject to "(...)like in conversation(...)" for likes instead of "(...
authorMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Thu, 22 Dec 2022 23:56:26 +0000 (00:56 +0100)
committerMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Thu, 22 Dec 2022 23:56:26 +0000 (00:56 +0100)
src/Navigation/Notifications/Repository/Notify.php

index 75aff6b8708c5c7e85801c26ed4e4f9600fb4ccc..a0a1d5b513d0049067d3e6a0fc01298ce7617d37 100644 (file)
@@ -783,9 +783,15 @@ class Notify extends BaseRepository
                        $subject        = $l10n->t('%s %s shared a new post', $subjectPrefix, $contact['name']);
                } else {
                        $params['type'] = Model\Notification\Type::COMMENT;
-                       $subject        = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
+                       if ($params['verb'] = Activity::LIKE) {
+                               $subject    = $l10n->t('%1$s Like in conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
+                       } else {
+                               $subject    = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
+                       }
                }
 
+
+
                $msg = $this->notification->getMessageFromNotification($Notification);
                if (empty($msg)) {
                        $this->logger->info('No notification message, quitting', ['uid' => $Notification->uid, 'id' => $Notification->id, 'type' => $Notification->type]);