vspiewak/hubot-twitter-mention

Further formatting improvements

Opened this issue · 0 comments

Stashing this as a thing to come back to for now. Suspect this may originate in Twitter API / Twit not hubot-twitter-mention. The screenshot below showing tweets as rendered with #1 merged. (I believe that even without #1 applied the issues described above should still apply, since we just display tweet.text as handed back by Twit.)

image

The above image shows an imported RT (original). Improvements here could be:

  • @mentions and #hashtags link in-channel, ideal would be linking to the relevant Twitter URLs for hashtags and users. (What actually happens if you click on these will depend on how your chat platform handles an unlinked @mention etc.)
  • The RT is truncated, probably because it's trimmed to 140char and exceeds this with the RT @username prefix.
  • Tweets ending in a URL will get their URL impaired (either not working or linking to an older twitter shortcode).
  • Unpacking the t.co URLs would be a nice extra visually.