sforkowany z mirror/friendica
Next renamed function
rodzic
e3df7eb131
commit
56fe1400a7
|
@ -89,7 +89,7 @@ class Processor
|
||||||
* @param array $attachment
|
* @param array $attachment
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private static function storeAttachment(int $uriid, array $attachment)
|
private static function storeAttachmentAsMedia(int $uriid, array $attachment)
|
||||||
{
|
{
|
||||||
if (empty($attachment['url'])) {
|
if (empty($attachment['url'])) {
|
||||||
return;
|
return;
|
||||||
|
@ -152,7 +152,7 @@ class Processor
|
||||||
$item['body'] = PageInfo::appendDataToBody($item['body'], $data);
|
$item['body'] = PageInfo::appendDataToBody($item['body'], $data);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
self::storeAttachment($item['uri-id'], $attach);
|
self::storeAttachmentAsMedia($item['uri-id'], $attach);
|
||||||
|
|
||||||
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
|
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
|
||||||
if ($filetype == 'image') {
|
if ($filetype == 'image') {
|
||||||
|
|
Ładowanie…
Reference in New Issue