Fix: Use correct follow notification texts

This commit is contained in:
Michael 2022-05-31 14:02:43 +00:00
parent 78a0c98a11
commit 7b219718c4
3 changed files with 98 additions and 89 deletions

View file

@ -126,8 +126,7 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow
}
if ($Notification->type === Post\UserNotification::TYPE_NONE) {
$localRelationship = $this->localRelationshipRepo->getForUserContact($Notification->uid, $Notification->actorId);
if ($localRelationship->pending) {
if ($causer['pending']) {
$msg = $this->l10n->t('%1$s wants to follow you');
} else {
$msg = $this->l10n->t('%1$s has started following you');