From 2a5e5de330a960e573ccf6cd3b81d737a69c9eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Sat, 6 Nov 2021 20:00:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=A9=E3=82=A4=E3=83=90=E3=82=B7?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E7=82=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Video/Prayer.php | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/app/Http/Controllers/Video/Prayer.php b/app/Http/Controllers/Video/Prayer.php index bd62acd..8cc2158 100644 --- a/app/Http/Controllers/Video/Prayer.php +++ b/app/Http/Controllers/Video/Prayer.php @@ -41,13 +41,15 @@ class Prayer extends Engine { $res->kvcomment = array(); $kvslug = explode('/', $res->kerotube); - if (isset($kvslug[5])) { - $res->kvcomment = $this->getPeerCome($kvslug[5], ''); + if (isset($kvslug[5]) && $kvslug[3] == 'videos') { + DB::table('vid_video')->where('vid', $res->vid)->update(['kerotube' => 'https://video.076.ne.jp/w/'.$kvslug[5]]); + $kvslug = explode('/', $res->kerotube); + } + if (isset($kvslug[4])) { + $res->kvcomment = $this->getPeerCome($kvslug[4], ''); } if ($res->ytcomment) $res->ytcomment = $this->backupYTComment($slugger, $res->ytcomment); - $res->nicocomment = array(); - $res->bccomment = array(); $res->lbcomment = array(); if ($res->kvcomment) $res->kvcomment = $this->backupPeerComment($slugger, $res->kvcomment); @@ -64,15 +66,8 @@ class Prayer extends Engine { $c->avatar = $det['avatar']; } - if ($c->isShadow == 0) { - if (getIp() != $c->ipaddress) unset($comments[$k]); - } - else { - unset($c->email); - unset($c->ipaddress); - unset($c->isShadow); - $c->created = date('Y年m月d日 H:i:s', $c->created); - } + unset($c->email); + $c->created = date('Y年m月d日 H:i:s', $c->created); } $res->user = userDetail(null, (isset($_COOKIE['kero_token']) ? $_COOKIE['kero_token'] : ''));