Committer: ssafronova
LJSUP-7271: a post that contains the username is not displayed correctly in the LJliveU trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2010-11-01 11:31:10 UTC (rev 17627) +++ trunk/cgi-bin/LJ/S2.pm 2010-11-01 12:37:36 UTC (rev 17628) @@ -1924,7 +1924,7 @@ $e->{'metadata'}->{'location'} = $loc->as_html_current if $loc; } - foreach my $key (qw/origin_url origin_author origin_date/) { + foreach my $key (qw/origin_url origin_author origin_date thumbnail/) { if ($p->{$key}) { $e->{'metadata'}->{$key} = $p->{$key}; LJ::CleanHTML::clean_subject(\$e->{'metadata'}->{$key}); @@ -1935,6 +1935,10 @@ $e->{'metadata'}->{'origin_url'} = "<a href='$e->{metadata}->{origin_url}'>$e->{metadata}->{origin_url}</a>"; } + if ($p->{'thumbnail'}) { + $e->{'metadata'}->{'thumbnail'} = "<img src='$p->{'thumbnail'}'>"; + } + if (LJ::is_enabled('show_copyright', $u) && (LJ::Request->notes('codepath') eq 's2.entry' || LJ::Request->notes('codepath') eq 's2.reply')) { if ($p->{'copyright'} eq 'C' and $arg->{'security'} eq "public") { $e->{'metadata'}->{'<small>Ø '} = $LJ::S2::CURR_CTX->[S2::PROPS]->{"text_copyr_disagree"} . '</small>';