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