mirror of
https://codeberg.org/fediverse/fep.git
synced 2026-08-05 11:46:04 +00:00
fep-044f: fix namespace of QuoteAuthorization and QuoteRequest (#559)
Co-authored-by: Claire <claire.github-309c@sitedethib.com> Reviewed-on: https://codeberg.org/fediverse/fep/pulls/559 Co-authored-by: ClearlyClaire <clearlyclaire@noreply.codeberg.org> Co-committed-by: ClearlyClaire <clearlyclaire@noreply.codeberg.org>
This commit is contained in:
+10
-14
@@ -68,7 +68,7 @@ While this FEP introduces `https://w3id.org/fep/044f#quote`, there are competing
|
||||
- `quoteUri` (`http://fedibird.com/ns#quoteUri`)
|
||||
- FEP-e232 Object links with a `https://misskey-hub.net/ns/#_misskey_quote` `rel` value
|
||||
|
||||
We believe each of those to have significant drawbacks, such as re-using a namespace that has no definition for them, implying the value is an URL or URI, or using an unusual naming scheme, and none of them are linked to a control mechanism like the one defined in this FEP, hence why we introduced `https://w3.id.org/fep/044f#quote`.
|
||||
We believe each of those to have significant drawbacks, such as re-using a namespace that has no definition for them, implying the value is an URL or URI, or using an unusual naming scheme, and none of them are linked to a control mechanism like the one defined in this FEP, hence why we introduced `https://w3id.org/fep/044f#quote`.
|
||||
|
||||
That being said, we suggest some of them as fallback for compatibility with existing fediverse software implementations.
|
||||
|
||||
@@ -167,7 +167,7 @@ See later sections for the actual verification mechanism.
|
||||
|
||||
In order to enforce a policy, we rely on approval stamps, a mechanism used to tell third-party servers that a quote is approved, regardless of the current state of the policy.
|
||||
|
||||
Quote approval stamps are objects of the type `QuoteAuthorization` (`http://joinmastodon.org/ns#QuoteAuthorization`), with `interactingObject` (`https://gotosocial.org/ns#interactingObject`), `interactionTarget` (`https://gotosocial.org/ns#interactionTarget`) and `attributedTo` attributes.
|
||||
Quote approval stamps are objects of the type `QuoteAuthorization` (`https://w3id.org/fep/044f#QuoteAuthorization`), with `interactingObject` (`https://gotosocial.org/ns#interactingObject`), `interactionTarget` (`https://gotosocial.org/ns#interactionTarget`) and `attributedTo` attributes.
|
||||
|
||||
The `interactingObject` attribute MUST reference the accepted quote post, the `interactionTarget` attribute MUST reference the quoted object, and the `attributedTo` attribute MUST correspond to the author of the quoted object.
|
||||
|
||||
@@ -184,8 +184,7 @@ The following stamp can be used to prove that actor `https://example.com/users/a
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"QuoteAuthorization": "toot:QuoteAuthorization",
|
||||
"QuoteAuthorization": "https://w3id.org/fep/044f#QuoteAuthorization",
|
||||
"gts": "https://gotosocial.org/ns#",
|
||||
"interactingObject": {
|
||||
"@id": "gts:interactingObject",
|
||||
@@ -217,9 +216,9 @@ To be considered valid for a particular quote post, a `QuoteAuthorization` MUST
|
||||
|
||||
An approval stamp can be revoked by `Delete`ing the stamp.
|
||||
|
||||
## `QuoteRequest` request activity
|
||||
## `QuoteRequest` request activity {#QuoteRequest}
|
||||
|
||||
The `QuoteRequest` (`http://joinmastodon.org/ns#QuoteRequest`) activity type is introduced to request approval for a quote post.
|
||||
The `QuoteRequest` (`https://w3id.org/fep/044f#QuoteRequest`) activity type is introduced to request approval for a quote post.
|
||||
|
||||
The `QuoteRequest` activity uses the `object` property to refer to the quoted object, and the `instrument` property to refer to the quote post.
|
||||
|
||||
@@ -230,12 +229,11 @@ The `QuoteRequest` activity uses the `object` property to refer to the quoted ob
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"QuoteRequest": "https://w3id.org/fep/044f#QuoteRequest",
|
||||
"quote": {
|
||||
"@id": "https://w3id.org/fep/044f#quote",
|
||||
"@type": "@id"
|
||||
},
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"QuoteRequest": "toot:QuoteRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "QuoteRequest",
|
||||
@@ -273,8 +271,7 @@ If the quote post is considered unacceptable, the authority SHOULD reply with a
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"QuoteRequest": "toot:QuoteRequest"
|
||||
"QuoteRequest": "https://w3id.org/fep/044f#QuoteRequest"
|
||||
}
|
||||
],
|
||||
"type": "Accept",
|
||||
@@ -299,8 +296,7 @@ If the quote post is considered unacceptable, the authority SHOULD reply with a
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"toot": "http://joinmastodon.org/ns#",
|
||||
"Quote": "toot:QuoteRequest"
|
||||
"Quote": "https://w3id.org/fep/044f#QuoteRequest"
|
||||
}
|
||||
],
|
||||
"type": "Reject",
|
||||
@@ -319,7 +315,7 @@ If the quote post is considered unacceptable, the authority SHOULD reply with a
|
||||
|
||||
## Requesting, obtaining and validating approval {#quoteAuthorization}
|
||||
|
||||
In order to get approval, the quote post author MUST send a `QuoteRequest` (`http://joinmastodon.org/ns#QuoteRequest`) activity to the author of the quoted object, with the quoted object as its `object` property and the quote post as its `instrument`.
|
||||
In order to get approval, the quote post author MUST send a `QuoteRequest` (`https://w3id.org/fep/044f#QuoteRequest`) activity to the author of the quoted object, with the quoted object as its `object` property and the quote post as its `instrument`.
|
||||
|
||||
The quote post SHOULD be inlined in the `instrument` property and, if not, it SHOULD dereferenceable by the recipient at this point, as the author of the quoted object may want to inspect it to decide whether to accept the quote.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user