Get channel name from "token"
This commit is contained in:
parent
f76979298d
commit
9a6ecac4d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user