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'}) {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org