paste* backends: Support the 'public' attribute
This commit is contained in:
parent
4b2b9e511f
commit
9022435e49
6 changed files with 27 additions and 4 deletions
|
|
@ -79,6 +79,7 @@ class PastebinBrowser(BaseBrowser):
|
|||
data = {'api_dev_key': dev_key,
|
||||
'api_option': 'paste',
|
||||
'api_paste_expire_date': '1M',
|
||||
'api_paste_private': '0' if paste.public else '1',
|
||||
'api_paste_code': paste.contents.encode(self.ENCODING),
|
||||
}
|
||||
if paste.title:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue