fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-05 06:33 am

[dw-free] clean up duplicated code for post display

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

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

Remove current_mood_extra hook (leftover sponsored moodthemes code)

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
diff -r 0515604543b9 -r f98d1fce4157 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm	Mon Jul 05 14:32:47 2010 +0800
+++ b/cgi-bin/LJ/S2.pm	Mon Jul 05 14:39:20 2010 +0800
@@ -1898,8 +1898,7 @@ sub Entry
         $e->{mood_icon} = Image( $pic{pic}, $pic{w}, $pic{h} )
             if $mobj && $mobj->get_picture( $mid, \%pic );
         if ( my $mood = DW::Mood->mood_name( $mid ) ) {
-            my $extra = LJ::Hooks::run_hook("current_mood_extra", $theme) || "";
-            $e->{'metadata'}->{'mood'} = "$mood$extra";
+            $e->{metadata}->{mood} = $mood;
         }
     }
     if ($p->{'current_mood'}) {
--------------------------------------------------------------------------------