1
0
Fork 0

New function for creating the OStatus messages

This commit is contained in:
Michael Vogel 2015-11-23 18:44:47 +01:00
commit 75f1a17f7e
4 changed files with 383 additions and 1 deletions

View file

@ -1,5 +1,6 @@
<?php
require_once("boot.php");
require_once("include/ostatus.php");
function handle_pubsubhubbub() {
global $a, $db;
@ -12,7 +13,8 @@ function handle_pubsubhubbub() {
$r = q("SELECT * FROM `push_subscriber` WHERE `push` > 0");
foreach($r as $rr) {
$params = get_feed_for($a, '', $rr['nickname'], $rr['last_update'], 0, true);
//$params = get_feed_for($a, '', $rr['nickname'], $rr['last_update'], 0, true);
$params = ostatus_feed($a, $rr['nickname'], $rr['last_update']);
$hmac_sig = hash_hmac("sha1", $params, $rr['secret']);
$headers = array("Content-type: application/atom+xml",