diff options
author | Aaron Parecki <aaron@parecki.com> | 2018-08-01 18:38:33 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2018-08-01 18:38:33 -0700 |
commit | 4ed2513ded964eb99d460755ed2e312141426d84 (patch) | |
tree | 0a4613fd531da8ef03b8266d9104913fce9ff5aa /controllers | |
parent | 7f2d941717c9ef16ca9a0bc11f10887d5cd14e72 (diff) |
drop /view route that was never finished
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/controllers.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php index a5fb5be..228f6fb 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -532,25 +532,6 @@ $app->get('/settings/html-content', function() use($app) { } }); -$app->get('/view', function() use($app) { - if($user=require_login($app)) { - $params = $app->request()->params(); - - $xray = new p3k\XRay(); - $result = $xray->parse($params['url']); - if(isset($result['data'])) - $entry = $result['data']; - else - $entry = []; - - render('view-post', array( - 'title' => 'View', - 'entry' => $entry, - 'authorizing' => false - )); - } -}); - function create_favorite(&$user, $url) { $tweet_id = false; |