From 1409e56e1d8259efe15b145db2c9fc1b907834d0 Mon Sep 17 00:00:00 2001 From: Gustavo Furtado Date: Wed, 7 Jun 2017 18:55:41 -0300 Subject: [PATCH] Update twitter sharing link to 'twitter.com/intent' --- share_post.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/share_post.py b/share_post.py index e1b975e..3e9299f 100644 --- a/share_post.py +++ b/share_post.py @@ -39,11 +39,10 @@ def share_post(content): url = article_url(content) summary = article_summary(content) - tweet = ('%s%s%s' % (title, quote(' '), url)).encode('utf-8') diaspora_link = 'https://sharetodiaspora.github.io/?title=%s&url=%s' % (title, url) facebook_link = 'http://www.facebook.com/sharer/sharer.php?u=%s' % url gplus_link = 'https://plus.google.com/share?url=%s' % url - twitter_link = 'http://twitter.com/home?status=%s' % tweet + twitter_link = 'https://twitter.com/intent/tweet?text=%s&url=%s' % (title, url) linkedin_link = 'https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s&source=%s' % ( url, title, summary, url ) @@ -78,4 +77,3 @@ def register(): # NOTE: This results in #314 so shouldn't really be relied on # https://github.com/getpelican/pelican-plugins/issues/314 signals.content_object_init.connect(share_post) -