aboutsummaryrefslogtreecommitdiff
path: root/follow.go
diff options
context:
space:
mode:
authorFChannel0 <77419041+FChannel0@users.noreply.github.com>2021-08-17 12:41:20 -0700
committerGitHub <noreply@github.com>2021-08-17 12:41:20 -0700
commit21917eb2ea72fe40d70c2c991e821aace5430c23 (patch)
tree4dd4122a8661231181ead7c00bdc92c3d498589f /follow.go
parent149f71db2d6e1b704ff2712393da5276a622d4dd (diff)
parentc8e0fb94bac60679ccebfcdec9cefb32674b2eec (diff)
Merge pull request #51 from KushBlazingJudah/development
go fmt and docker configuration
Diffstat (limited to 'follow.go')
-rw-r--r--follow.go11
1 files changed, 4 insertions, 7 deletions
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) {