From b8ebeddfacf69bd73e7aad3187bb7a879a5b3807 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 25 Feb 2022 17:48:15 +0100 Subject: [PATCH] updated school message format --- pages/school.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } }