instagram: arreglar chequeo de bot
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f54ed73e9c
commit
79fdc8b479
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ func (r *Instagram) Respond(url *url.URL) (*common.Uploadable, common.Error) {
|
||||||
lookup, err := r.lookup(url.String())
|
lookup, err := r.lookup(url.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
if strings.Index(url.Path, "/p/") != 0 {
|
if strings.Index(url.Path, "/p/") == 0 {
|
||||||
return nil, common.NotValid
|
return nil, common.NotValid
|
||||||
}
|
}
|
||||||
return nil, common.HadError
|
return nil, common.HadError
|
||||||
|
|
Reference in a new issue