]> git.mxchange.org Git - friendica.git/commitdiff
Spaces
authorMichael <heluecht@pirati.ca>
Sun, 5 Jan 2020 12:00:15 +0000 (12:00 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 5 Jan 2020 12:00:15 +0000 (12:00 +0000)
src/Model/UserItem.php

index a95630577db1080bc88c0add93dac87b6f3e632e..fc778f72e59dac00213bbdf2c2c1858b553bc935 100644 (file)
@@ -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;
                                }