-
-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement separate mod activities for feature, lock post
Also includes collection for featured posts. Later we also need to do the same for Comment.distinguished
- Loading branch information
Showing
54 changed files
with
1,219 additions
and
702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
crates/apub/assets/lemmy/activities/community/add_featured_post.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"cc": [ | ||
"https://ds9.lemmy.ml/c/main" | ||
], | ||
"id": "https://ds9.lemmy.ml/activities/add/47d911f5-52c5-4659-b2fd-0e58c451a427", | ||
"to": [ | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"type": "Add", | ||
"actor": "https://ds9.lemmy.ml/u/lemmy_alpha", | ||
"object": "https://ds9.lemmy.ml/post/2", | ||
"target": "https://ds9.lemmy.ml/c/main/featured", | ||
"audience": "https://ds9.lemmy.ml/c/main" | ||
} |
13 changes: 13 additions & 0 deletions
13
crates/apub/assets/lemmy/activities/community/lock_page.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"id": "http://lemmy-alpha:8541/activities/lock/cb48761d-9e8c-42ce-aacb-b4bbe6408db2", | ||
"actor": "http://lemmy-alpha:8541/u/lemmy_alpha", | ||
"to": [ | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"object": "http://lemmy-alpha:8541/post/2", | ||
"cc": [ | ||
"http://lemmy-alpha:8541/c/main" | ||
], | ||
"type": "Lock", | ||
"audience": "http://lemmy-alpha:8541/c/main" | ||
} |
14 changes: 14 additions & 0 deletions
14
crates/apub/assets/lemmy/activities/community/remove_featured_post.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"cc": [ | ||
"https://ds9.lemmy.ml/c/main" | ||
], | ||
"id": "https://ds9.lemmy.ml/activities/add/47d911f5-52c5-4659-b2fd-0e58c451a427", | ||
"to": [ | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"type": "Remove", | ||
"actor": "https://ds9.lemmy.ml/u/lemmy_alpha", | ||
"object": "https://ds9.lemmy.ml/post/2", | ||
"target": "https://ds9.lemmy.ml/c/main/featured", | ||
"audience": "https://ds9.lemmy.ml/c/main" | ||
} |
25 changes: 25 additions & 0 deletions
25
crates/apub/assets/lemmy/activities/community/undo_lock_page.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"id": "http://lemmy-alpha:8541/activities/undo/d6066719-d277-4964-9190-4d6faffac286", | ||
"actor": "http://lemmy-alpha:8541/u/lemmy_alpha", | ||
"to": [ | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"object": { | ||
"actor": "http://lemmy-alpha:8541/u/lemmy_alpha", | ||
"to": [ | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"object": "http://lemmy-alpha:8541/post/2", | ||
"cc": [ | ||
"http://lemmy-alpha:8541/c/main" | ||
], | ||
"type": "Lock", | ||
"id": "http://lemmy-alpha:8541/activities/lock/08b6fd3e-9ef3-4358-a987-8bb641f3e2c3", | ||
"audience": "http://lemmy-alpha:8541/c/main" | ||
}, | ||
"cc": [ | ||
"http://lemmy-alpha:8541/c/main" | ||
], | ||
"type": "Undo", | ||
"audience": "http://lemmy-alpha:8541/c/main" | ||
} |
51 changes: 51 additions & 0 deletions
51
crates/apub/assets/lemmy/collections/group_featured_posts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"type": "OrderedCollection", | ||
"id": "https://ds9.lemmy.ml/c/main/featured", | ||
"totalItems": 2, | ||
"orderedItems": [ | ||
{ | ||
"type": "Page", | ||
"id": "https://ds9.lemmy.ml/post/2", | ||
"attributedTo": "https://ds9.lemmy.ml/u/lemmy_alpha", | ||
"to": [ | ||
"https://ds9.lemmy.ml/c/main", | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"name": "test 2", | ||
"cc": [], | ||
"mediaType": "text/html", | ||
"attachment": [], | ||
"commentsEnabled": true, | ||
"sensitive": false, | ||
"stickied": true, | ||
"published": "2023-02-06T06:42:41.939437+00:00", | ||
"language": { | ||
"identifier": "de", | ||
"name": "Deutsch" | ||
}, | ||
"audience": "https://ds9.lemmy.ml/c/main" | ||
}, | ||
{ | ||
"type": "Page", | ||
"id": "https://ds9.lemmy.ml/post/1", | ||
"attributedTo": "https://ds9.lemmy.ml/u/lemmy_alpha", | ||
"to": [ | ||
"https://ds9.lemmy.ml/c/main", | ||
"https://www.w3.org/ns/activitystreams#Public" | ||
], | ||
"name": "test 1", | ||
"cc": [], | ||
"mediaType": "text/html", | ||
"attachment": [], | ||
"commentsEnabled": true, | ||
"sensitive": false, | ||
"stickied": true, | ||
"published": "2023-02-06T06:42:37.119567+00:00", | ||
"language": { | ||
"identifier": "de", | ||
"name": "Deutsch" | ||
}, | ||
"audience": "https://ds9.lemmy.ml/c/main" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.