{"action":"created","issue":{"url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/176","labels_url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/176/comments","events_url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/176/events","html_url":"https://github.com/mmistakes/so-simple-theme/pull/176","id":114578444,"number":176,"title":"Update disqus code to the updated embedded code","user":{"login":"evanderkoogh","id":890386,"avatar_url":"https://avatars.githubusercontent.com/u/890386?v=3","gravatar_id":"","url":"https://api.github.com/users/evanderkoogh","html_url":"https://github.com/evanderkoogh","followers_url":"https://api.github.com/users/evanderkoogh/followers","following_url":"https://api.github.com/users/evanderkoogh/following{/other_user}","gists_url":"https://api.github.com/users/evanderkoogh/gists{/gist_id}","starred_url":"https://api.github.com/users/evanderkoogh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanderkoogh/subscriptions","organizations_url":"https://api.github.com/users/evanderkoogh/orgs","repos_url":"https://api.github.com/users/evanderkoogh/repos","events_url":"https://api.github.com/users/evanderkoogh/events{/privacy}","received_events_url":"https://api.github.com/users/evanderkoogh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T11:41:50Z","updated_at":"2015-11-02T14:31:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mmistakes/so-simple-theme/pulls/176","html_url":"https://github.com/mmistakes/so-simple-theme/pull/176","diff_url":"https://github.com/mmistakes/so-simple-theme/pull/176.diff","patch_url":"https://github.com/mmistakes/so-simple-theme/pull/176.patch"},"body":"Disqus has updated their embed code to make it a bit smaller and reduce the change of creating multiple threads per URL. The blog post announcing it can be found here: http://blog.disqus.com/post/131581805720/improve-your-disqus-integration-with-our-updated"},"comment":{"url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/comments/153032047","html_url":"https://github.com/mmistakes/so-simple-theme/pull/176#issuecomment-153032047","issue_url":"https://api.github.com/repos/mmistakes/so-simple-theme/issues/176","id":153032047,"user":{"login":"mmistakes","id":1376749,"avatar_url":"https://avatars.githubusercontent.com/u/1376749?v=3","gravatar_id":"","url":"https://api.github.com/users/mmistakes","html_url":"https://github.com/mmistakes","followers_url":"https://api.github.com/users/mmistakes/followers","following_url":"https://api.github.com/users/mmistakes/following{/other_user}","gists_url":"https://api.github.com/users/mmistakes/gists{/gist_id}","starred_url":"https://api.github.com/users/mmistakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmistakes/subscriptions","organizations_url":"https://api.github.com/users/mmistakes/orgs","repos_url":"https://api.github.com/users/mmistakes/repos","events_url":"https://api.github.com/users/mmistakes/events{/privacy}","received_events_url":"https://api.github.com/users/mmistakes/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T14:31:36Z","updated_at":"2015-11-02T14:31:36Z","body":"From my understanding, by default Disqus links comments by a page's URL. The point of the new embed is to set the page URL directly in their script along with the a unique ID.\r\n\r\nMy guess is it's the `page.identifier` line that's causing problems. It's probably doesn't match what Disqus has in their DB and isn't associating old comments for those pages correctly.\r\n\r\nI've tried to use the unique page ID before and could never find a good way of generating it (see #69). The way @evanderkoogh did it isn't really providing a unique ID since it's just using the `page.id` which gives you something like `/2008/12/14/my-post`. If the page/post filename or permalink changes so will this ID. And that really shouldn't ever happen if you want this to work as intended.\r\n\r\nI would just omit this line `+        this.page.identifier = '{{ page.id }}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable` and see if your comments show up.\r\n\r\nThe only benefit of setting a unique `page.identifier` is if you ever move to a new domain, change permalinks, URLs, etc. It just saves you from using Disqus' migration tools to update URLs so comments link to the correct page."}}