1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 07:11:34 +00:00

add experimental support for pubsubhubbub in published feed, bump config version (refs #251)

This commit is contained in:
Andrew Dolgov
2011-04-01 09:36:29 +04:00
parent 6f1c5d1760
commit b0f379dfff
7 changed files with 144 additions and 11 deletions

View File

@@ -211,7 +211,20 @@
published = $pub
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
print json_encode(array("message" => "UPDATE_COUNTERS"));
$pubsub_result = false;
if (PUBSUBHUBBUB_HUB) {
$rss_link = get_self_url_prefix() .
"/backend.php?op=rss&id=-2&key=" .
get_feed_access_key($link, -2, false);
$p = new Publisher(PUBSUBHUBBUB_HUB);
$pubsub_result = $p->publish_update($rss_link);
}
print json_encode(array("message" => "UPDATE_COUNTERS",
"pubsub_result" => $pubsub_result));
return;
}