このコミットが含まれているのは:
守矢諏訪子 2021-12-15 00:25:36 +09:00
コミット b9ebcbb3d4
2個のファイルの変更19行の追加20行の削除

ファイルの表示

@ -7,7 +7,7 @@ use Illuminate\Http\Request;
class Comment {
public function add (Request $r) {
if (!isset($r->submit)) return '';
if (!isset($r->submit)) return redirect('/');
$isvideo = false;
if (!$cont = DB::table('blg_content')->where('slug', $r->slug)->first()) { if ($cont = DB::table('vid_video')->where('vid', $r->slug)->first()) $isvideo = true; }
@ -26,7 +26,6 @@ class Comment {
]);
// 返事だったら、メールを送って
return redirect('/'.($isvideo ? 'video/play' : 'blog').'/'.$r->slug.'#comment-'.$add);
}
}