mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-06 11:59:14 +00:00
add experimental support for pubsubhubbub in published feed, bump config version (refs #251)
This commit is contained in:
@@ -110,6 +110,7 @@
|
||||
require_once "lib/magpierss/rss_fetch.inc";
|
||||
require_once 'lib/magpierss/rss_utils.inc';
|
||||
require_once 'lib/htmlpurifier/library/HTMLPurifier.auto.php';
|
||||
require_once 'lib/pubsubhubbub/publisher.php';
|
||||
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
|
||||
@@ -3583,13 +3584,19 @@
|
||||
$feed_site_url = $qfh_ret[2];
|
||||
$last_error = $qfh_ret[3];
|
||||
|
||||
// if (!$feed_site_url) $feed_site_url = "http://localhost/";
|
||||
if (!$feed_site_url) $feed_site_url = get_self_url_prefix();
|
||||
|
||||
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
<?xml-stylesheet type=\"text/xsl\" href=\"rss.xsl\"?>
|
||||
<rss version=\"2.0\">
|
||||
<channel>
|
||||
<title>$feed_title</title>
|
||||
<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
|
||||
xmlns:atom=\"http://www.w3.org/2005/Atom\">
|
||||
<channel>";
|
||||
|
||||
if (PUBSUBHUBBUB_HUB && $feed == -2) {
|
||||
print "<atom:link rel='hub' href='".PUBSUBHUBBUB_HUB."'/>";
|
||||
}
|
||||
|
||||
print "<title>$feed_title</title>
|
||||
<link>$feed_site_url</link>
|
||||
<description>Feed generated by Tiny Tiny RSS</description>";
|
||||
|
||||
@@ -4100,8 +4107,10 @@
|
||||
$reply .= "<option value=\"emailArticle(false)\">".__('Forward by email').
|
||||
"</option>";
|
||||
|
||||
if ($is_cat) $cat_q = "&is_cat=$is_cat";
|
||||
|
||||
$rss_link = htmlspecialchars(get_self_url_prefix() .
|
||||
"/backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view_mode=$view_mode$search_q");
|
||||
"/backend.php?op=rss&id=$feed_id$cat_q$search_q");
|
||||
|
||||
$reply .= "<option value=\"0\" disabled=\"1\">".__('Feed:')."</option>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user