From 2d98b226046109067ef8ecb7ce0ef940e507f92c Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 5 Jan 2024 17:11:20 +0100 Subject: [PATCH] blog the next test release --- docs/unsure-where-to-put/blog.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/unsure-where-to-put/blog.md b/docs/unsure-where-to-put/blog.md index f66414aa61..80b7bbed43 100644 --- a/docs/unsure-where-to-put/blog.md +++ b/docs/unsure-where-to-put/blog.md @@ -13,7 +13,7 @@ Hey, we ar on our way to implement federated stars. We created a test instance t 1. **The repo** ready to receive your star is located at: https://federated-repo.prod.meissa.de/buero/star-me 2. **Post a star activity** at: https://federated-repo.prod.meissa.de/api/swagger#/activitypub/activitypubRepository & press the `Try It Out`` button. The input can look like: ![star-via-api.png](star-via-api.png) 3. Put "1" in to the repo & add the following payload - ``` + ``` json { "id": "https://federated-repo.prod.meissa.de/api/v1/activitypub/user-id/1/outbox/12", "type": "Star", @@ -29,12 +29,19 @@ At the moment we discuss threats arising by this feature. If you are interested # 2024-01 Federated staring with Like Activity +We did the next step. We now use a plain Like Activity for expressing the Star action. +In addition we fixed some bugs & improved security by validating every input we get on federation. - ``` - { - "id": "https://federated-repo.prod.meissa.de/api/v1/activitypub/user-id/1/outbox/12", - "type": "Like", - "actor": "https://federated-repo.prod.meissa.de/api/v1/activitypub/user-id/12", - "object": "https://federated-repo.prod.meissa.de/api/v1/activitypub/repository-id/1" - } - ``` +At https://federated-repo.prod.meissa.de/buero/star-me you can try out the current code the same way as described above with the following activity (maybe find an unused user by alteranting the actors user-id). + +``` json +{ + "id": "https://federated-repo.prod.meissa.de/api/v1/activitypub/user-id/1/outbox/12", + "type": "Like", + "actor": "https://federated-repo.prod.meissa.de/api/v1/activitypub/user-id/12", + "object": "https://federated-repo.prod.meissa.de/api/v1/activitypub/repository-id/1", + "startTime": "2024-01-0531T23:00:00-08:00" +} +``` + +In case of interest find the current roadmap at: https://codeberg.org/forgejo/forgejo/pulls/1680