diff --git a/handlers/embed.go b/handlers/embed.go index a453b5e..ab9d26c 100644 --- a/handlers/embed.go +++ b/handlers/embed.go @@ -76,8 +76,7 @@ func Embed(w http.ResponseWriter, r *http.Request) { item, err := scraper.GetData(postID) if err != nil || len(item.Medias) == 0 { - viewsData.Description = "Post might not be available" - views.Embed(viewsData, w) + http.Redirect(w, r, viewsData.URL, http.StatusFound) return }