Martin Atkins ([info]mart) wrote in [info]changelog,
@ 2007-01-15 22:22:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
[livejournal] r10070: When presenting a tag-filtered RecentPag...
Committer: mart
When presenting a tag-filtered RecentPage, link to the tag-filtered RSS and Atom feeds in the data links.


U   trunk/cgi-bin/LJ/S2/RecentPage.pm
Modified: trunk/cgi-bin/LJ/S2/RecentPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/RecentPage.pm	2007-01-15 21:33:33 UTC (rev 10069)
+++ trunk/cgi-bin/LJ/S2/RecentPage.pm	2007-01-15 22:22:14 UTC (rev 10070)
@@ -15,7 +15,7 @@
 
     my $datalink = sub {
         my ($what, $caption) = @_;
-        return Link($p->{'base_url'} . "/data/$what",
+        return Link($p->{'base_url'} . "/data/$what" . ($opts->{tags} ? "?tag=".join(",", map({ LJ::eurl($_) } @{$opts->{tags}})) : ""),
                     $caption,
                     Image("$LJ::IMGPREFIX/data_$what.gif", 32, 15, $caption));
     };



Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…