madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23121: LJSUP-12654: Do not add reposted entry t...

Committer: sbelyaev
LJSUP-12654: Do not add reposted entry to RSS
U   trunk/cgi-bin/ljfeed.pl
Modified: trunk/cgi-bin/ljfeed.pl
===================================================================
--- trunk/cgi-bin/ljfeed.pl	2012-10-11 18:42:46 UTC (rev 23120)
+++ trunk/cgi-bin/ljfeed.pl	2012-10-12 07:22:04 UTC (rev 23121)
@@ -212,15 +212,9 @@
     foreach my $entry_obj (@objs) {
         next ENTRY if $entry_obj->poster->{'statusvis'} eq 'S';
         next ENTRY if $entry_obj && $entry_obj->is_suspended_for($remote);
+   
+        next ENTRY if $entry_obj->original_post;
     
-        my $reposted = LJ::Entry::Repost->substitute_content($entry_obj,
-                                                           { 'original_post_obj' => \$entry_obj,} );
-
-        if ($reposted) {
-            next ENTRY if $entry_obj->poster->{'statusvis'} eq 'S';
-            next ENTRY if $entry_obj && $entry_obj->is_suspended_for($remote);
-        }
-    
         my $ditemid = $entry_obj->{ditemid};
         if ( $LJ::UNICODE && $entry_obj->prop('unknown8bit') ) {
             LJ::item_toutf8(

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