This commit is contained in:
Michael 2021-07-31 06:22:08 +00:00
parent 01197f66e5
commit e89d0f2599
1 changed files with 3 additions and 2 deletions

View File

@ -60,11 +60,12 @@ class ScheduledStatus extends BaseFactory
throw new HTTPException\NotFoundException('Scheduled status with ID ' . $id . ' not found for user ' . $uid . '.');
}
$media_ids = [];
$media_ids = [];
$media_attachments = [];
foreach ($parameters['attachments'] as $attachment) {
$id = Photo::getIdForName($attachment['url']);
$media_ids[] = (string)$id;
$media_ids[] = (string)$id;
$media_attachments[] = DI::mstdnAttachment()->createFromPhoto($id);
}