README update about current functionality and public pastes saving fix.
This commit is contained in:
parent
a8c8f6de36
commit
ec2e885438
@ -9,8 +9,7 @@ whistles, no websockets and even NO JAVASCRIPT!(*)
|
|||||||
|
|
||||||
# Current functionality.
|
# Current functionality.
|
||||||
|
|
||||||
* Paste text.
|
* Create and view public and private pastes.
|
||||||
* View pastes.
|
|
||||||
* Syntax highlighting.
|
* Syntax highlighting.
|
||||||
|
|
||||||
# Caveats.
|
# Caveats.
|
||||||
|
@ -220,7 +220,8 @@ func pastePOST(ec echo.Context) error {
|
|||||||
|
|
||||||
// Private paste?
|
// Private paste?
|
||||||
paste.Private = false
|
paste.Private = false
|
||||||
if params["paste-private"][0] == "on" {
|
privateCheckbox, privateCheckboxFound := params["paste-private"]
|
||||||
|
if privateCheckboxFound && privateCheckbox[0] == "on" {
|
||||||
paste.Private = true
|
paste.Private = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user