このコミットが含まれているのは:
守矢諏訪子 2021-12-21 21:02:25 +09:00
コミット 73e376baa4
1個のファイルの変更6行の追加1行の削除

ファイルの表示

@ -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]);
}