]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make OStatusPlugin define push feed rel
authorEvan Prodromou <evan@status.net>
Sat, 27 Nov 2010 03:10:18 +0000 (22:10 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 27 Nov 2010 03:10:18 +0000 (22:10 -0500)
plugins/OStatus/OStatusPlugin.php

index 7d62eaba6d1e27eb167a6b40ccc351e8e8060eb1..d0b64e87694d41ffe09fb382820abe6735d8d236 100644 (file)
@@ -1010,7 +1010,13 @@ class OStatusPlugin extends Plugin
 
     function onEndXrdActionLinks(&$xrd, $user)
     {
-        // Salmon
+       $xrd->links[] = array('rel' => Discovery::UPDATESFROM,
+                             'href' => common_local_url('ApiTimelineUser',
+                                                        array('id' => $user->id,
+                                                              'format' => 'atom')),
+                             'type' => 'application/atom+xml');
+       
+                   // Salmon
         $salmon_url = common_local_url('usersalmon',
                                        array('id' => $user->id));