slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[livejournal] r16211: LJSUP-5485: Displaying links to writer's...

Committer: mchernyshev
LJSUP-5485: Displaying links to writer's block journals
- 'add to friend' link switch between communities by country in profile or ip address.
U   trunk/cgi-bin/LJ/Widget/QotD.pm
Modified: trunk/cgi-bin/LJ/Widget/QotD.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/QotD.pm	2010-02-05 08:43:02 UTC (rev 16210)
+++ trunk/cgi-bin/LJ/Widget/QotD.pm	2010-02-05 09:18:05 UTC (rev 16211)
@@ -166,7 +166,7 @@
                 "$archive | $suggest</span>$d->{from_text}" . $class->impression_img($q) . "</p>";
 
             my $add_friend = '';
-            my $writersblock = LJ::load_user("writersblock");
+            my $writersblock = LJ::load_user($community_name);
             $add_friend = "<li><span><a href='$LJ::SITEROOT/friends/add.bml?user=$community_name'>" . $class->ml('widget.qotd.add_friend') . "</a></span></li>"
                 if $writersblock && !LJ::is_friend($remote,$writersblock);
 

Tags: livejournal, pm, slartyblartfast
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments