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:
El RIDO 2018-12-23 20:10:24 +01:00
parent 2bb3df5bee
commit 9348cbe2a1
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
2 changed files with 3 additions and 9 deletions

View File

@ -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"

View File

@ -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