fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-01 01:25 pm

[dw-free] Replying to a comment in site scheme always shows the default icon

[commit: http://hg.dwscoalition.org/dw-free/rev/5ef2e7002a9e]

http://bugs.dwscoalition.org/show_bug.cgi?id=3193

Use the method on the Comment object (created above), which abstracts this
away nicely.

Patch by [personal profile] fu.

Files modified:
  • htdocs/talkpost.bml
--------------------------------------------------------------------------------
diff -r 7c5fe5ec4f03 -r 5ef2e7002a9e htdocs/talkpost.bml
--- a/htdocs/talkpost.bml	Sat Oct 30 14:27:20 2010 +0800
+++ b/htdocs/talkpost.bml	Mon Nov 01 21:25:28 2010 +0800
@@ -232,7 +232,7 @@ body<=
 
     my $userpic;
     if ( $init->{replyto} ) {
-        $userpic = LJ::Userpic->new_from_keyword( $ur, $pickw );
+        $userpic = $parentcomment->userpic;
     } else {
         $userpic = $entry->userpic;
     }
--------------------------------------------------------------------------------