Committer: amyshkin
LJSUP-9996: Update default userpic for community in contextual popupU trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml =================================================================== --- trunk/htdocs/tools/endpoints/ctxpopup.bml 2011-10-11 07:13:31 UTC (rev 20275) +++ trunk/htdocs/tools/endpoints/ctxpopup.bml 2011-10-11 07:18:23 UTC (rev 20276) @@ -87,22 +87,31 @@ $ret{url_userpic} = $up->url; $ret{userpic_w} = $up->width; $ret{userpic_h} = $up->height; - } else { + } + else { # if it's a feed, make their userpic the feed icon if ($u->is_syndicated) { $ret{url_userpic} = "$LJ::IMGPREFIX/feed100x100.png"; - } elsif ($u->is_identity) { + } + elsif ($u->is_identity) { ## show OpedID placeholder for OpenID accounts, and ## default placeholder for all the rest identities (Facebook, Twitter etc) my $identity = $u->identity; + if ($identity && $identity->isa("LJ::Identity::OpenID")) { $ret{url_userpic} = "$LJ::IMGPREFIX/identity_100x100.png"; - } else { + } + else { $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif"; } - } else { + } + elsif ( $u->is_comm ) { + $ret{'url_userpic'} = "$LJ::IMGPREFIX/profile_icons/comm.gif"; + } + else { $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif"; } + $ret{userpic_w} = 100; $ret{userpic_h} = 100; }