address security concerns reg. paste creation date by removing it in the API, keep comment creation date exposed, displayed in discussion - resolves #390
This commit is contained in:
parent
2bb3df5bee
commit
9348cbe2a1
2 changed files with 3 additions and 9 deletions
|
@ -17,15 +17,12 @@
|
|||
},
|
||||
{
|
||||
"@type": "pb:BurnAfterReading"
|
||||
},
|
||||
{
|
||||
"@type": "pb:Expire"
|
||||
}
|
||||
]
|
||||
},
|
||||
"MetaData": {
|
||||
"created": {
|
||||
"@type": "pb:CreationTime"
|
||||
"expire": {
|
||||
"@type": "pb:Expiration"
|
||||
},
|
||||
"time_to_live": {
|
||||
"@type": "pb:RemainingSeconds"
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
"@value": "plaintext",
|
||||
"@enum": ["plaintext", "syntaxhighlighting", "markdown"]
|
||||
},
|
||||
"Expire": {
|
||||
"Expiration": {
|
||||
"@type": "so:Text",
|
||||
"@value": "1week",
|
||||
"@enum": ["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"]
|
||||
|
@ -85,9 +85,6 @@
|
|||
"@type": "so:Boolean",
|
||||
"@enum": [false, true]
|
||||
},
|
||||
"CreationTime": {
|
||||
"@type": "dp:Unix_time"
|
||||
},
|
||||
"RemainingSeconds": {
|
||||
"@type": "dp:Second",
|
||||
"@minimum": 1
|
||||
|
|
Loading…
Reference in a new issue