From 98ed42098d6e87b9ed1ed36a4437ec0bbf51ac78 Mon Sep 17 00:00:00 2001 From: Wes Biggs Date: Sun, 13 Oct 2024 11:40:46 -0500 Subject: [PATCH] DIP-287 Add inReplyTo to Reply Notes --- pages/ActivityContent/Overview.md | 8 ++++---- pages/ActivityContent/Types/Note.md | 16 ++++++++++++++++ pages/DSNP/Overview.md | 7 +++---- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/pages/ActivityContent/Overview.md b/pages/ActivityContent/Overview.md index 8a095fa7..e0282d62 100644 --- a/pages/ActivityContent/Overview.md +++ b/pages/ActivityContent/Overview.md @@ -1,5 +1,5 @@ # Activity Content Specification -__Version 1.3.0__ +__Version pre-1.4.0__ Content references shared via the DSNP consist of URLs pointing to documents containing Activity Streams JSON objects. For the purposes of the DSNP, restrictions are placed on the [Activity Streams 2.0](https://www.w3.org/TR/activitystreams-core/) specification. @@ -45,11 +45,11 @@ URLs in DSNP-compatible Activity Content MUST use one of the following URL schem | [LibertyDSNP/activity-content-java](https://github.com/LibertyDSNP/activity-content-java) | Java/Kotlin | | [LibertyDSNP/activity-content-swift](https://github.com/LibertyDSNP/activity-content-swift) | Swift | - ## Prerelease Changelog -- [DIP-xxx](https://github.com/LibertyDSNP/spec/issues/xxx) Name of Feature ----> +- [DIP-287](https://github.com/LibertyDSNP/spec/issues/287) DSNP Content URI Specificity + ## Releases diff --git a/pages/ActivityContent/Types/Note.md b/pages/ActivityContent/Types/Note.md index 6cd13d85..b517926d 100644 --- a/pages/ActivityContent/Types/Note.md +++ b/pages/ActivityContent/Types/Note.md @@ -13,6 +13,7 @@ | `attachment` | [Activity Vocabulary 2.0](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attachment) | no | Array of attached links or media | MUST be one of the [Supported Attachments](../Associated/Attachments.md) | | `tag` | [Activity Vocabulary 2.0](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tag) | no | Array of tags/mentions | MUST follow [Tag Type](../Associated/Tag.md) | | `location` | [Activity Vocabulary 2.0](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-location) | no | For location | MUST follow [Location Type](../Associated/Location.md) | +| `inReplyTo` | [Activity Vocabulary 2.0](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-inreplyto) | no | Identifies the content being replied to | MUST be a [DSNP Content URI](../../DSNP/Identifiers.md#dsnp-content-uri) | ## Supported Content MIME Types @@ -22,6 +23,7 @@ ## Examples +### Basic Note ```json { "@context": "https://www.w3.org/ns/activitystreams", @@ -32,6 +34,20 @@ } ``` +### Note Replying to a DSNP Note +```json +{ + "@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "inReplyTo": "dsnp://123456/bdyqdua4t4pxgy37mdmjyqv3dejp5betyqsznimpneyujsur23yubzna", + "content": "Hello world!", + "mediaType": "text/plain", + "published": "1970-01-01T00:00:00+00:00" +} +``` + +### Note with a Link Attachment + ```json { "@context": "https://www.w3.org/ns/activitystreams", diff --git a/pages/DSNP/Overview.md b/pages/DSNP/Overview.md index d91827e1..2f63195d 100644 --- a/pages/DSNP/Overview.md +++ b/pages/DSNP/Overview.md @@ -1,5 +1,5 @@ # DSNP Specification -__Version 1.3.0__ +__Version pre-1.4.0__ DSNP (Decentralized Social Networking Protocol) is a social networking protocol designed to run on a blockchain. It specifies a set of social primitives along with requirements for interoperability. @@ -29,11 +29,10 @@ Compliant DSNP system specifications MUST document how each of the required DSNP A compliant specification MUST specify a mapping from its system-specific state change data (for example, the events emitted by a blockchain) to the DSNP State Change Records that data represents. - ## Prerelease Changelog -- [DIP-xxx](https://github.com/LibertyDSNP/spec/issues/xxx) Name of Feature ----> +- [DIP-287](https://github.com/LibertyDSNP/spec/issues/287) DSNP Content URI Specificity ## Releases