X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftags.php;h=6c45a4aee21c4fe63ae07c5660036848892741d4;hb=f65d6531cafe625d6be011e135d132ae48fc7c06;hp=c82c6a09b46aa46370c12a9013d16d67ad451a96;hpb=635b26353cf263c6b5073d9bb4605b481b0e85ba;p=friendica.git diff --git a/include/tags.php b/include/tags.php index c82c6a09b4..6c45a4aee2 100644 --- a/include/tags.php +++ b/include/tags.php @@ -31,7 +31,7 @@ function create_tags_from_item($itemid) { $tags = ""; foreach ($taglist as $tag) - if ((substr(trim($tag), 0, 1) == "#") OR (substr(trim($tag), 0, 1) == "@")) + if ((substr(trim($tag), 0, 1) == "#") || (substr(trim($tag), 0, 1) == "@")) $tags .= " ".trim($tag); else $tags .= " #".trim($tag); @@ -91,7 +91,7 @@ function create_tags_from_item($itemid) { dbesc($link), dbesc($message["guid"]), dbesc($message["created"]), dbesc($message["received"]), intval($global)); // Search for mentions - if ((substr($tag, 0, 1) == '@') AND (strpos($link, $profile_base_friendica) OR strpos($link, $profile_base_diaspora))) { + if ((substr($tag, 0, 1) == '@') && (strpos($link, $profile_base_friendica) || strpos($link, $profile_base_diaspora))) { $users = q("SELECT `uid` FROM `contact` WHERE self AND (`url` = '%s' OR `nurl` = '%s')", $link, $link); foreach ($users AS $user) { if ($user["uid"] == $message["uid"]) {