You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/docs/references/activitystreams.mdx
+67-40Lines changed: 67 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,23 @@
2
2
title:'Activity Streams JSON-LD'
3
3
---
4
4
5
-
Social web community servers and apps can expose the wallet address of a user’s profile or post to a Web Monetization client, such as the Web Monetization browser extension or embedded SDK.
5
+
Social web community servers and apps can expose the wallet address of a user or post to a Web Monetization client, such as the Web Monetization browser extension or embedded SDK.
6
6
7
-
Web Monetizationlinks are represented in[Activity Streams 2.0](https://www.w3.org/TR/activitystreams-core/)[Object Types](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object) using the`monetization` property from the Web Monetization namespace (`https://webmonetization.org/ns.jsonld`).
7
+
The`monetization` property from theWeb Monetizationnamespace (`https://webmonetization.org/ns.jsonld`) applies to an[Activity Streams 2.0](https://www.w3.org/TR/activitystreams-core/)[`Object`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object).
8
8
9
-
###User`Profile` example
9
+
A Web Monetization wallet address may be applied to either an[`Actor`](https://www.w3.org/TR/activitystreams-vocabulary/#actor-types) performing an action of creation or an[Object Type](https://www.w3.org/TR/activitystreams-vocabulary/#object-types) created by the`Actor`.
10
+
11
+
A`monetization` property must only be applied to an[Object Type](https://www.w3.org/TR/activitystreams-vocabulary/#object-types) when its desired monetization attribution is distinct from the[`Actor`](https://www.w3.org/TR/activitystreams-vocabulary/#actor-types) who created it.
12
+
13
+
###User profile example
10
14
11
15
```jsonc
12
16
{
13
17
"@context": [
14
18
"https://www.w3.org/ns/activitystreams",
15
19
"https://w3id.org/security/v1",
16
20
17
-
// Add the Web Monetizationnamespace
21
+
// Add the Web Monetizationcontext
18
22
"https://webmonetization.org/ns.jsonld",
19
23
20
24
{
@@ -37,75 +41,98 @@ Web Monetization links are represented in [Activity Streams 2.0](https://www.w3.
"content":"<p>“When you go viral, you should get paid.” —<span class=\"h-card\" translate=\"no\"><a href=\"https://alpaca.gold/@Jeremiah\" class=\"u-url mention\">@<span>Jeremiah</span></a></span></p>",
84
+
"contentMap": {
85
+
"en":"<p>“When you go viral, you should get paid.” —<span class=\"h-card\" translate=\"no\"><a href=\"https://alpaca.gold/@Jeremiah\" class=\"u-url mention\">@<span>Jeremiah</span></a></span></p>"
"content":"<p>When you go viral, you should get paid. <a href=\"https://alpaca.gold/tags/WebMonetizationRocks\" class=\"mention hashtag\" rel=\"tag\">#<span>WebMonetizationRocks</span></a></p>",