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
|
@ -17,15 +17,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"@type": "pb:BurnAfterReading"
|
"@type": "pb:BurnAfterReading"
|
||||||
},
|
|
||||||
{
|
|
||||||
"@type": "pb:Expire"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"MetaData": {
|
"MetaData": {
|
||||||
"created": {
|
"expire": {
|
||||||
"@type": "pb:CreationTime"
|
"@type": "pb:Expiration"
|
||||||
},
|
},
|
||||||
"time_to_live": {
|
"time_to_live": {
|
||||||
"@type": "pb:RemainingSeconds"
|
"@type": "pb:RemainingSeconds"
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
"@value": "plaintext",
|
"@value": "plaintext",
|
||||||
"@enum": ["plaintext", "syntaxhighlighting", "markdown"]
|
"@enum": ["plaintext", "syntaxhighlighting", "markdown"]
|
||||||
},
|
},
|
||||||
"Expire": {
|
"Expiration": {
|
||||||
"@type": "so:Text",
|
"@type": "so:Text",
|
||||||
"@value": "1week",
|
"@value": "1week",
|
||||||
"@enum": ["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"]
|
"@enum": ["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"]
|
||||||
|
@ -85,9 +85,6 @@
|
||||||
"@type": "so:Boolean",
|
"@type": "so:Boolean",
|
||||||
"@enum": [false, true]
|
"@enum": [false, true]
|
||||||
},
|
},
|
||||||
"CreationTime": {
|
|
||||||
"@type": "dp:Unix_time"
|
|
||||||
},
|
|
||||||
"RemainingSeconds": {
|
"RemainingSeconds": {
|
||||||
"@type": "dp:Second",
|
"@type": "dp:Second",
|
||||||
"@minimum": 1
|
"@minimum": 1
|
||||||
|
|
Loading…
Reference in New Issue