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 4f131fe4e0..c204e6211c 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 83d5ab72a1..bb969f2c3c 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 29a286d489..095cd43086 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 88bd888e28..d697c62d9a 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 55b0cbb293..e5b0c1de81 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 b3537c6d32..553ea535f9 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 8982afb7b6..c1638f6f01 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 c2be6f661e..4410fca27b 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 65db69ee20..86681bf9d7 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 60d0143ea2..3bb54f7790 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 d422d26fac..a7b1d23d94 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 3576439f43..afc0c05057 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.