Fix unfollow routing.

This commit is contained in:
Naoki Kosaka 2019-07-28 20:08:31 +09:00
parent 60a9fe0d41
commit 02683a8f54

View File

@ -230,7 +230,7 @@ func handleInbox(writer http.ResponseWriter, request *http.Request, activityDeco
writer.WriteHeader(400) writer.WriteHeader(400)
writer.Write([]byte(err.Error())) writer.Write([]byte(err.Error()))
} else { } else {
relayState.RedisClient.Del("relay:subscription:" + domain.Host) relayState.DelSubscription(domain.Host)
fmt.Println("Accept Unfollow Request : ", activity.Actor) fmt.Println("Accept Unfollow Request : ", activity.Actor)
writer.WriteHeader(202) writer.WriteHeader(202)