ソースを参照

ごめん

dev-master
コミット
73e376baa4
  1. 7
      app/Http/Controllers/Peertube/Watch.php

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

読み込み中…
キャンセル
保存