From 68318f263295f7fd8db8a0b6468b8f5514b5d66c Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 20 Oct 2023 16:12:37 +0200 Subject: [PATCH] considerations about star activity --- docs/unsure-where-to-put/adr_star_activity.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/unsure-where-to-put/adr_star_activity.md diff --git a/docs/unsure-where-to-put/adr_star_activity.md b/docs/unsure-where-to-put/adr_star_activity.md new file mode 100644 index 0000000000..bc8573d7cb --- /dev/null +++ b/docs/unsure-where-to-put/adr_star_activity.md @@ -0,0 +1,22 @@ +``` +{@context [ + "as": "https://www.w3.org/ns/activitystreams#", + "forge": "https://forgefed.org/ns#",], + ::as/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345", + ::as/type "Star", + ::forge/source "forgejo", + ::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1", + ::as/object "https://codeberg.org/api/repos/forgejo/forgejo" +} +``` + +This way of expressing stars will have the following features: + +1. !ctor & object may be dereferenced by (ap-)api +2. The activity can be referenced itself (e.g. in order to express a result of the triggered action) +3. Star is a special case of a Like. Star only happens in ForgeFed context. Different things should be named differnt ... +4. With the `source` given it would be more easy to distinguish the uri layout for object and actor id's and make implementation more straight forward + +See also: +1. spec in clojure: https://repo.prod.meissa.de/meissa/activity-pub-poc/src/branch/forgefed_star/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc#L36-L41 +