diff --git a/pages/school.go b/pages/school.go index e2648b6..df51139 100644 --- a/pages/school.go +++ b/pages/school.go @@ -79,10 +79,10 @@ func School() { if send { text := firstListItem.Find("a .news-summary").Text() - url := firstListItem.Find("a[href=true").Text() + url := firstListItem.Find("a").AttrOr("href", "") - log.Println("header", pageTitle, "text", text, "url", url) + log.Println("header", latest_page_title, "text", text, "url", url) - matrixbot.SendMessage(pageTitle, text, url) + matrixbot.SendMessage(latest_page_title, text, url) } }