]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add conversation feed data
authorEvan Prodromou <evan@status.net>
Fri, 15 Jul 2011 16:55:43 +0000 (12:55 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 15 Jul 2011 16:55:43 +0000 (12:55 -0400)
actions/conversation.php

index f33d267d35c02df306e9b211535c976b68b3f049..637e86e4b26eb95b8d26cdb429878ab76314f856 100644 (file)
@@ -132,4 +132,33 @@ class ConversationAction extends Action
     {
         return true;
     }
+    
+    function getFeeds()
+    {
+       
+        return array(new Feed(Feed::JSON,
+                              common_local_url('apiconversation',
+                                               array(
+                                                    'id' => $this->id,
+                                                    'format' => 'as')),
+                              // TRANS: Title for link to notice feed.
+                              // TRANS: %s is a user nickname.
+                              _('Conversation feed (Activity Streams JSON)')),
+                     new Feed(Feed::RSS2,
+                              common_local_url('apiconversation',
+                                               array(
+                                                    'id' => $this->id,
+                                                    'format' => 'rss')),
+                              // TRANS: Title for link to notice feed.
+                              // TRANS: %s is a user nickname.
+                              _('Conversation feed (RSS 2.0)')),
+                     new Feed(Feed::ATOM,
+                              common_local_url('apiconversation',
+                                               array(
+                                                    'id' => $this->id,
+                                                    'format' => 'atom')),
+                              // TRANS: Title for link to notice feed.
+                              // TRANS: %s is a user nickname.
+                              _('Conversation feed (Activity Streams JSON)')));
+    }
 }