1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

Fix issue getting youtube video thumbnails

This commit is contained in:
Andreas
2021-11-26 23:23:10 +01:00
parent cdeb76ccd5
commit 2521ca3793
2 changed files with 2 additions and 4 deletions

View File

@@ -466,9 +466,8 @@ class ControllerAuthorMediaApi extends ControllerAuthor
$this->params['markdown'] = '![' . $class . '-video](' . $imageUrl . ' "click to load video"){#' . $videoID. ' .' . $class . '}';
$request = $request->withParsedBody($this->params);
$block = new ControllerAuthorBlockApi($this->c);
if($params['new'])
if($this->params['new'])
{
return $block->addBlock($request, $response, $args);
}