Skip to content

Commit

Permalink
forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiiden committed Jan 29, 2025
1 parent 23fcdfe commit 0567f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@ func BlogArticleHandler(w http.ResponseWriter, r *http.Request) {

image, exists := doc.Find("article meta[itemprop=image]").Attr("content")
if !exists {
log.Fatal("diocmeta")
log.Fatal("image not found in article")
}

indieDBLink, exists := doc.Find("article meta[itemprop=mainEntityOfPage]").Attr("itemid")
if !exists {
log.Fatal("diocmeta")
log.Fatal("indiedb link not found in article")
}

title := article.Find("div.title span.heading").Text()
Expand Down

0 comments on commit 0567f93

Please sign in to comment.