Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIP-287 Add inReplyTo to Reply Notes #292

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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