mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: enabling pushing with enable_pusher works now
This commit is contained in:
parent
be0d868198
commit
3a405627bb
1 changed files with 4 additions and 2 deletions
|
@ -1860,9 +1860,11 @@ public:
|
|||
return mstch::render(full_page, context);
|
||||
}
|
||||
|
||||
if (!testnet)
|
||||
if (this->enable_pusher == false)
|
||||
{
|
||||
string error_msg = fmt::format("Pushing disabled for mainet network!");
|
||||
string error_msg = fmt::format(
|
||||
"Pushing disabled!\n "
|
||||
"Run explorer with --enable-pusher flag to enable it.");
|
||||
|
||||
context["has_error"] = true;
|
||||
context["error_msg"] = error_msg;
|
||||
|
|
Loading…
Reference in a new issue