From ffc87a3b32d07a2f12e123fa52791181e926e93a Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 12 Jul 2017 18:56:36 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20reference=20to=20undefined=20variable,=20?= =?UTF-8?q?simplifying=20code=20whilst=20we=E2=80=99re=20at=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Note.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Note.php b/app/Note.php index 6faf43bd..390ee906 100644 --- a/app/Note.php +++ b/app/Note.php @@ -269,8 +269,7 @@ class Note extends Model return; } - $arr = explode('/', $url); - $tweetId = end($arr); + $tweetId = basename($this->in_reply_to); if (Cache::has($tweetId)) { return Cache::get($tweetId); }