mirror of
https://github.com/friendica/friendica
synced 2024-11-20 03:03:40 +00:00
Next renamed function
This commit is contained in:
parent
e3df7eb131
commit
56fe1400a7
1 changed files with 2 additions and 2 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Reference in a new issue