remove twitter character limit nonsense
This commit is contained in:
parent
df26f14e2a
commit
86cf57780e
12
swill.go
12
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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user