Skip to content

Commit

Permalink
Get new share post id with remote scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Feb 1, 2025
1 parent 077c05c commit d339ea4
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 @@ -98,7 +98,7 @@ func Embed(w http.ResponseWriter, r *http.Request) {
postID = mediaidToCode(mediaID)
} else if strings.Contains(r.URL.Path, "/share/") {
postID, err = getSharePostID(postID)
if err != nil {
if err != nil && len(scraper.RemoteScraperAddr) == 0 {
slog.Error("Failed to get new postID from share URL", "postID", postID, "err", err)
viewsData.Description = "Failed to get new postID from share URL"
views.Embed(viewsData, w)
Expand Down

0 comments on commit d339ea4

Please sign in to comment.