souramoo / commentoplusplus

Commento with out of the box patches and updates to add useful features and fixes. Also with one-click deploy to Heroku so you can get up and running fast.
MIT License
391 stars 63 forks source link

use same comments on multiple Domains #62

Open mgAdler opened 3 years ago

mgAdler commented 3 years ago

We have a wordpress blog and for some reasons we have multiple domains (also an .onion Domain).

As there is no possibilty to set up multiple Domains for the same comments across all domains, we had to change the commento.js

I think it would be great if there is an option to add multiple Domain option for the same comments in the future.

Szenario:

maindomain.com alternativedomain.com oniondomaindaonfdanefnapwefnafewfenmpoin.onion

All of these Domains will load the same blog with the same content. The path behind the Domain part is the same for all domains.

By default commento.js is using parent.location.host + path to determine which comments will be loaded. This means, all Domains have to be entered in the backend and would load different comments for each domain.

At the moment we solved it by changing the commento.js: