instagram: no tratar como errores si no se puede descargar un post
This commit is contained in:
parent
18a9c5a465
commit
a3ec00fdda
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ func (r *Instagram) Respond(url *url.URL) (*common.Uploadable, common.Error) {
|
|||
lookup, err := r.lookup(url.String())
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
if strings.Index(url.Path, "/p/") != 0 {
|
||||
return nil, common.NotValid
|
||||
}
|
||||
return nil, common.HadError
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue