mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Review and Use statements
use statements and review changes.
This commit is contained in:
parent
eb148cad55
commit
0373056448
15 changed files with 83 additions and 247 deletions
|
@ -2376,7 +2376,7 @@ function api_get_attachments(&$body)
|
|||
$attachments = array();
|
||||
|
||||
foreach ($images[1] as $image) {
|
||||
$imagedata = Photo::getPhotoInfo($image);
|
||||
$imagedata = Photo::getInfoFromURL($image);
|
||||
|
||||
if ($imagedata) {
|
||||
$attachments[] = array("url" => $image, "mimetype" => $imagedata["mime"], "size" => $imagedata["size"]);
|
||||
|
@ -2508,7 +2508,7 @@ function api_get_entitities(&$text, $bbcode)
|
|||
|
||||
$start = iconv_strpos($text, $url, $offset, "UTF-8");
|
||||
if (!($start === false)) {
|
||||
$image = Photo::getPhotoInfo($url);
|
||||
$image = Photo::getInfoFromURL($url);
|
||||
if ($image) {
|
||||
// If image cache is activated, then use the following sizes:
|
||||
// thumb (150), small (340), medium (600) and large (1024)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue