|
|
|
@ -21,7 +21,12 @@ class Watch extends Common {
|
|
|
|
|
]; |
|
|
|
|
$res['detail'] = $this->getDetail($id); |
|
|
|
|
$res['comment'] = $this->getComment($id); |
|
|
|
|
$res['recommend'] = $this->getRecommend($res['detail']->tags); |
|
|
|
|
|
|
|
|
|
$tags = []; |
|
|
|
|
if (!is_null($res['detail']->tags)) $tags = $res['detail']->tags; |
|
|
|
|
else $tags = explode(' ', $res['detail']->title); |
|
|
|
|
|
|
|
|
|
$res['recommend'] = $this->getRecommend($tags); |
|
|
|
|
return view('pages.peertube.w', ['res' => $res]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|