[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
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2743
Remove current_mood_extra hook (leftover sponsored moodthemes code)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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'}) { --------------------------------------------------------------------------------