From 460e2fb6444e43f6acc91ba16b4bd10917ddd89b Mon Sep 17 00:00:00 2001
From: Michael Jerger <michael.jerger@meissa-gmbh.de>
Date: Fri, 10 Nov 2023 14:10:23 +0100
Subject: [PATCH] prepare next steps

---
 docs/unsure-where-to-put/adr_star_activity.md | 9 +++++++++
 routers/api/v1/activitypub/repository.go      | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/docs/unsure-where-to-put/adr_star_activity.md b/docs/unsure-where-to-put/adr_star_activity.md
index c17fb04393..4ed9a8fe9f 100644
--- a/docs/unsure-where-to-put/adr_star_activity.md
+++ b/docs/unsure-where-to-put/adr_star_activity.md
@@ -1,4 +1,5 @@
 ```
+# edn notation
 {@context [
     "as":    "https://www.w3.org/ns/activitystreams#",
     "forge": "https://forgefed.org/ns#",],
@@ -8,6 +9,14 @@
   ::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
   ::as/object "https://codeberg.org/api/activitypub/repository-id/12"
 }
+
+# json notation
+{"id": "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
+  "type": "Star",
+  "source": "forgejo",
+  "actor": "https://repo.prod.meissa.de/api/activitypub/user-id/1",
+  "object": "https://codeberg.org/api/activitypub/repository-id/1"
+}
 ```
 
 This way of expressing stars will have the following features:
diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go
index 3a8e8486c9..b82643d91d 100644
--- a/routers/api/v1/activitypub/repository.go
+++ b/routers/api/v1/activitypub/repository.go
@@ -75,6 +75,8 @@ func RepositoryInbox(ctx *context.APIContext) {
 
 	log.Info("RepositoryInbox: Activity Source %v,", opt.Source)
 
+	// assume actor is: "actor": "https://codeberg.org/api/activitypub/user-id/12345"
+
 	ctx.Status(http.StatusNoContent)
 
 }