Skip items without uid or url
This commit is contained in:
parent
29658eb096
commit
3590bbdb65
|
|
@ -225,7 +225,8 @@ func (b *memoryBackend) feedItems(fetchURL, contentType string, body io.Reader)
|
||||||
} else if uid, e := r["url"]; e {
|
} else if uid, e := r["url"]; e {
|
||||||
r["_id"] = hex.EncodeToString([]byte(uid.(string)))
|
r["_id"] = hex.EncodeToString([]byte(uid.(string)))
|
||||||
} else {
|
} else {
|
||||||
r["_id"] = "" // generate random value
|
continue
|
||||||
|
//r["_id"] = "" // generate random value
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, e := r["published"]; e {
|
if _, e := r["published"]; e {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user