instagram: aceptar posts
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
1f56246e8d
commit
dff20d26ca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue