Skip to content

x v2.1.1 — URL-weighted tweet length

Choose a tag to compare

@omriariav omriariav released this 26 May 20:09
x-v2.1.1
738b276

Tweet length now counts URLs the way X does. post.py's preflight used raw len(), counting URLs at full length, so it rejected tweets X accepts (X wraps every URL to a 23-char t.co link). tweet_len()/word_len() now weight http(s) URLs as 23 (case-insensitive, trailing punctuation counted literally) in both the single-tweet preflight and the thread splitter. Codex-reviewed to GREEN.