From 9348cbe2a1e0d0167aa05bee6e919115218f50b6 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 23 Dec 2018 20:10:24 +0100 Subject: [PATCH] address security concerns reg. paste creation date by removing it in the API, keep comment creation date exposed, displayed in discussion - resolves #390 --- js/pastemeta.jsonld | 7 ++----- js/types.jsonld | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/js/pastemeta.jsonld b/js/pastemeta.jsonld index b0e07f6..2ebeca0 100644 --- a/js/pastemeta.jsonld +++ b/js/pastemeta.jsonld @@ -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" diff --git a/js/types.jsonld b/js/types.jsonld index d586226..00faa41 100644 --- a/js/types.jsonld +++ b/js/types.jsonld @@ -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