]> git.mxchange.org Git - friendica.git/blobdiff - include/bb2diaspora.php
Split the name in the hcard
[friendica.git] / include / bb2diaspora.php
index 20309b9d2000591fe3ee86196b39f0d8ca98df85..e1a67d432d261600cae885ed2185b422275288cd 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Model\Contact;
 use Friendica\Network\Probe;
 
 use League\HTMLToMarkdown\HtmlConverter;
@@ -23,7 +24,7 @@ function diaspora_mention2bb($match) {
                return;
        }
 
-       $data = get_contact_details_by_addr($match[2]);
+       $data = Contact::getDetailsByAddr($match[2]);
 
        $name = $match[1];
 
@@ -96,7 +97,7 @@ function diaspora2bb($s) {
  */
 function diaspora_mentions($match) {
 
-       $contact = get_contact_details_by_url($match[3]);
+       $contact = Contact::getDetailsByURL($match[3]);
 
        if (!x($contact, 'addr')) {
                $contact = Probe::uri($match[3]);