From 05d9a6dc1de8cf22e443e1a637bba089cee469bf Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 1 Jan 2023 18:09:58 +0000 Subject: [PATCH] Remove unneeded ap.Item() --- services/activitypub/activities.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/activitypub/activities.go b/services/activitypub/activities.go index d911e926f6..f2835a28e7 100644 --- a/services/activitypub/activities.go +++ b/services/activitypub/activities.go @@ -17,7 +17,7 @@ func Follow(actorUser, followUser *user_model.User) *ap.Follow { Type: ap.FollowType, Actor: ap.PersonNew(ap.IRI(actorUser.GetIRI())), Object: ap.PersonNew(ap.IRI(followUser.GetIRI())), - To: ap.ItemCollection{ap.Item(ap.IRI(followUser.GetIRI() + "/inbox"))}, + To: ap.ItemCollection{ap.IRI(followUser.GetIRI() + "/inbox")}, } } @@ -27,7 +27,7 @@ func Unfollow(actorUser, followUser *user_model.User) *ap.Undo { Type: ap.UndoType, Actor: ap.PersonNew(ap.IRI(actorUser.GetIRI())), Object: Follow(actorUser, followUser), - To: ap.ItemCollection{ap.Item(ap.IRI(followUser.GetIRI() + "/inbox"))}, + To: ap.ItemCollection{ap.IRI(followUser.GetIRI() + "/inbox")}, } } @@ -57,6 +57,6 @@ func Create(user *user_model.User, object ap.ObjectOrLink, to string) *ap.Create Type: ap.CreateType, Actor: ap.PersonNew(ap.IRI(user.GetIRI())), Object: object, - To: ap.ItemCollection{ap.Item(ap.IRI(to + "/inbox"))}, + To: ap.ItemCollection{ap.IRI(to + "/inbox")}, } }