mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Merge branch 'master' of github.com:aquatix/digimarks
This commit is contained in:
@@ -279,7 +279,12 @@ def editbookmark(userkey, urlhash):
|
||||
@app.route('/<userkey>/add')
|
||||
def addbookmark(userkey):
|
||||
""" Bookmark add form """
|
||||
bookmark = Bookmark(title='', url='', tags='')
|
||||
url = request.args.get('url')
|
||||
if not url:
|
||||
url = ''
|
||||
if request.args.get('referrer'):
|
||||
url = request.referrer
|
||||
bookmark = Bookmark(title='', url=url, tags='')
|
||||
message = request.args.get('message')
|
||||
tags = get_cached_tags(userkey)
|
||||
return render_template('edit.html', action='Add bookmark', userkey=userkey, bookmark=bookmark, tags=tags, message=message)
|
||||
|
||||
Reference in New Issue
Block a user