The "hub" url now contains the nickname

This commit is contained in:
Michael 2017-08-23 05:01:15 +00:00
parent e607a9dcda
commit b378f5fb01
4 changed files with 22 additions and 16 deletions

View file

@ -54,7 +54,7 @@ function handle_pubsubhubbub($id) {
$headers = array("Content-type: application/atom+xml",
sprintf("Link: <%s>;rel=hub,<%s>;rel=self",
App::get_baseurl().'/pubsubhubbub',
App::get_baseurl().'/pubsubhubbub/'.$rr['nickname'],
$rr['topic']),
"X-Hub-Signature: sha1=".$hmac_sig);