X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FProtocol%2FOStatus.php;h=47538faa83953ec13089f06d3d479484f558e850;hb=2bbfc0640f411f99e37d82763ce57af5c0c18bd9;hp=8d48873150e47b9eb783628b897c810dfc06f6d6;hpb=0091d318e52f621f1af15e268b578798b972a25d;p=friendica.git diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 8d48873150..47538faa83 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -203,7 +203,7 @@ class OStatus if (!empty($author["author-avatar"]) && ($author["author-avatar"] != $current['avatar'])) { logger("Update profile picture for contact ".$contact["id"], LOGGER_DEBUG); - Photo::updateContactAvatar($author["author-avatar"], $importer["uid"], $contact["id"]); + Contact::updateAvatar($author["author-avatar"], $importer["uid"], $contact["id"]); } // Ensure that we are having this contact (with uid=0) @@ -223,7 +223,7 @@ class OStatus dba::update('contact', $fields, array('id' => $cid), $old_contact); // Update the avatar - Photo::updateContactAvatar($author["author-avatar"], 0, $cid); + Contact::updateAvatar($author["author-avatar"], 0, $cid); } $contact["generation"] = 2; @@ -1326,7 +1326,7 @@ class OStatus switch ($siteinfo["type"]) { case 'photo': - $imgdata = Photo::getPhotoInfo($siteinfo["image"]); + $imgdata = Photo::getInfoFromURL($siteinfo["image"]); $attributes = array("rel" => "enclosure", "href" => $siteinfo["image"], "type" => $imgdata["mime"], @@ -1346,7 +1346,7 @@ class OStatus } if (!Config::get('system', 'ostatus_not_attach_preview') && ($siteinfo["type"] != "photo") && isset($siteinfo["image"])) { - $imgdata = Photo::getPhotoInfo($siteinfo["image"]); + $imgdata = Photo::getInfoFromURL($siteinfo["image"]); $attributes = array("rel" => "enclosure", "href" => $siteinfo["image"], "type" => $imgdata["mime"],