Committer: ailyin
LJSUP-7915 (Native sharing server side)U trunk/cgi-bin/LJ/S2/EntryPage.pm U trunk/htdocs/talkread.bml
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/EntryPage.pm 2011-03-09 08:42:22 UTC (rev 18485) +++ trunk/cgi-bin/LJ/S2/EntryPage.pm 2011-03-09 10:19:39 UTC (rev 18486) @@ -354,6 +354,16 @@ $p->{'head_content'} .= $js; } + my %meta = ( + 'title' => LJ::Text->drop_html($entry->subject_raw), + 'description' => LJ::Text->drop_html($entry->event_raw), + ); + + $p->{'head_content'} .= qq[ + <meta name="title" value="$meta{'title'}"/> + <meta name="description" value="$meta{'description'}"/> + ]; + LJ::need_res(qw( js/commentmanage.js )); Modified: trunk/htdocs/talkread.bml =================================================================== --- trunk/htdocs/talkread.bml 2011-03-09 08:42:22 UTC (rev 18485) +++ trunk/htdocs/talkread.bml 2011-03-09 10:19:39 UTC (rev 18486) @@ -101,6 +101,16 @@ $$head .= $LJ::SHARE_THIS_URL_GEN->(journal => $u->username) unless $LJ::DISABLED{'sharethis'}; + my %meta = ( + 'title' => LJ::Text->drop_html($entry->subject_raw), + 'description' => LJ::Text->drop_html($entry->event_raw), + ); + + $$head .= qq[ + <meta name="title" value="$meta{'title'}"/> + <meta name="description" value="$meta{'description'}"/> + ]; + unless ($item && $item->{'anum'} == $init->{'anum'}) { LJ::Request->pnotes ('error' => 'e404'); LJ::Request->pnotes ('remote' => LJ::get_remote());