This commit is contained in:
F4ilji
2026-03-23 12:05:08 +05:00
parent 1256adba98
commit c350f712dc
2 changed files with 32 additions and 9 deletions
@@ -26,7 +26,7 @@ class VkPostPublisher
if ($settings['vk']) {
$text = $this->generateContentForVk($post);
$imagesFromPost = $post->images;
$imagesFromPost = $post->images ?? [];
$imagesFromContent = $this->extractImagesFromContent($post->content);
$allImages = array_merge($imagesFromPost, $imagesFromContent);
$imageLinks = $this->generateImageLinksForVk($allImages);
@@ -51,7 +51,7 @@ class VkPostPublisher
if ($settings['vk']) {
$text = $this->generateContentForVk($post);
$imagesFromPost = $post->images;
$imagesFromPost = $post->images ?? [];
$imagesFromContent = $this->extractImagesFromContent($post->content);
$allImages = array_merge($imagesFromPost, $imagesFromContent);
$imageLinks = $this->generateImageLinksForVk($allImages);