Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) added RSS-Feed for blog
hydroxe92e8b2ae384
diff --git a/htroot/Blog.html b/htroot/Blog.htmlindex 3db7dca9f..3c2c69ab6 100644--- a/htroot/Blog.html+++ b/htroot/Blog.html@@ -3,6 +3,7 @@<head><title>YaCy '#[clientname]#': Blog</title>#%env/templates/metas.template%#+ <link rel="alternate" type="application/rss+xml" title="RSS" href="Blog.rss" /></head><body id="Blog">#%env/templates/header.template%#diff --git a/htroot/Blog.java b/htroot/Blog.javaindex b173ecc58..7f3290cd6 100644--- a/htroot/Blog.java+++ b/htroot/Blog.java@@ -241,6 +241,9 @@ public class Blog {// show blog-entry/entriesprop.put("mode", 0); //viewingif(pagename.equals("blog_default")) {+ prop.put("peername", yacyCore.seedDB.mySeed.getName());+ String address = yacyCore.seedDB.mySeed.getAddress();+ prop.put("address", address);//index all entriestry {Iterator i = switchboard.blogDB.keys(false);@@ -262,6 +265,7 @@ public class Blog {continue;entry = switchboard.blogDB.read(pageid);prop.put("mode_entries_"+count+"_pageid",entry.key());+ prop.put("mode_entries_"+count+"_address", address);if(!xml) {prop.put("mode_entries_"+count+"_subject", new String(entry.subject(),"UTF-8"));prop.put("mode_entries_"+count+"_author", new String(entry.author(),"UTF-8"));@@ -284,6 +288,8 @@ public class Blog {prop.put("mode_entries_"+count+"_commentsactive", 1);prop.put("mode_entries_"+count+"_commentsactive_pageid",entry.key());prop.put("mode_entries_"+count+"_commentsactive_comments", new String(entry.commentsSize(),"UTF-8"));+ prop.put("mode_entries_"+count+"_commentsactive_address", address);+}else prop.put("mode_entries_"+count+"_commentsactive", 0);diff --git a/htroot/Blog.rss b/htroot/Blog.rssnew file mode 100644index 000000000..a1e07a9ab--- /dev/null+++ b/htroot/Blog.rss@@ -0,0 +1,17 @@+<?xml version="1.0"?>+<rss version="2.0">+<channel>+ <title>YaCy-Blog of Peer #[peername]#</title>+ <link>http://#[address]#/Blog.html</link>+ #(mode)# #{entries}#<item>+ <author>#[author]#</author>+ <title>#[subject]#</title>+ <link>http://#[address]#/Blog.html?page=#[pageid]#</link>+ <pubDate>#[date]#</pubDate>+ <guid>#[pageid]#</guid>+ <description><![CDATA[+#[page]#]]></description>+ #(commentsactive)#::<comments>http://#[address]#/BlogComments.html?page=#[pageid]#</comments>#(/commentsactive)#+ </item>#{/entries}# #(/mode)#+</channel>+</rss>\ No newline at end of file