wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17801: LJSUP-7463. Put username to featured pos...

Committer: gprochaev
LJSUP-7463. Put username to featured posts

U   trunk/cgi-bin/LJ/Widget/Browse.pm
Modified: trunk/cgi-bin/LJ/Widget/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-26 08:01:52 UTC (rev 17800)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-26 08:04:44 UTC (rev 17801)
@@ -338,12 +338,13 @@
         foreach my $post (@$posts) {
             my $entry = LJ::Entry->new ($post->{journalid}, jitemid => $post->{jitemid});
             my $userpic = $entry->userpic;
+            my $poster = $entry->poster;
             push @top_posts, {
                 subject         => $entry->subject_text,
                 userpic         => $userpic ? $userpic->url : '',
                 updated_ago     => LJ::TimeUtil->ago_text($entry->logtime_unix),
                 comments_count  => $entry->reply_count,
-                ljuser          => $entry->journal->ljuser_display,
+                ljuser          => $poster ? LJ::ljuser($poster) : '?',
                 url_to_post     => $entry->url,
             };
         }

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