From 23b73854a1e0d574293bf098d818d4b3e0f696a9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 5 Jan 2020 12:00:15 +0000 Subject: [PATCH] Spaces --- src/Model/UserItem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index a95630577d..fc778f72e5 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -141,7 +141,7 @@ class UserItem $profiles[] = $owner['url']; // Notifications from Diaspora are often with an URL in the Diaspora format - $profiles[] = DI::baseUrl().'/u/'.$user['nickname']; + $profiles[] = DI::baseUrl() . '/u/' . $user['nickname']; $profiles2 = []; @@ -204,7 +204,7 @@ class UserItem private static function checkImplicitMention(array $item, array $profiles) { foreach ($profiles AS $profile) { - if (strpos($item['tag'], '='.$profile.']') || strpos($item['body'], '='.$profile.']')) { + if (strpos($item['tag'], '=' . $profile.']') || strpos($item['body'], '=' . $profile . ']')) { if (strpos($item['body'], $profile) === false) { return true; } @@ -223,7 +223,7 @@ class UserItem private static function checkExplicitMention(array $item, array $profiles) { foreach ($profiles AS $profile) { - if (strpos($item['tag'], '='.$profile.']') || strpos($item['body'], '='.$profile.']')) { + if (strpos($item['tag'], '=' . $profile.']') || strpos($item['body'], '=' . $profile . ']')) { if (!(strpos($item['body'], $profile) === false)) { return true; }