Browse Source

Make 'Websub Hub' configurable

master
Chimo 2 years ago
parent
commit
61f5157c1e
No known key found for this signature in database GPG Key ID: B0C36EDD0BB35A9C
  1. 3
      configs.dist.php
  2. 2
      nanopub.php

3
configs.dist.php

@ -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'
);

2
nanopub.php

@ -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