From abdf56dde1ed2402f5911add9d0888be4d3b432f Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 9 Dec 2023 14:27:29 +0100 Subject: [PATCH] move forgefed to models --- {modules => models}/forgefed/forgefed.go | 0 {modules => models}/forgefed/repository.go | 0 {modules => models}/forgefed/repository_test.go | 0 {modules => models}/forgefed/star.go | 0 {modules => models}/forgefed/star_test.go | 0 routers/api/v1/activitypub/repository.go | 2 +- routers/api/v1/activitypub/response.go | 2 +- routers/api/v1/swagger/options.go | 2 +- templates/swagger/v1_json.tmpl | 4 ++-- 9 files changed, 5 insertions(+), 5 deletions(-) rename {modules => models}/forgefed/forgefed.go (100%) rename {modules => models}/forgefed/repository.go (100%) rename {modules => models}/forgefed/repository_test.go (100%) rename {modules => models}/forgefed/star.go (100%) rename {modules => models}/forgefed/star_test.go (100%) diff --git a/modules/forgefed/forgefed.go b/models/forgefed/forgefed.go similarity index 100% rename from modules/forgefed/forgefed.go rename to models/forgefed/forgefed.go diff --git a/modules/forgefed/repository.go b/models/forgefed/repository.go similarity index 100% rename from modules/forgefed/repository.go rename to models/forgefed/repository.go diff --git a/modules/forgefed/repository_test.go b/models/forgefed/repository_test.go similarity index 100% rename from modules/forgefed/repository_test.go rename to models/forgefed/repository_test.go diff --git a/modules/forgefed/star.go b/models/forgefed/star.go similarity index 100% rename from modules/forgefed/star.go rename to models/forgefed/star.go diff --git a/modules/forgefed/star_test.go b/models/forgefed/star_test.go similarity index 100% rename from modules/forgefed/star_test.go rename to models/forgefed/star_test.go diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index e6ddb62812..b3c88f786e 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -13,11 +13,11 @@ import ( "code.gitea.io/gitea/models/activitypub" "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" api "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/modules/util" diff --git a/routers/api/v1/activitypub/response.go b/routers/api/v1/activitypub/response.go index 1c648ce3f8..e3997c60cb 100644 --- a/routers/api/v1/activitypub/response.go +++ b/routers/api/v1/activitypub/response.go @@ -8,9 +8,9 @@ import ( "net/http" "code.gitea.io/gitea/models/db" + "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" diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 0d56aa09bf..13b04e62fb 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -4,7 +4,7 @@ package swagger import ( - ffed "code.gitea.io/gitea/modules/forgefed" + ffed "code.gitea.io/gitea/models/forgefed" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/services/forms" ) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 31d6987d7a..f268929382 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -23180,7 +23180,7 @@ }, "SourceType": { "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/forgefed" + "x-go-package": "code.gitea.io/gitea/models/forgefed" }, "Star": { "description": "Star activity data type", @@ -23190,7 +23190,7 @@ "$ref": "#/definitions/SourceType" } }, - "x-go-package": "code.gitea.io/gitea/modules/forgefed" + "x-go-package": "code.gitea.io/gitea/models/forgefed" }, "StateType": { "description": "StateType issue state type",