vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21214: LJSUP-11210: "rel=nofollow" for the link...

Committer: vad
LJSUP-11210: "rel=nofollow" for the links in entries and comments
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-02-17 13:55:26 UTC (rev 21213)
+++ trunk/cgi-bin/cleanhtml.pl	2012-02-17 14:17:34 UTC (rev 21214)
@@ -158,7 +158,7 @@
     my $ljrepost_allowed = ($opts->{ljrepost_allowed} && ! $opts->{'textonly'}) || 0;
 
     my $poster = LJ::load_userid($opts->{posterid});
-    my $put_nofollow = not ($poster and $poster->get_cap('paid'));
+    my $put_nofollow = not ($poster and $poster->get_cap('paid') and not $poster->get_cap('trynbuy'));
 
     my $viewer_lang = $opts->{'viewer_lang'};
     unless ($viewer_lang) {

Tags: livejournal, pl, vad, vadvs
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