Skip to content

Commit

Permalink
Update PostID check starts with 'C' or 'D'
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Sep 18, 2024
1 parent 21cd0c0 commit 267ffcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/scraper/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func init() {
}

func GetData(postID string) (*InstaData, error) {
if len(postID) == 0 || postID[0] != 'C' {
if len(postID) == 0 || (postID[0] != 'C' && postID[0] != 'D') {
return nil, errors.New("postID is not a valid Instagram post ID")
}

Expand Down

0 comments on commit 267ffcc

Please sign in to comment.