prepare next steps

forgejo-federated-star
Michael Jerger 6 months ago
parent bfb15358a8
commit 9bec7732cf

@ -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:

@ -71,5 +71,7 @@ func RepositoryInbox(ctx *context.APIContext) {
log.Info("RepositoryInbox: repo %v, %v", ctx.Repo.Repository.OwnerName, ctx.Repo.Repository.Name)
log.Info("RepositoryInbox: doer %v, %v", ctx.Doer.Name, ctx.Doer.ID)
// assume actor is: "actor": "https://codeberg.org/api/activitypub/user-id/12345"
ctx.Status(http.StatusNoContent)
}

Loading…
Cancel
Save