poetapp / wordpress-plugin

Automatically post to the Po.et Network from WordPress
https://wordpress.org/plugins/po-et/
GNU General Public License v2.0
49 stars 34 forks source link

Dynamic Badge Link #45

Open lautarodragan opened 5 years ago

lautarodragan commented 5 years ago

Extracted from https://github.com/poetapp/wordpress-plugin/issues/43

Change the badge URL from https://explorer.po.et/works/ to either http://explorer-mainnet.poetnetwork.net/works/ or http://explorer-testnet.poetnetwork.net/works/, depending on whether the API Token does not have (mainnet) or has (testnet) "TEST_" at the beginning of it. This is because we are now supporting two different environments (LIVE and TEST) which write to the Bitcoin mainnet and testnet blockchains respectively. Fallback option here is to default it to the mainnet link since most WP users will be wanting to have their content anchored only to the mainnet blockchain anyway.