I have a zap to send twitter posts to tumblr. for image posts it will post the image correctly but it will also still post the image link itself in the body text of the tumblr post, which goes back to my twitter. i’d also prefer it didn’t include the tweet’s hashtags in the body text. i can’t figure out how to filter this information, can anyone help?
How can I make a zap from Twitter not include a link when it posts
Best answer by SamB
Thanks for sharing those helpful screenshots
Ah, it looks like the link is added in the Caption field on the Tumbler step. As that field contains the text that’s supplied from the tweet it’ll need to be removed from it. The quickest way would probably be to use a Code by Zapier step to remove the hashtags and links from the text Twitter is sending. Then you’d select the text output from the Code step in your Tumbler step instead.
Code by Zapier steps are a bit advanced so may not be the best option for you. But I did some playing around and it looks like this could work:
//Let's set the twitter text to be our "tumblerText"
var tumblerText = inputData.twitterText;
//Let's remove the hashtags
var removeHashtags = /\#\w\w+\s?/g;
tumblerText = tumblerText.replace(removeHashtags, "")
//Let's remove the links
var removeLinks = /(?:https?|ftp):\/\/[\n\S]+/g;
tumblerText = tumblerText.replace(removeLinks, "")
return {tumblerText}
You’d use a Run Javascript action that would look something like this:
You’d just need to select the Text field from Twitter rather than manually typing in the text like I did in the above example.
Want to give that a try and let us know if it works for you? Keen to help get you all set here! 🙂
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


















