mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
prepare next steps
This commit is contained in:
parent
5b01517c12
commit
460e2fb644
2 changed files with 11 additions and 0 deletions
|
@ -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…
Reference in a new issue