madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22750: LJSUP-13441: Post title is missed

Committer: sbelyaev
LJSUP-13441: Post title is missed
U   trunk/cgi-bin/LJ/S2/FriendsPage.pm
Modified: trunk/cgi-bin/LJ/S2/FriendsPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/FriendsPage.pm	2012-08-28 08:30:01 UTC (rev 22749)
+++ trunk/cgi-bin/LJ/S2/FriendsPage.pm	2012-08-28 09:45:16 UTC (rev 22750)
@@ -306,11 +306,14 @@
 
             if (!$logprops{$datakey}) {
                 $logprops{$datakey} = $entry_obj->props;
- 
+
+                my $subject = $entry_obj->subject_html || 
+                              $ctx->[S2::PROPS]->{'text_nosubject'};
+
                 # mark as repost
                 $logprops{$datakey}->{'repost'}         = 'e';
                 $logprops{$datakey}->{'repost_author'}  = $entry_obj->poster->user; 
-                $logprops{$datakey}->{'repost_subject'} = $entry_obj->subject_html;
+                $logprops{$datakey}->{'repost_subject'} = $subject;
                 $logprops{$datakey}->{'repost_url'}     = $entry_obj->url;
             }
         }

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