Browse Source
drop /view route that was never finished
pull/108/head
Aaron Parecki
6 years ago
No known key found for this signature in database
GPG Key ID: 276C2817346D6056
1 changed files with
0 additions and
19 deletions
-
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; |
|
|
|