diff --git a/internal/gomastodonstats/consts.go b/internal/gomastodonstats/consts.go index 607bd04..f28b658 100644 --- a/internal/gomastodonstats/consts.go +++ b/internal/gomastodonstats/consts.go @@ -30,7 +30,7 @@ var ( MATRIX_IDENTIFIDER: "https://mtrx.nz", MASTODON_IDENTIFIER: "https://mastodon.nz", MOBILIZON_IDENTIFIER: "https://openevents.nz", - PEERTUBE_IDENTIFIER: "https//peertube.nz", + PEERTUBE_IDENTIFIER: "https://peertube.nz", } // Pixelfed diff --git a/internal/gomastodonstats/main.go b/internal/gomastodonstats/main.go index 700ea09..58e8050 100644 --- a/internal/gomastodonstats/main.go +++ b/internal/gomastodonstats/main.go @@ -19,7 +19,7 @@ func Run() { if len(updatedMetrics) > 0 { // Sort by counts! sort.Slice(updatedMetrics, func(i, j int) bool { - return updatedMetrics[i].MetricValue < updatedMetrics[j].MetricValue + return updatedMetrics[i].MetricValue > updatedMetrics[j].MetricValue }) sendToMatrix(updatedMetrics) diff --git a/internal/gomastodonstats/mastodon.go b/internal/gomastodonstats/mastodon.go index f6692b9..23b498b 100644 --- a/internal/gomastodonstats/mastodon.go +++ b/internal/gomastodonstats/mastodon.go @@ -27,7 +27,7 @@ func postToMastodon(metrics []metric) { // Build status startOfDay := getStartofDay() - msg := fmt.Sprintf("Weekly user counts @ %s :laserkiwi:\n\n", startOfDay.String()) + msg := fmt.Sprintf("Weekly user counts @ %d-%d-%d :laserkiwi:\n\n", startOfDay.Local().Year(), startOfDay.Local().Month(), startOfDay.Local().Day()) for _, m := range metrics { msg = msg + getPrintableString(m) + "\n" }