mirror of
https://github.com/friendica/friendica
synced 2025-04-29 23:44:22 +02:00
Login prototype
This commit is contained in:
parent
b014f349ae
commit
82003bbe47
11 changed files with 269 additions and 12 deletions
|
@ -59,7 +59,7 @@ class Attachment extends BaseFactory
|
|||
public function createFromUriId(int $uriId)
|
||||
{
|
||||
$attachments = [];
|
||||
foreach (Post\Media::getByURIId($uriId) as $attachment) {
|
||||
foreach (Post\Media::getByURIId($uriId, [Post\Media::AUDIO, Post\Media::VIDEO, Post\Media::IMAGE]) as $attachment) {
|
||||
|
||||
$filetype = !empty($attachment['mimetype']) ? strtolower(substr($attachment['mimetype'], 0, strpos($attachment['mimetype'], '/'))) : '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue