Skip to content

Commit

Permalink
Issue #688. Randos still at it, let's disable everywhere for a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Sep 3, 2015
1 parent 84cd3fe commit 2fc80ef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions webcompat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ def index():
elif bug_form.validate_on_submit():
# copy the form so we can add the full UA string to it.
form = request.form.copy()
# see https://github.com/webcompat/webcompat.com/issues/688
if 'facebook' in form.get('url'):
msg = (u'Anonymous reporting for Facebook.com is temporarily '
'disabled. Please see https://github.com/webcompat/we'
'bcompat.com/issues/688 for more details.')
flash(msg, 'notimeout')
return redirect(url_for('index'))
form['ua_header'] = ua_header
# Do we have an image ready to be uploaded?
image = request.files['image']
Expand All @@ -153,13 +160,6 @@ def index():
session['form_data'] = form
return redirect(url_for('login'))
elif form.get('submit-type') == PROXY_REPORT:
# see https://github.com/webcompat/webcompat.com/issues/688
if 'facebook' in form.get('url'):
msg = (u'Anonymous reporting for Facebook.com is temporarily '
'disabled. Please see https://github.com/webcompat/we'
'bcompat.com/issues/688 for more details.')
flash(msg, 'notimeout')
return redirect(url_for('index'))
response = report_issue(form, proxy=True).json()
return redirect(url_for('thanks', number=response.get('number')))
else:
Expand Down

0 comments on commit 2fc80ef

Please sign in to comment.