]> git.mxchange.org Git - friendica.git/commitdiff
Avoid probing non existing profiles
authorMichael <heluecht@pirati.ca>
Wed, 19 Aug 2020 05:24:53 +0000 (05:24 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 19 Aug 2020 05:24:53 +0000 (05:24 +0000)
src/Content/Text/BBCode.php

index cae3e941a75a946172a852ef667f585ca4bcc37d..5b22746ce645492f7e28a24a805c619a484ba119 100644 (file)
@@ -1973,8 +1973,7 @@ class BBCode
         */
        private static function bbCodeMention2DiasporaCallback($match)
        {
-               $contact = Contact::getByURL($match[3], null, ['addr']);
-
+               $contact = Contact::getByURL($match[3], false, ['addr']);
                if (empty($contact['addr'])) {
                        return $match[0];
                }