Compare commits

..

No commits in common. "auth-fix" and "master" have entirely different histories.

2 changed files with 9 additions and 14 deletions

View file

@ -64,8 +64,7 @@ $app->get('/', function($format='html') use($app) {
ob_start();
render('index', array(
'title' => 'Quill',
'meta' => '',
'authorizing' => false
'meta' => ''
));
$html = ob_get_clean();
$res->body($html);

View file

@ -72,8 +72,7 @@ $app->get('/new', function() use($app) {
'response_date' => $user->last_micropub_response_date,
'syndication_targets' => json_decode($user->syndication_targets, true),
'test_response' => $test_response,
'location_enabled' => $user->location_enabled,
'authorizing' => false
'location_enabled' => $user->location_enabled
));
$app->response()->body($html);
}
@ -104,8 +103,7 @@ $app->get('/bookmark', function() use($app) {
'bookmark_content' => $content,
'bookmark_tags' => $tags,
'token' => generate_login_token(),
'syndication_targets' => json_decode($user->syndication_targets, true),
'authorizing' => false
'syndication_targets' => json_decode($user->syndication_targets, true)
));
$app->response()->body($html);
}
@ -123,8 +121,7 @@ $app->get('/favorite', function() use($app) {
$html = render('new-favorite', array(
'title' => 'New Favorite',
'url' => $url,
'token' => generate_login_token(),
'authorizing' => false
'token' => generate_login_token()
));
$app->response()->body($html);
}
@ -142,8 +139,7 @@ $app->get('/repost', function() use($app) {
$html = render('new-repost', array(
'title' => 'New Repost',
'url' => $url,
'token' => generate_login_token(),
'authorizing' => false
'token' => generate_login_token()
));
$app->response()->body($html);
}
@ -164,17 +160,17 @@ $app->get('/creating-a-token-endpoint', function() use($app) {
$app->redirect('http://indiewebcamp.com/token-endpoint', 301);
});
$app->get('/creating-a-micropub-endpoint', function() use($app) {
$html = render('creating-a-micropub-endpoint', array('title' => 'Creating a Micropub Endpoint', 'authorizing' => false));
$html = render('creating-a-micropub-endpoint', array('title' => 'Creating a Micropub Endpoint'));
$app->response()->body($html);
});
$app->get('/docs', function() use($app) {
$html = render('docs', array('title' => 'Documentation', 'authorizing' => false));
$html = render('docs', array('title' => 'Documentation'));
$app->response()->body($html);
});
$app->get('/privacy', function() use($app) {
$html = render('privacy', array('title' => 'Quill Privacy Policy', 'authorizing' => false));
$html = render('privacy', array('title' => 'Quill Privacy Policy'));
$app->response()->body($html);
});
@ -221,7 +217,7 @@ $app->get('/add-to-home', function() use($app) {
$app->get('/settings', function() use($app) {
if($user=require_login($app)) {
$html = render('settings', array('title' => 'Settings', 'include_facebook' => true, 'authorizing' => false));
$html = render('settings', array('title' => 'Settings', 'include_facebook' => true));
$app->response()->body($html);
}
});