madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12841: LJSUP-12654: Do not add reposted entry t...

Committer: sbelyaev
LJSUP-12654: Do not add reposted entry to RSS
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-10-29 12:26:01 UTC (rev 12840)
+++ trunk/cgi-bin/ljcom.pl	2012-10-29 12:26:18 UTC (rev 12841)
@@ -1082,7 +1082,7 @@
     # see if it has a public image in it.  heuristic:  it's an http://
     # URL in an image tag, or it's alone and has a popular image extension
     my $img;
-    if ($security eq "public" &&
+    if ($security eq "public" && !$arg->{'entryrepost'} &&
         ($arg->{'event'} =~ m!<img.+src=([\'\"])(http://[^\'\"]+?)\1!i ||
          $arg->{'event'} =~ m!<img.+src=(http://\S+?)[\s\>\'\"]!i ||
          $arg->{'event'} =~ m!(http://\S+\.(?:gif|jpe?g|png)\b)!i)) {
@@ -1122,7 +1122,7 @@
 
     ## Display latest entries only from users with social capital more than 10
     my $soc_capital = $up->get_social_capital();
-    if ($soc_capital > 10 && !$req->{'twitter_repost_aware'} && !$arg->{entryrepost}) { 
+    if ($soc_capital > 10 && !$req->{'twitter_repost_aware'} && !$arg->{'entryrepost'}) { 
         push @$joblist, TheSchwartz::Job->new_from_array("LJ::Worker::LatestPosts", {
             'timepost' => time(),
             'journalid' => $uo->{'userid'},

Tags: ljcom, madeon, pl, sbelyaev
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