Fix build errors
parent
ec1ffd66e3
commit
f0269889c0
|
@ -7,8 +7,8 @@ package activitypub
|
|||
import (
|
||||
"context"
|
||||
|
||||
"code.gitea.io/gitea/models"
|
||||
"code.gitea.io/gitea/modules/forgefed"
|
||||
repo_module "code.gitea.io/gitea/modules/repository"
|
||||
repo_service "code.gitea.io/gitea/services/repository"
|
||||
)
|
||||
|
||||
|
@ -21,7 +21,7 @@ func FederatedRepoNew(ctx context.Context, repository *forgefed.Repository) erro
|
|||
}
|
||||
|
||||
// TODO: Check if repo already exists
|
||||
repo, err := repo_service.CreateRepository(user, user, models.CreateRepoOptions{
|
||||
repo, err := repo_service.CreateRepository(user, user, repo_module.CreateRepoOptions{
|
||||
Name: repository.Name.String(),
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"code.gitea.io/gitea/models"
|
||||
"code.gitea.io/gitea/models/activities"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
|
@ -172,9 +172,9 @@ func PersonOutbox(ctx *context.APIContext) {
|
|||
outbox := ap.OrderedCollectionPageNew(orderedCollection)
|
||||
outbox.First = ap.IRI(link + "/outbox?page=1")
|
||||
|
||||
feed, err := models.GetFeeds(ctx, models.GetFeedsOptions{
|
||||
feed, err := activities.GetFeeds(ctx, activities.GetFeedsOptions{
|
||||
RequestedUser: ctx.ContextUser,
|
||||
RequestedActionType: models.ActionCreateRepo,
|
||||
RequestedActionType: activities.ActionCreateRepo,
|
||||
Actor: ctx.Doer,
|
||||
IncludePrivate: false,
|
||||
IncludeDeleted: false,
|
||||
|
|
Loading…
Reference in New Issue