From 40cadd784250646d2def5ead9141500631cb9926 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 30 Aug 2024 17:27:33 -0400 Subject: [PATCH] Go fmt files --- actor.go | 1 - http.go | 2 +- remoteActor.go | 1 - util.go | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/actor.go b/actor.go index 462e246..5d67419 100644 --- a/actor.go +++ b/actor.go @@ -325,7 +325,6 @@ func (a *Actor) newID() (hash string, url string) { // TODO // CreateNote posts an activityPub note to our followers -// func (a *Actor) CreateNote(content, inReplyTo string) { // for now I will just write this to the outbox hash, id := a.newItemID() diff --git a/http.go b/http.go index be750c8..937ea22 100644 --- a/http.go +++ b/http.go @@ -241,7 +241,7 @@ func Serve(actors map[string]Actor) { // pixelfed doesn't return the original follow thus the id is wrong so we // need to just check if we requested this actor if _, ok := actor.requested[acceptor]; !ok { - log.Info("We never requested this follow from " + acceptor +", ignoring the Accept") + log.Info("We never requested this follow from " + acceptor + ", ignoring the Accept") return } // if pixelfed fixes https://github.com/pixelfed/pixelfed/issues/1710 we should uncomment diff --git a/remoteActor.go b/remoteActor.go index 86e99a2..e37c56c 100644 --- a/remoteActor.go +++ b/remoteActor.go @@ -22,7 +22,6 @@ type RemoteActor struct { // all the info required for an actor we want to // interact with (not essentially sitting in our instance) func NewRemoteActor(iri string) (RemoteActor, error) { - info, err := get(iri) if err != nil { log.Info("Couldn't get remote actor information") diff --git a/util.go b/util.go index fc9be80..24a4a26 100644 --- a/util.go +++ b/util.go @@ -23,7 +23,7 @@ func isSuccess(code int) bool { code == http.StatusNoContent } -//PrettyPrint maps +// PrettyPrint maps func PrettyPrint(themap map[string]interface{}) { b, err := json.MarshalIndent(themap, "", " ") if err != nil { @@ -32,7 +32,7 @@ func PrettyPrint(themap map[string]interface{}) { log.Print(string(b)) } -//PrettyPrintJSON does what it's name says +// PrettyPrintJSON does what it's name says func PrettyPrintJSON(theJSON []byte) { dst := new(bytes.Buffer) json.Indent(dst, theJSON, "", "\t")