1
This commit is contained in:
@@ -132,8 +132,8 @@ class PostService
|
||||
foreach ($media as $v) {
|
||||
PostMedia::create([
|
||||
'post_id' => $res->id,
|
||||
'media_type' => $this->getMediaTypeByUrl($v['url']),
|
||||
'url' => $v['url'],
|
||||
'media_type' => $this->getMediaTypeByUrl($v),
|
||||
'url' => $v,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user