]> git.mxchange.org Git - friendica.git/commitdiff
Fix misleading notification message strings
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 02:25:57 +0000 (22:25 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 02:56:46 +0000 (22:56 -0400)
- The mentioned title is from the top-level post, not the liked post

src/Navigation/Notifications/Factory/Notification.php

index b404ad8671d7e6c357e6f3681ba143c43f245cf9..d64ae3f8d7edcbd74af570cf90ab8f157e87677b 100644 (file)
@@ -175,7 +175,7 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
                                case Activity::LIKE:
                                        switch ($Notification->type) {
                                                case Post\UserNotification::TYPE_DIRECT_COMMENT:
-                                                       $msg = $this->l10n->t('%1$s liked your comment %2$s');
+                                                       $msg = $this->l10n->t('%1$s liked your comment on %2$s');
                                                        break;
                                                case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT:
                                                        $msg = $this->l10n->t('%1$s liked your post %2$s');
@@ -185,7 +185,7 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
                                case Activity::DISLIKE:
                                        switch ($Notification->type) {
                                                case Post\UserNotification::TYPE_DIRECT_COMMENT:
-                                                       $msg = $this->l10n->t('%1$s disliked your comment %2$s');
+                                                       $msg = $this->l10n->t('%1$s disliked your comment on %2$s');
                                                        break;
                                                case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT:
                                                        $msg = $this->l10n->t('%1$s disliked your post %2$s');