]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add atompub membership actions to router
authorEvan Prodromou <evan@status.net>
Mon, 13 Dec 2010 17:40:01 +0000 (12:40 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 13 Dec 2010 17:40:01 +0000 (12:40 -0500)
lib/router.php

index 0ced86f34ef94bccb75385fb9e97e2a80f57df5e..e05fa096de14af22469e86e9f183c5573af72260 100644 (file)
@@ -929,6 +929,15 @@ class Router
                         array('action' => 'AtomPubFavoriteFeed'),
                         array('profile' => '[0-9]+'));
 
+            $m->connect('api/statusnet/app/memberships/:profile/:group.atom',
+                        array('action' => 'AtomPubShowMembership'),
+                        array('profile' => '[0-9]+',
+                              'group' => '[0-9]+'));
+
+            $m->connect('api/statusnet/app/membership/:profile.atom',
+                        array('action' => 'AtomPubMembershipFeed'),
+                        array('profile' => '[0-9]+'));
+
             // user stuff
 
             Event::handle('RouterInitialized', array($m));