can only follow users, not anything else
This commit is contained in:
parent
99d89bb62c
commit
4441d906f6
9
honk.go
9
honk.go
|
@ -337,8 +337,13 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
obj, _ := jsongetstring(j, "object")
|
obj, _ := jsongetstring(j, "object")
|
||||||
log.Printf("pong from %s: %s", who, obj)
|
log.Printf("pong from %s: %s", who, obj)
|
||||||
case "Follow":
|
case "Follow":
|
||||||
log.Printf("updating honker follow: %s", who)
|
obj, _ := jsongetstring(j, "object")
|
||||||
rubadubdub(user, j)
|
if obj == user.URL {
|
||||||
|
log.Printf("updating honker follow: %s", who)
|
||||||
|
rubadubdub(user, j)
|
||||||
|
} else {
|
||||||
|
log.Printf("can't follow %s", obj)
|
||||||
|
}
|
||||||
case "Accept":
|
case "Accept":
|
||||||
db := opendatabase()
|
db := opendatabase()
|
||||||
log.Printf("updating honker accept: %s", who)
|
log.Printf("updating honker accept: %s", who)
|
||||||
|
|
Loading…
Reference in New Issue