1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-15 19:42:04 +00:00

rename star -> ForgeLike

This commit is contained in:
Michael Jerger 2024-01-03 18:29:12 +01:00
parent 4473fb788a
commit 3ab2d9a449
6 changed files with 46 additions and 43 deletions

View file

@ -74,7 +74,7 @@ func RepositoryInbox(ctx *context.APIContext) {
// - name: body
// in: body
// schema:
// "$ref": "#/definitions/Star"
// "$ref": "#/definitions/ForgeLike"
// responses:
// "204":
// "$ref": "#/responses/empty"
@ -84,7 +84,7 @@ func RepositoryInbox(ctx *context.APIContext) {
repository := ctx.Repo.Repository
log.Info("RepositoryInbox: repo: %v", repository)
activity := web.GetForm(ctx).(*forgefed.Star)
activity := web.GetForm(ctx).(*forgefed.ForgeLike)
log.Info("RepositoryInbox: activity:%v", activity)
// parse actorID (person)

View file

@ -900,7 +900,7 @@ func Routes() *web.Route {
m.Get("", activitypub.Repository)
m.Post("/inbox", // ToDo: Post or Put?
// TODO: bind ativities here
bind(forgefed.Star{}),
bind(forgefed.ForgeLike{}),
// TODO: activitypub.ReqHTTPSignature(),
activitypub.RepositoryInbox)
}, context_service.RepositoryIDAssignmentAPI())

View file

@ -16,7 +16,7 @@ import (
// swagger:response parameterBodies
type swaggerParameterBodies struct {
// in:body
Star ffed.Star
Star ffed.ForgeLike
// in:body
AddCollaboratorOption api.AddCollaboratorOption