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 {
|
||||
r["_id"] = hex.EncodeToString([]byte(uid.(string)))
|
||||
} else {
|
||||
r["_id"] = "" // generate random value
|
||||
continue
|
||||
//r["_id"] = "" // generate random value
|
||||
}
|
||||
|
||||
if _, e := r["published"]; e {
|
||||
|
|
Loading…
Reference in New Issue
Block a user