instagram: aceptar posts
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2023-08-08 15:06:12 -03:00
parent 1f56246e8d
commit dff20d26ca

View file

@ -19,7 +19,7 @@ func (r *Instagram) Respond(url *url.URL) (*common.Uploadable, common.Error) {
if url.Hostname() != "instagram.com" && url.Hostname() != "www.instagram.com" { if url.Hostname() != "instagram.com" && url.Hostname() != "www.instagram.com" {
return nil, common.NotValid return nil, common.NotValid
} }
if strings.Index(url.Path, "/reel/") != 0 { if strings.Index(url.Path, "/reel/") != 0 && strings.Index(url.Path, "/p/") != 0 {
return nil, common.NotValid return nil, common.NotValid
} }