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

View File

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