From 186c473cdd8439bc75be44526958be871dda82d9 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Thu, 23 Aug 2018 12:00:00 -0700 Subject: [PATCH] Number of tweets to fetch is now customizable --- CHANGELOG.md | 9 +++++---- twitter/client.go | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64daaeea..6f39d8bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,15 +6,16 @@ ### ⚡️ Added * Twitter tweets are now colourized (@senorprogrammer) -* Google Calendar widget is now focusable (@anandsudhir) +* Twitter number of tweets to fetch is now customizable via config (@senorprogrammer) +* Google Calendar: widget is now focusable (@anandsudhir) * [DataDog module](https://wtfutil.com/modules/datadog/) added (@Seanstoppable) ### 🐞 Fixed -* Textfile module syntax highlighting now included in stand-alone binary ([#261](https://github.com/senorprogrammer/wtf/issues/261) by @senporprogrammer) +* Textfile syntax highlighting now included in stand-alone binary ([#261](https://github.com/senorprogrammer/wtf/issues/261) by @senporprogrammer) * Config param now supports relative paths starting with `~` ([#295](https://github.com/senorprogrammer/wtf/issues/295) by @anandsudhir) -## 0.2.1 +## 0.2.1 #### Aug 17, 2018 ### ⚡️ Added @@ -30,7 +31,7 @@ * Sigils no longer display when there's only one option (([#291](https://github.com/senorprogrammer/wtf/issues/291) by @anandsudhir) * Jira module now responds to the "/" key (([#268](https://github.com/senorprogrammer/wtf/issues/268)) by @senorprogrammer) -## 0.2.0 +## 0.2.0 #### Aug 3, 2018 ### ⚡️ Added diff --git a/twitter/client.go b/twitter/client.go index e39fa1ff..fa92688e 100644 --- a/twitter/client.go +++ b/twitter/client.go @@ -26,7 +26,7 @@ func NewClient(screenName, url string) *Client { client := Client{ apiBase: url, screenName: screenName, - count: 5, + count: wtf.Config.UInt("wtf.mods.twitter.count", 5), } client.loadAPICredentials()