I just used the export of the disqus module(last dev), all my comments were correctly exported to disqus website, but I don't see any on my website. I know that on my website all my comments were only in the french section, but when looking on the discus website, all comments are linking to english(default language) version of nodes.
I have no problem to post comments on any language page, so only the export script is buggy.

Comments

heyyo’s picture

After playing little bit more, the nid sended is correct, but the path isn't, the language is missing.

ex: http://mywebsite.com/node/32 instead of http://mywebsite.com/fr/node/32 (or http://fr.mywebsite.com/node/32 depends on the setting of i18n)

heyyo’s picture

the language of the node must be sended in the function url()

$url = url("node/{$comment->nid}", array('absolute' => TRUE, 'alias' => TRUE));

heyyo’s picture

Status: Active » Needs review

I have replace this code

$url = url("node/{$comment->nid}", array('absolute' => TRUE, 'alias' => TRUE));

by

$languages = language_list();
$node = node_load($comment->nid);
$url = url("node/{$comment->nid}", array('language' => $languages[$node->language], 'absolute' => TRUE, 'alias' => TRUE));

And my export worked correctly.