Ensure we provide a mediaType string to Post\Media::getAttachElement
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-720101289
This commit is contained in:
parent
4226ef4e3e
commit
1e1d7a4411
1 changed files with 6 additions and 2 deletions
|
@ -196,8 +196,12 @@ class Processor
|
||||||
$item['attach'] = '';
|
$item['attach'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['attach'] .= Post\Media::getAttachElement($attach['url'],
|
$item['attach'] .= Post\Media::getAttachElement(
|
||||||
$attach['length'] ?? 0, $attach['mediaType'], $attach['name'] ?? '');
|
$attach['url'],
|
||||||
|
$attach['length'] ?? 0,
|
||||||
|
$attach['mediaType'] ?? '',
|
||||||
|
$attach['name'] ?? ''
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue