]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Corrected links to tagrss and add fancy URL for tag rss
authorEvan Prodromou <git@evanprodromou.name>
Sat, 10 Jan 2009 19:53:14 +0000 (14:53 -0500)
committerEvan Prodromou <git@evanprodromou.name>
Sat, 10 Jan 2009 19:53:14 +0000 (14:53 -0500)
actions/tag.php
lib/util.php

index 25cc853c458c099b40fc5c6e29b279a8fbe3cb18..ffb393ae8c9ab45149330436b8e894ce681d6f15 100644 (file)
@@ -69,7 +69,7 @@ class TagAction extends StreamAction {
                        $this->public_views_menu();
                }
                else {
-                       $this->show_feeds_list(array(0=>array('href'=>common_local_url('tagrss'),
+                       $this->show_feeds_list(array(0=>array('href'=>common_local_url('tagrss', array('tag' => $tag)),
                                                                                                  'type' => 'rss',
                                                                                                  'version' => 'RSS 1.0',
                                                                                                  'item' => 'tagrss')));
index 7518fbf5595edc5636e0a45764564a18e2f21627..fc45311fca19866700129739de820f3e11137cc9 100644 (file)
@@ -1206,6 +1206,10 @@ function common_fancy_url($action, $args=NULL) {
                        $path = 'tags';
                }
                return common_path($path . (($args) ? ('?' . http_build_query($args)) : ''));
+        case 'tagrss':
+        $path = 'tag/' . $args['tag'] . '/rss';
+        unset($args['tag']);
+               return common_path($path . (($args) ? ('?' . http_build_query($args)) : ''));
         case 'peopletag':
                $path = 'peopletag/' . $args['tag'];
                unset($args['tag']);
@@ -1499,7 +1503,7 @@ function common_twitter_broadcast($notice, $flink) {
                CURLOPT_USERAGENT               => "Laconica",
                CURLOPT_CONNECTTIMEOUT  => 120,  // XXX: Scary!!!! How long should this be?
         CURLOPT_TIMEOUT            => 120,
-        
+
         # Twitter is strict about accepting invalid "Expect" headers
         CURLOPT_HTTPHEADER => array('Expect:')
        );