diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 12:29:03 -0300 |
---|---|---|
committer | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 12:30:26 -0300 |
commit | b0bb22aa9c9f1d5b2e582e58bf20c6856feb87ec (patch) | |
tree | 1107a5cbfd05f9b696d7ebacce9475f003db7a4c /follow.go | |
parent | 149f71db2d6e1b704ff2712393da5276a622d4dd (diff) |
go fmt
Diffstat (limited to 'follow.go')
-rw-r--r-- | follow.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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) { |