]> git.mxchange.org Git - friendica.git/commitdiff
Fixed check for likes in notification mail
authorMichael <heluecht@pirati.ca>
Wed, 12 Apr 2023 03:30:59 +0000 (03:30 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 12 Apr 2023 03:30:59 +0000 (03:30 +0000)
src/Navigation/Notifications/Repository/Notify.php

index d1256f7d9fed93be369178d4c42e86f92f4c0318..8bfdfbe9a00fa43518d52e2e339e64d18abfb874 100644 (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']);