Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star

forgejo-federated-star
erik 6 months ago
commit b18b3d1a2e

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

@ -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)
}

Loading…
Cancel
Save