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

load count.js from disqus.com over https #35

Merged
merged 4 commits into from Sep 20, 2018

Conversation

philipsahli
Copy link
Contributor

@philipsahli philipsahli commented Sep 19, 2018

Fixes #34

@philipsahli philipsahli changed the title load count.js from disqus.com over https #34 load count.js from disqus.com over https Sep 19, 2018
Copy link
Member

@hvelarde hvelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an entry on the changelog is missing; after merging this I can do a release for you.

@@ -22,7 +22,7 @@ def get_counter_js(self):

if short_name:
result = """
<script type="text/javascript" async="async" src="http://{0}.disqus.com/count.js">
<script type="text/javascript" async="async" src="https://{0}.disqus.com/count.js">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type; do you mind to remove the type attribute also? instead we can use:

<script async src="https://{0}.disqus.com/count.js">

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

@philipsahli
Copy link
Contributor Author

Thank you @hvelarde for the immediate review. Your requested changes are done.

@hvelarde
Copy link
Member

let me fix the Travis builds first.

@hvelarde
Copy link
Member

@philipsahli please update your branch so we can merge it.

@philipsahli
Copy link
Contributor Author

philipsahli commented Sep 20, 2018

Travis build worked, Codacy Job still in state "Pending". Thank you in advance for the release and the great package!

@hvelarde hvelarde merged commit 15e91a2 into collective:master Sep 20, 2018
@hvelarde
Copy link
Member

I made a new release for you: https://pypi.org/project/collective.disqus/2.2/

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

Successfully merging this pull request may close these issues.

None yet

2 participants