Changes
6 changed files (+10/-7)
-
-
@@ -9,7 +9,7 @@ "testing"activities_model "code.gitea.io/gitea/models/activities" "code.gitea.io/gitea/models/db" issues_model "code.gitea.io/gitea/models/issues" issue_model "code.gitea.io/gitea/models/issues" repo_model "code.gitea.io/gitea/models/repo" "code.gitea.io/gitea/models/unittest" user_model "code.gitea.io/gitea/models/user"
-
@@ -30,7 +30,7 @@ func TestAction_GetRepoLink(t *testing.T) {assert.NoError(t, unittest.PrepareTestDatabase()) repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) owner := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: repo.OwnerID}) comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 2}) comment := unittest.AssertExistsAndLoadBean(t, &issue_model.Comment{ID: 2}) action := &activities_model.Action{RepoID: repo.ID, CommentID: comment.ID} setting.AppSubURL = "/suburl" expected := path.Join(setting.AppSubURL, owner.Name, repo.Name)
-
-
-
@@ -1,4 +1,4 @@// Copyright 2023 The Forgejo Authors. All rights reserved. // Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2023 The Forgejo Authors. All rights reserved. // Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,5 +1,6 @@// Copyright 2021 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package integration
-
-
-
@@ -1,5 +1,6 @@// Copyright 2021 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package integration
-
-
-
@@ -1,5 +1,6 @@// Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package integration
-