Move models/forgefed to modules/forgefed

This commit is contained in:
Anthony Wang 2022-07-27 10:25:40 -05:00
parent f0cded88bf
commit d909c97da9
Signed by: a
GPG key ID: BC96B00AEC5F2D76
16 changed files with 10 additions and 10 deletions

View file

@ -8,8 +8,8 @@ import (
"net/http"
"net/url"
"code.gitea.io/gitea/models/forgefed"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/forgefed"
ap "github.com/go-ap/activitypub"
)

View file

@ -7,9 +7,9 @@ package activitypub
import (
"context"
"code.gitea.io/gitea/models/forgefed"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/services/migrations"
repo_service "code.gitea.io/gitea/services/repository"
@ -49,7 +49,7 @@ func CreateFork(ctx context.Context, instance, username, reponame, destUsername
func ReceiveFork(ctx context.Context, create ap.Create) error {
// TODO: Clean this up
repository := create.Object.(*forgefed.Repository)
actor, err := personIRIToUser(ctx, create.Actor.GetLink())

View file

@ -7,7 +7,7 @@ package activitypub
import (
"context"
"code.gitea.io/gitea/models/forgefed"
"code.gitea.io/gitea/modules/forgefed"
)
// Create an issue

View file

@ -9,9 +9,9 @@ import (
"fmt"
"strings"
"code.gitea.io/gitea/models/forgefed"
issues_model "code.gitea.io/gitea/models/issues"
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/log"
pull_service "code.gitea.io/gitea/services/pull"
)

View file

@ -6,7 +6,7 @@ package activitypub
import (
//"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/forgefed"
"code.gitea.io/gitea/modules/forgefed"
/*repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/repository"

View file

@ -10,8 +10,8 @@ import (
"net/http"
"net/url"
"code.gitea.io/gitea/models/forgefed"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/httplib"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"

View file

@ -11,11 +11,11 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/forgefed"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/activitypub"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/routers/api/v1/utils"

View file

@ -9,9 +9,9 @@ import (
"net/http"
"strings"
"code.gitea.io/gitea/models/forgefed"
"code.gitea.io/gitea/modules/activitypub"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"

View file

@ -7,9 +7,9 @@ package activitypub
import (
"net/http"
"code.gitea.io/gitea/models/forgefed"
"code.gitea.io/gitea/modules/activitypub"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/forgefed"
"code.gitea.io/gitea/modules/log"
ap "github.com/go-ap/activitypub"