[dw-free] bold mutual interests on profile
[commit: http://hg.dwscoalition.org/dw-free/rev/a45e785fecfe]
http://bugs.dwscoalition.org/show_bug.cgi?id=765
Don't bold interests on your own profile.
Patch by
janinedog.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=765
Don't bold interests on your own profile.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/DW/Logic/ProfilePage.pm
-------------------------------------------------------------------------------- diff -r 7c5e3b950803 -r a45e785fecfe cgi-bin/DW/Logic/ProfilePage.pm --- a/cgi-bin/DW/Logic/ProfilePage.pm Tue Apr 14 08:32:00 2009 +0000 +++ b/cgi-bin/DW/Logic/ProfilePage.pm Tue Apr 14 16:01:34 2009 +0000 @@ -645,7 +645,8 @@ sub interests { LJ::text_out( \$intname ); my $eint = LJ::eurl( $intname ); if ( $intcount > 1 ) { - if ( $remote ) { + # bold shared interests on all profiles except your own + if ( $remote && !$remote->equals( $u ) ) { my %remote_intids = map { $_ => 1 } @{ LJ::get_interests( $remote, { justids => 1 } ) }; $intname = "<strong>$intname</strong>" if $remote_intids{$intid}; } --------------------------------------------------------------------------------