mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing bookmarklet add_site when the token is bad.
This commit is contained in:
parent
5d4c7565e9
commit
ff09a6f262
3 changed files with 3 additions and 8317 deletions
|
@ -45,6 +45,7 @@ def logout(request):
|
|||
|
||||
def add_site_load_script(request, token):
|
||||
code = 0
|
||||
usf = None
|
||||
def image_base64(image_name):
|
||||
image_file = open(os.path.join(settings.MEDIA_ROOT, 'img/icons/silk/%s.png' % image_name))
|
||||
return base64.b64encode(image_file.read())
|
||||
|
@ -67,7 +68,7 @@ def add_site_load_script(request, token):
|
|||
return render_to_response('api/bookmarklet_subscribe.js', {
|
||||
'code': code,
|
||||
'token': token,
|
||||
'folders': usf.folders,
|
||||
'folders': usf and usf.folders,
|
||||
'accept_image': accept_image,
|
||||
'error_image': error_image,
|
||||
'add_image': add_image,
|
||||
|
|
1
fabfile.py
vendored
1
fabfile.py
vendored
|
@ -44,6 +44,7 @@ def deploy():
|
|||
run('git pull')
|
||||
run('kill -HUP `cat logs/gunicorn.pid`')
|
||||
run('curl -s http://www.newsblur.com > /dev/null')
|
||||
run('curl -s http://www.newsblur.com/api/add_site_load_script/ABCDEF > /dev/null')
|
||||
compress_media()
|
||||
|
||||
@roles('web')
|
||||
|
|
8316
media/js/jquery-1.5.1.js
vendored
8316
media/js/jquery-1.5.1.js
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue