diff --git a/plugins/counter/counter.go b/plugins/counter/counter.go index 4e45f81..fc6b92f 100644 --- a/plugins/counter/counter.go +++ b/plugins/counter/counter.go @@ -77,7 +77,7 @@ func LeaderAll(db *sqlx.DB) ([]Item, error) { var items []Item err := db.Select(&items, s) if err != nil { - log.Error().Msgf("Error querying leaderboard: %w", err) + log.Error().Msgf("Error querying leaderboard: %s", err) return nil, err } for i := range items { diff --git a/plugins/twitter/twitter.go b/plugins/twitter/twitter.go index 6b18346..6e229b8 100644 --- a/plugins/twitter/twitter.go +++ b/plugins/twitter/twitter.go @@ -72,7 +72,7 @@ func (t *Twitter) check(c bot.Connector) { for _, tweet := range tweets { userKey := fmt.Sprintf("twitter.last.%s", u) lastTweet := int64(t.c.GetInt(userKey, 0)) - if lastTweet < tweet.Id && tweet.RetweetedStatus != nil { + if lastTweet < tweet.Id { link := fmt.Sprintf("https://twitter.com/%s/status/%s", u, tweet.IdStr) log.Debug().Str("tweet", link).Msg("Unknown tweet") for _, ch := range chs {