diff --git a/app/Services/Social/YouTubePublisher.php b/app/Services/Social/YouTubePublisher.php index b4f1496b..5b4467c5 100644 --- a/app/Services/Social/YouTubePublisher.php +++ b/app/Services/Social/YouTubePublisher.php @@ -167,9 +167,6 @@ private function publishShort(PostPlatform $postPlatform, $media, SocialAccount while (! $uploadStatus && ! feof($handle)) { $chunk = fread($handle, self::CHUNK_SIZE); $uploadStatus = $mediaUpload->nextChunk($chunk); - - unset($chunk); - $this->freeChunkMemory(); } fclose($handle);