From: Hypolite Petovan Date: Tue, 15 Mar 2022 02:25:57 +0000 (-0400) Subject: Fix misleading notification message strings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07d4cdbdde9fad20cdc0323995e5209ef2f98942;p=friendica.git Fix misleading notification message strings - The mentioned title is from the top-level post, not the liked post --- diff --git a/src/Navigation/Notifications/Factory/Notification.php b/src/Navigation/Notifications/Factory/Notification.php index b404ad8671..d64ae3f8d7 100644 --- a/src/Navigation/Notifications/Factory/Notification.php +++ b/src/Navigation/Notifications/Factory/Notification.php @@ -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');