aboutsummaryrefslogtreecommitdiff
path: root/Follow.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 11:02:42 -0800
committerFChannel <=>2021-01-25 11:02:42 -0800
commit3b923a6f098cacf35f309e44a4c67a6a576fba4e (patch)
tree967d50793a086b9b08d25a83f64f29089d1fcf6c /Follow.go
parentf6ccb7e03ff6aff01acd7f2b40346156e7b8b10b (diff)
follow cache sync
Diffstat (limited to 'Follow.go')
-rw-r--r--Follow.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/Follow.go b/Follow.go
index 8659604..5fa1a15 100644
--- a/Follow.go
+++ b/Follow.go
@@ -199,11 +199,11 @@ func SetActorFollowingDB(db *sql.DB, activity Activity) Activity {
if alreadyFollow {
query = `delete from following where id=$1 and following=$2`
activity.Summary = activity.Object.Actor.Id + " Unfollowing " + activity.Actor.Id
- DeleteActorCache(db, activity.Actor.Id)
+ go DeleteActorCache(db, activity.Actor.Id)
} else {
query = `insert into following (id, following) values ($1, $2)`
activity.Summary = activity.Object.Actor.Id + " Following " + activity.Actor.Id
- WriteActorToCache(db, activity.Actor.Id)
+ go WriteActorToCache(db, activity.Actor.Id)
}
_, err := db.Exec(query, activity.Object.Actor.Id, activity.Actor.Id)