Changes
25 changed files (+32/-31)
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package forgefed
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,11 +1,10 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub import ( "context" "encoding/json" "errors" "net/url" "strconv"
-
@@ -16,6 +15,7 @@ issues_model "code.gitea.io/gitea/models/issues"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/json" repo_module "code.gitea.io/gitea/modules/repository" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/services/activitypub"
-
@@ -26,7 +26,6 @@ user_service "code.gitea.io/gitea/services/user"ap "github.com/go-ap/activitypub" ) // Create a new federated user from a Person object func createPerson(ctx context.Context, person *ap.Person) error {
-
@@ -94,7 +93,7 @@ err = user_model.CreateUser(user)if err != nil { return err } if person.Icon != nil { // Fetch and save user icon icon, err := ap.ToObject(person.Icon)
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
@@ -26,6 +26,5 @@ objectUser, err := user_model.GetUserByIRI(ctx, objectIRI.String())if err != nil { return err } user_service.DeleteUser(ctx, objectUser, true) return nil return user_service.DeleteUser(ctx, objectUser, true) }
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
@@ -140,7 +140,7 @@ return createComment(ctx, n)}) case ap.DeleteType: // Deleting a user delete(ctx, activity) err = delete(ctx, activity) default: err = fmt.Errorf("unsupported ActivityStreams activity type: %s", activity.GetType()) }
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,4 @@// Copyright 2022 The Gitea Authors. All rights reserved. // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub
-
-
-
@@ -1,4 +1,7 @@package activitypub; // Copyright 2023 The Forgejo Authors. All rights reserved. // SPDX-License-Identifier: MIT package activitypub type WebfingerJRD struct { Subject string `json:"subject,omitempty"`
-