]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: add 'photoblog' and 'news' formats
authorAdam James <atj@pulsewidth.org.uk>
Tue, 4 Mar 2008 17:10:19 +0000 (17:10 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 4 Mar 2008 17:11:58 +0000 (18:11 +0100)
data/rbot/plugins/rss.rb

index 8e8cb29c9aad6888063609bfbcbff048b3b22652..f6e0b98ada272cf65b2aa343a5640194f3862d5e 100644 (file)
@@ -920,6 +920,14 @@ class RSSFeedsPlugin < Plugin
       abt = category ? "about #{category} " : ""\r
       line1 = "#{handle}#{date}#{author}blogged #{abt}at #{link}"\r
       line2 = "#{handle}#{title} - #{desc}"\r
+    when 'photoblog'\r
+      author += " " if author\r
+      abt = category ? "under #{category} " : ""\r
+      line1 = "#{handle}#{date}#{author}added an image #{abt}at #{link}"\r
+      line2 = "#{handle}#{title} - #{desc}"\r
+    when 'news'\r
+      line1 = "#{handle}#{date}#{title} @ #{link}"\r
+      line2 = line2 = "#{handle}#{date}#{desc}"\r
     when 'git'\r
       author += " " if author\r
       line1 = "#{handle}#{date}#{author}commited #{title} @ #{link}"\r