diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:02:52 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:02:52 +0100 |
commit | 5949bd6787f2a7fa910dea6036df0315e119b457 (patch) | |
tree | 5271b6f0a30a91f5cb43356c5a0624159c0f12d6 /src/web/views/feed.py | |
parent | fixing breadcrum height (diff) | |
download | newspipe-5949bd6787f2a7fa910dea6036df0315e119b457.tar.gz newspipe-5949bd6787f2a7fa910dea6036df0315e119b457.tar.bz2 newspipe-5949bd6787f2a7fa910dea6036df0315e119b457.zip |
modal from nav
Diffstat (limited to 'src/web/views/feed.py')
-rw-r--r-- | src/web/views/feed.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 9de45a7e..959179f9 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -95,11 +95,12 @@ def reset_errors(feed_id): return redirect(request.referrer or url_for('home')) -@feed_bp.route('/bookmarklet', methods=['GET']) +@feed_bp.route('/bookmarklet', methods=['GET', 'POST']) @login_required def bookmarklet(): feed_contr = FeedController(g.user.id) - url = request.args.get('url', None) + url = (request.args if request.method == 'GET' else request.form)\ + .get('url', None) if not url: flash(gettext("Couldn't add feed: url missing."), "error") raise BadRequest("url is missing") |