diff --git a/app/Http/Controllers/Peertube/Watch.php b/app/Http/Controllers/Peertube/Watch.php index dcc6514..00df08f 100644 --- a/app/Http/Controllers/Peertube/Watch.php +++ b/app/Http/Controllers/Peertube/Watch.php @@ -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]); }