This commit is contained in:
Anthony Wang 2022-11-26 18:30:01 +00:00
parent 447650f21c
commit 41e9a10763
Signed by: a
GPG key ID: 42A5B952E6DD8D38
3 changed files with 5 additions and 5 deletions

View file

@ -2,9 +2,9 @@
*This describes Gitea's future federation capabilities, not what it can do currently.*
Gitea is federated using [ActivityPub](https://www.w3.org/TR/activitypub/) and the [ForgeFed extension](https://forgefed.org/) so you can interact with users and repositories from other instances as if they were on your own instance. By using the standardized ActivityPub protocol, users on any fediverse software such as [Mastodon](https://joinmastodon.org/) can follow Gitea users, star repos, receive activity updates, and comment on issues.
Gitea is federated using [ActivityPub](https://www.w3.org/TR/activitypub/) and the [ForgeFed extension](https://forgefed.org/) so you can interact with users and repositories from other instances as if they were on your own instance. By using the standardized ActivityPub protocol, users on any fediverse software such as [Mastodon](https://joinmastodon.org/) can follow Gitea users, star repositories, receive activity updates, and comment on issues.
Currently, C2S ActivityPub is not supported.
C2S ActivityPub is not supported because Gitea already has an existing API.
## Following

View file

@ -68,7 +68,7 @@ func Ticket(ctx *context.APIContext) {
ticket.Name = ap.NaturalLanguageValuesNew()
// Setting a NaturalLanguageValue to a number causes go-ap's JSON parsing to do weird things
// Workaround: set it to #1 instead of 1
err = ticket.Name.Set("en", ap.Content("#" + ctx.Params("id")))
err = ticket.Name.Set("en", ap.Content("#"+ctx.Params("id")))
if err != nil {
ctx.ServerError("Set Name", err)
return

View file

@ -28,7 +28,7 @@ func AuthorizeInteraction(ctx *context.Context) {
ctx.ServerError("Fetch", err)
return
}
ap.ItemTyperFunc = forgefed.GetItemByType
ap.JSONItemUnmarshal = forgefed.JSONUnmarshalerFn
ap.NotEmptyChecker = forgefed.NotEmpty
@ -37,7 +37,7 @@ func AuthorizeInteraction(ctx *context.Context) {
ctx.ServerError("UnmarshalJSON", err)
return
}
switch object.GetType() {
case ap.PersonType:
// Federated user