Skip to content

Commit

Permalink
Add /embed/ to get real /share/ post ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 12, 2025
1 parent 077c05c commit a108f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func mediaidToCode(mediaID int) string {
}

func getSharePostID(postID string) (string, error) {
req, err := http.NewRequest("HEAD", "https://www.instagram.com/share/reel/"+postID+"/", nil)
req, err := http.NewRequest("HEAD", "https://www.instagram.com/share/reel/"+postID+"/embed/", nil)
if err != nil {
return postID, err
}
Expand Down

0 comments on commit a108f1f

Please sign in to comment.