Skip to content

Commit

Permalink
DIP-287 Add inReplyTo to Reply Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Biggs committed Oct 13, 2024
1 parent 9cb0bf8 commit 98ed420
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pages/ActivityContent/Overview.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 |

<!--- Uncomment for pre-release changes and prefix the version with `pre-[next version]`
<!--- Uncomment for pre-release changes and prefix the version with `pre-[next version]` --->
## 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

Expand Down
16 changes: 16 additions & 0 deletions pages/ActivityContent/Types/Note.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -22,6 +23,7 @@

## Examples

### Basic Note
```json
{
"@context": "https://www.w3.org/ns/activitystreams",
Expand All @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions pages/DSNP/Overview.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.

<!--- Uncomment for pre-release changes and prefix the version with `pre-[next version]`
<!--- Uncomment for pre-release changes and prefix the version with `pre-[next version]` --->
## 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

Expand Down

0 comments on commit 98ed420

Please sign in to comment.