From 86cf57780ed4dee20e9050c835cafa85b5fa76cd Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 21 Nov 2022 07:41:28 +0100 Subject: [PATCH] remove twitter character limit nonsense --- swill.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/swill.go b/swill.go index a9e2500..c88cf20 100644 --- a/swill.go +++ b/swill.go @@ -191,12 +191,12 @@ func splitStatus(status string) []string { // Twitter has an insane definition of what counts as a character // ( see https://developer.twitter.com/en/docs/counting-characters ) // - as a crude approximation, anything outside LATIN-1 halfs the limit - for _, ch := range status { - if ch > 0x10FF { - characterLimit = CHARACTER_LIMIT / 2 - break - } - } + // for _, ch := range status { + // if ch > 0x10FF { + // characterLimit = CHARACTER_LIMIT / 2 + // break + // } + // } asRunes := []rune(status) split := []string{} for len(asRunes) != 0 {