~rek2/goTootRamdonVideo

eca154f6e4e89ee56d128875f147858928576300 — rek2 2 years ago afd4ec7
make sure all strings are lower case to be able to ignore with out case issues
1 files changed, 2 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +2 -1
@@ 93,7 93,8 @@ func mastodonTask(c *mastodon.Client, feedURL string, ignore []string) {

		for check <= len(ignore) {
			for _, word := range ignore {
				if strings.Contains(randToot.Title, word) {
				lowerCaseToot, lowerWord := strings.ToLower(randToot.Title), strings.ToLower(word)
				if strings.EqualFold(lowerCaseToot, lowerWord) {
					check = len(ignore)
					randToot = theFeed{}
					break