diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-12-19 10:53:04 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-12-19 10:53:04 -0800 |
commit | 40bc510cb76f546199a53da5e318e89e6a2c33d4 (patch) | |
tree | a808ec0f17957693cc369f84ad51c89a69d32958 /controllers | |
parent | 4aa06023f0c25a10d5eaeafaeb30034e0a4f2e95 (diff) |
reset reply context state when URL is removed
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/controllers.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php index a9bc0ab..889c08a 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -397,6 +397,10 @@ $app->get('/reply/preview', function() use($app) { if($user=require_login($app)) { $params = $app->request()->params(); + if(!isset($params['url']) || !$params['url']) { + return ''; + } + $reply_url = trim($params['url']); if(preg_match('/twtr\.io\/([0-9a-z]+)/i', $reply_url, $match)) { |