Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make twitter text prepending of 'title' optional #49

Open
mooeypoo opened this issue Aug 15, 2016 · 0 comments
Open

Make twitter text prepending of 'title' optional #49

mooeypoo opened this issue Aug 15, 2016 · 0 comments

Comments

@mooeypoo
Copy link

I am not sure if this was raised before, and I apologize in advance if I'm missing some option I couldn't spot in the code or documentation (do let me know, it'd help a lot!)

I want my twitter share message to not include the site's title, but only my own custom text. The problem is that the code always prepends the site's title to whatever text is set up in the options.

(line 208)
url = 'https://twitter.com/intent/tweet?url=' + paramsObj.shareUrlEncoded() + '&text=' + encodeURIComponent(title + (text && title ? ' - ' : '') + text);
After reading the code, I realize that if I set up { title = '' } in the options, it will not add it to the message. However, that doesn't work with other sharing services like linkedin, tumblr and email, that all use the title specifically separate from the summary or body text (understandably)

So while setting title to an empty string works, it isn't ideal.

I think it might be useful to make the twitter message either not append the title to begin with (supplying a twitter text message is usually enough to most cases) or make this prepending of the title optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant