madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22696: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/Entry.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2012-08-20 08:59:02 UTC (rev 22695)
+++ trunk/cgi-bin/LJ/Entry.pm	2012-08-20 09:06:07 UTC (rev 22696)
@@ -1552,17 +1552,17 @@
 }
 
 sub convert_to_repost {
-    my ($class, $mark) = @_;
-    $class->set_prop( 'repost_link' =>  $mark);
+    my ($self, $mark) = @_;
+    $self->set_prop( 'repost_link' =>  $mark);
 } 
 
 sub original_post {
-    my ($class) = @_;
+    my ($self) = @_;
     
-    my $loaded_prop = $class->{'original_post_obj'};
+    my $loaded_prop = $self->{'original_post_obj'};
     
     unless ($loaded_prop) {
-        my $link = $class->prop('repost_link');
+        my $link = $self->prop('repost_link');
         if ($link) {
             my ($journalid, $jitemid) = split(/:/, $link);
             my $user = int($journalid) ? LJ::want_user(int($journalid)) : undef;
@@ -1570,7 +1570,7 @@
             {     
                 my $reposted_entry = LJ::Entry->new(int($journalid), jitemid => int($jitemid));
                 $loaded_prop =  $reposted_entry if $reposted_entry->valid;
-                $class->{'original_post_obj'} = $loaded_prop;
+                $self->{'original_post_obj'} = $loaded_prop;
             }
         }
     }

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