Browse Source

Make 'Websub Hub' configurable

master
Chimo 1 year ago
parent
commit
61f5157c1e
No known key found for this signature in database GPG Key ID: B0C36EDD0BB35A9C
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      configs.dist.php
  2. +1
    -1
      nanopub.php

+ 3
- 0
configs.dist.php View File

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


+ 1
- 1
nanopub.php View File

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