Fix reference to undefined variable, simplifying code whilst we’re at it
This commit is contained in:
parent
941362e570
commit
ffc87a3b32
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue