all repos — honk @ 5919024da1616a2634b0a2bb121d21076f604350

my fork of honk

can only follow users, not anything else
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 00:59:20 -0400
commit

5919024da1616a2634b0a2bb121d21076f604350

parent

e445336534e0b42be9523e086679175494da3686

1 files changed, 7 insertions(+), 2 deletions(-)

jump to
M honk.gohonk.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)