From b0bb22aa9c9f1d5b2e582e58bf20c6856feb87ec Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Sun, 15 Aug 2021 12:29:03 -0300 Subject: go fmt --- follow.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'follow.go') diff --git a/follow.go b/follow.go index b4431dc..8dcd312 100644 --- a/follow.go +++ b/follow.go @@ -34,7 +34,6 @@ func GetActorFollowers(w http.ResponseWriter, db *sql.DB, id string) { w.Write(enc) } - func GetActorFollowingDB(db *sql.DB, id string) []ObjectBase { var followingCollection []ObjectBase query := `select following from following where id=$1` @@ -164,7 +163,7 @@ func IsAlreadyFollowing(db *sql.DB, actor string, follow string) bool { } } - return false; + return false } func IsAlreadyFollower(db *sql.DB, actor string, follow string) bool { @@ -176,7 +175,7 @@ func IsAlreadyFollower(db *sql.DB, actor string, follow string) bool { } } - return false; + return false } func SetActorFollowerDB(db *sql.DB, activity Activity) Activity { @@ -202,7 +201,7 @@ func SetActorFollowerDB(db *sql.DB, activity Activity) Activity { activity.Type = "Accept" return activity } else { - query = `insert into follower (id, follower) values ($1, $2)` + query = `insert into follower (id, follower) values ($1, $2)` activity.Summary = activity.Object.Actor + " Follow " + activity.Actor.Id _, err := db.Exec(query, activity.Actor.Id, activity.Object.Actor) @@ -216,7 +215,6 @@ func SetActorFollowerDB(db *sql.DB, activity Activity) Activity { return activity } - return activity } @@ -283,8 +281,7 @@ func SetActorFollowingDB(db *sql.DB, activity Activity) Activity { return activity } - - return activity + return activity } func AutoFollow(db *sql.DB, actor string) { -- cgit v1.2.3