instagram: arreglar chequeo de bot
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2023-09-05 16:11:27 -03:00
parent f54ed73e9c
commit 79fdc8b479

View file

@ -26,7 +26,7 @@ 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 {
if strings.Index(url.Path, "/p/") == 0 {
return nil, common.NotValid
}
return nil, common.HadError