Merge pull request #12991 from annando/like-notification

Fixed check for likes in notification mail
This commit is contained in:
Tobias Diekershoff 2023-04-12 07:34:03 +02:00 committed by GitHub
commit 2486383ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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']);