Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
@@ -1975,11 +1975,7 @@ class BBCode
|
||||
*/
|
||||
private static function bbCodeMention2DiasporaCallback($match)
|
||||
{
|
||||
$contact = Contact::getDetailsByURL($match[3]);
|
||||
|
||||
if (empty($contact['addr'])) {
|
||||
$contact = Probe::uri($match[3]);
|
||||
}
|
||||
$contact = Contact::getByURL($match[3], 0, ['addr']);
|
||||
|
||||
if (empty($contact['addr'])) {
|
||||
return $match[0];
|
||||
|
||||
@@ -83,7 +83,7 @@ class Markdown
|
||||
return '';
|
||||
}
|
||||
|
||||
$data = Contact::getDetailsByAddr($matches[3]);
|
||||
$data = Contact::getByURL($matches[3]);
|
||||
|
||||
if (empty($data)) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user