From 07d4cdbdde9fad20cdc0323995e5209ef2f98942 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 14 Mar 2022 22:25:57 -0400 Subject: [PATCH] Fix misleading notification message strings - The mentioned title is from the top-level post, not the liked post --- src/Navigation/Notifications/Factory/Notification.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.5