From 504433581ad1ff5dbe5f9c357a6300f325c12f0f Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 Apr 2023 03:30:59 +0000 Subject: [PATCH] Fixed check for likes in notification mail --- src/Navigation/Notifications/Repository/Notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Navigation/Notifications/Repository/Notify.php b/src/Navigation/Notifications/Repository/Notify.php index d1256f7d9f..8bfdfbe9a0 100644 --- a/src/Navigation/Notifications/Repository/Notify.php +++ b/src/Navigation/Notifications/Repository/Notify.php @@ -785,7 +785,7 @@ class Notify extends BaseRepository $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) { + if ($params['verb'] == Activity::LIKE) { switch ($Notification->type) { case Model\Post\UserNotification::TYPE_DIRECT_COMMENT: $subject = $l10n->t('%1$s %2$s liked your post #%3$d', $subjectPrefix, $contact['name'], $item['parent']); -- 2.39.5