mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
parent
869f3cfec4
commit
d9c6a46ffe
29 changed files with 78 additions and 285 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue