Default to private pastes

This avoids having predictable paste ids by default

Change-Id: Iac86129e6cf9936eb5844b1d3b7b69ee89df8a0e
This commit is contained in:
Ian Wienand 2022-02-08 11:25:04 +11:00
parent f94a664386
commit 50d45eddc8

View File

@ -30,7 +30,10 @@ class PasteController(object):
language = local.request.session.get('language', 'text')
code = error = ''
show_captcha = private = False
show_captcha = False
# NOTE(ianw): 2022-02-08 : we swapped this to default to
# private
private = True
parent = None
req = local.request
getform = req.form.get