diff --git a/cmd/eksterd/micropub.go b/cmd/eksterd/micropub.go index 2236d2d..c5f7508 100644 --- a/cmd/eksterd/micropub.go +++ b/cmd/eksterd/micropub.go @@ -45,8 +45,12 @@ func (h *micropubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { channel, err := redis.String(conn.Do("HGET", "sources", sourceID)) if err != nil { - http.Error(w, "Unknown source", 400) - return + + channel, err = redis.String(conn.Do("HGET", "token:"+sourceID, "channel")) + if err != nil { + http.Error(w, "Unknown source", 400) + return + } } var item microsub.Item