changes
This commit is contained in:
@@ -26,7 +26,7 @@ class CreateVkPost implements ShouldQueue
|
||||
readonly private array $images = [],
|
||||
readonly private int $post_id,
|
||||
readonly private int|null $publish_date = null,
|
||||
readonly private string $primary_attachments_mode = 'carousel',
|
||||
readonly private string $primary_attachments_mode = 'grid',
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class VkService
|
||||
// return $this->wallService->createPost($message, $from_group, $attachmentString, $publish_date);
|
||||
// }
|
||||
|
||||
public function createPost(string $title, string $message, array $images = [], array $videos = [], int|null $publish_date = null, string $primary_attachments_mode = 'carousel')
|
||||
public function createPost(string $title, string $message, array $images = [], array $videos = [], int|null $publish_date = null, string $primary_attachments_mode = 'grid')
|
||||
{
|
||||
$from_group = 1;
|
||||
$attachments = [];
|
||||
|
||||
@@ -48,7 +48,7 @@ class VkWallService
|
||||
}
|
||||
}
|
||||
|
||||
public function createPost(string $message, int $from_group, string $attachments = '', int|null $publish_date = null, string $primary_attachments_mode = 'carousel')
|
||||
public function createPost(string $message, int $from_group, string $attachments = '', int|null $publish_date = null, string $primary_attachments_mode = 'grid')
|
||||
{
|
||||
$token = $this->vkAuthService->getToken()->access_token;
|
||||
$params = [
|
||||
|
||||
Reference in New Issue
Block a user