]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Merge pull request #4074 from MrPetovan/task/update-composer
[friendica.git] / mod / follow.php
index b3a503ec06c31ba21d0d8881bffb492d614ded56..f0cffff4a1afb860e8dc0b8e05d52b7fcbc98ba8 100644 (file)
@@ -3,11 +3,10 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\System;
+use Friendica\Model\Contact;
 use Friendica\Network\Probe;
-use Friendica\Object\Contact;
 
 require_once 'include/follow.php';
-require_once 'include/Contact.php';
 require_once 'include/contact_selectors.php';
 
 function follow_post(App $a) {
@@ -177,7 +176,7 @@ function follow_content(App $a) {
        ));
 
        $a->page['aside'] = "";
-       profile_load($a, "", 0, get_contact_details_by_url($ret["url"]));
+       profile_load($a, "", 0, Contact::getDetailsByURL($ret["url"]));
 
        if ($gcontact_id <> 0) {
                $o .= replace_macros(get_markup_template('section_title.tpl'),
@@ -185,7 +184,7 @@ function follow_content(App $a) {
                ));
 
                // Show last public posts
-               $o .= posts_from_contact_url($a, $ret["url"]);
+               $o .= Contact::getPostsFromUrl($ret["url"]);
        }
 
        return $o;