Store author for bookmark creation.
This commit is contained in:
parent
84e0266f30
commit
84599b44f7
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ def get_bookmarks_json():
|
||||||
def post_bookmarks_create():
|
def post_bookmarks_create():
|
||||||
url = request.form['url']
|
url = request.form['url']
|
||||||
title = request.form.get('title', None)
|
title = request.form.get('title', None)
|
||||||
bookmark = common.P.new_bookmark(url=url, title=title)
|
user = session_manager.get(request).user
|
||||||
|
bookmark = common.P.new_bookmark(url=url, title=title, author=user)
|
||||||
response = etiquette.jsonify.bookmark(bookmark)
|
response = etiquette.jsonify.bookmark(bookmark)
|
||||||
response = jsonify.make_json_response(response)
|
response = jsonify.make_json_response(response)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue