can only follow users, not anything else
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 00:59:20 -0400
1 files changed,
7 insertions(+),
2 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -337,8 +337,13 @@ case "Pong":
obj, _ := jsongetstring(j, "object") log.Printf("pong from %s: %s", who, obj) case "Follow": - log.Printf("updating honker follow: %s", who) - rubadubdub(user, j) + obj, _ := jsongetstring(j, "object") + if obj == user.URL { + log.Printf("updating honker follow: %s", who) + rubadubdub(user, j) + } else { + log.Printf("can't follow %s", obj) + } case "Accept": db := opendatabase() log.Printf("updating honker accept: %s", who)