Refactor do_post function

Remove duplicate line to post tweet and support shortening of multiple URLs
in tweet