mirror of
1
Fork 0

prepare next steps

This commit is contained in:
Michael Jerger 2023-11-10 14:10:23 +01:00
parent 5b01517c12
commit 460e2fb644
2 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,5 @@
``` ```
# edn notation
{@context [ {@context [
"as": "https://www.w3.org/ns/activitystreams#", "as": "https://www.w3.org/ns/activitystreams#",
"forge": "https://forgefed.org/ns#",], "forge": "https://forgefed.org/ns#",],
@ -8,6 +9,14 @@
::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1", ::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
::as/object "https://codeberg.org/api/activitypub/repository-id/12" ::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: This way of expressing stars will have the following features:

View File

@ -75,6 +75,8 @@ func RepositoryInbox(ctx *context.APIContext) {
log.Info("RepositoryInbox: Activity Source %v,", opt.Source) log.Info("RepositoryInbox: Activity Source %v,", opt.Source)
// assume actor is: "actor": "https://codeberg.org/api/activitypub/user-id/12345"
ctx.Status(http.StatusNoContent) ctx.Status(http.StatusNoContent)
} }