Skip to content

Commit

Permalink
Merge pull request #106 from plone/tkimnguyen-patch-1
Browse files Browse the repository at this point in the history
prevent extra '@' in twitter:site meta tag
  • Loading branch information
gforcada authored Apr 14, 2017
2 parents 2380afb + 2cc9c49 commit f6ddd27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Bug fixes:
Fixes missing template class with plone.app.blocks based layouts in Mosaic.
[thet]

- prevent extra '@' in twitter:site meta tag
[tkimnguyen]


2.6.2 (2016-11-18)
------------------
Expand Down
2 changes: 1 addition & 1 deletion plone/app/layout/viewlets/social.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _get_tags(self):
]
if settings.twitter_username:
tags.append(dict(name="twitter:site",
content="@" + settings.twitter_username))
content="@" + settings.twitter_username.lstrip('@')))
if settings.facebook_app_id:
tags.append(dict(property="fb:app_id",
content=settings.facebook_app_id))
Expand Down

0 comments on commit f6ddd27

Please sign in to comment.