From b480c52f602fe0234089e0bb80292ecc8c1db3fd Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 19 Mar 2022 08:55:58 -0500 Subject: [PATCH] Change 2021 to 2022, properly format package imports Signed-off-by: Anthony Wang --- integrations/api_activitypub_person_test.go | 4 ++-- modules/activitypub/client.go | 2 +- modules/activitypub/client_test.go | 2 +- modules/activitypub/clock.go | 2 +- modules/activitypub/clock_test.go | 2 +- modules/activitypub/hack_16834.go | 2 +- modules/activitypub/hack_16834_test.go | 2 +- modules/activitypub/main_test.go | 2 +- modules/structs/activitypub.go | 2 +- routers/api/v1/activitypub/person.go | 2 +- routers/api/v1/activitypub/reqsignature.go | 2 +- routers/api/v1/swagger/activitypub.go | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go index 4f131fe4e..c204e6211 100644 --- a/integrations/api_activitypub_person_test.go +++ b/integrations/api_activitypub_person_test.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. @@ -16,10 +16,10 @@ import ( user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/activitypub" "code.gitea.io/gitea/modules/setting" + "github.com/go-fed/activity/pub" "github.com/go-fed/activity/streams" "github.com/go-fed/activity/streams/vocab" - "github.com/stretchr/testify/assert" ) diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index 83d5ab72a..bb969f2c3 100644 --- a/modules/activitypub/client.go +++ b/modules/activitypub/client.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go index 29a286d48..095cd4308 100644 --- a/modules/activitypub/client_test.go +++ b/modules/activitypub/client_test.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/clock.go b/modules/activitypub/clock.go index 88bd888e2..d697c62d9 100644 --- a/modules/activitypub/clock.go +++ b/modules/activitypub/clock.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/clock_test.go b/modules/activitypub/clock_test.go index 55b0cbb29..e5b0c1de8 100644 --- a/modules/activitypub/clock_test.go +++ b/modules/activitypub/clock_test.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/hack_16834.go b/modules/activitypub/hack_16834.go index b3537c6d3..553ea535f 100644 --- a/modules/activitypub/hack_16834.go +++ b/modules/activitypub/hack_16834.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/hack_16834_test.go b/modules/activitypub/hack_16834_test.go index 8982afb7b..c1638f6f0 100644 --- a/modules/activitypub/hack_16834_test.go +++ b/modules/activitypub/hack_16834_test.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go index c2be6f661..4410fca27 100644 --- a/modules/activitypub/main_test.go +++ b/modules/activitypub/main_test.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/modules/structs/activitypub.go b/modules/structs/activitypub.go index 65db69ee2..86681bf9d 100644 --- a/modules/structs/activitypub.go +++ b/modules/structs/activitypub.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 60d0143ea..3bb54f779 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go index d422d26fa..a7b1d23d9 100644 --- a/routers/api/v1/activitypub/reqsignature.go +++ b/routers/api/v1/activitypub/reqsignature.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go index 3576439f4..afc0c0505 100644 --- a/routers/api/v1/swagger/activitypub.go +++ b/routers/api/v1/swagger/activitypub.go @@ -1,4 +1,4 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. +// Copyright 2022 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file.