Avoid probing non existing profiles
This commit is contained in:
parent
3d1829ede5
commit
38ed5c943d
1 changed files with 1 additions and 2 deletions
|
@ -1973,8 +1973,7 @@ class BBCode
|
||||||
*/
|
*/
|
||||||
private static function bbCodeMention2DiasporaCallback($match)
|
private static function bbCodeMention2DiasporaCallback($match)
|
||||||
{
|
{
|
||||||
$contact = Contact::getByURL($match[3], null, ['addr']);
|
$contact = Contact::getByURL($match[3], false, ['addr']);
|
||||||
|
|
||||||
if (empty($contact['addr'])) {
|
if (empty($contact['addr'])) {
|
||||||
return $match[0];
|
return $match[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue