ごめん
このコミットが含まれているのは:
コミット
b9ebcbb3d4
|
@ -7,7 +7,7 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
class Comment {
|
class Comment {
|
||||||
public function add (Request $r) {
|
public function add (Request $r) {
|
||||||
if (!isset($r->submit)) return '';
|
if (!isset($r->submit)) return redirect('/');
|
||||||
$isvideo = false;
|
$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; }
|
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);
|
return redirect('/'.($isvideo ? 'video/play' : 'blog').'/'.$r->slug.'#comment-'.$add);
|
||||||
}
|
}
|
||||||
}
|
}
|
新しいイシューから参照