Skip to content

Commit

Permalink
avoid duplicating url in share text
Browse files Browse the repository at this point in the history
  • Loading branch information
jcharaoui committed Jan 24, 2024
1 parent c448e1d commit 383776b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/outreach-story.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include 'breadcrumb.html' %}
{% set share_url = this.path|url(alt=this.alt,external=true) %}
{% set share_text = _("Find out how Tor helps internet users like {} reclaim their privacy and anonymity: {}").format(this.title, share_url) %}
{% set share_text = _("Find out how Tor helps internet users like {} reclaim their privacy and anonymity.").format(this.title) %}
<meta property="og:url" content="{{ share_url }}" />
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ share_title }}" />
Expand Down Expand Up @@ -44,7 +44,7 @@
if (!instance) {
e.preventDefault();
} else {
mastodon_link.href = 'https://' + instance + '/share?url={{ share_url|urlencode }}';
mastodon_link.href = 'https://' + instance + '/share?url={{ share_url|urlencode }}&text={{ share_text|urlencode }} ';
}
});
</script>

0 comments on commit 383776b

Please sign in to comment.