Make 'Websub Hub' configurable

master
Chimo 4 years ago
parent 5d475c9663
commit 61f5157c1e
No known key found for this signature in database
GPG Key ID: B0C36EDD0BB35A9C

@ -48,6 +48,9 @@ return (object) array(
'defaultLong' => '0.1278',
'defaultLoc' => 'London',
// Config for Websub hub
'websubHub' => 'https://switchboard.p3k.io/',
// Set Frontmatter Format -- json or yaml
'frontFormat' => 'json'
);

@ -722,7 +722,7 @@ if (!empty($data)) {
//}
// ping! second one to switchboard
$switchArray = array ("hub.mode" => "publish", "hub.url" => $siteUrl);
post_to_api("https://switchboard.p3k.io/", "null", $switchArray);
post_to_api($configs->websubHub, "null", $switchArray);
// ... and Setting headers, return location to client.
header("HTTP/1.1 201 Created");

Loading…
Cancel
Save