From: Michael Date: Wed, 12 Apr 2023 03:30:59 +0000 (+0000) Subject: Fixed check for likes in notification mail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=504433581ad1ff5dbe5f9c357a6300f325c12f0f;p=friendica.git Fixed check for likes in notification mail --- 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']);