vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21487: LJSUP-11599: Remove description field fr...

Committer: vad
LJSUP-11599: Remove description field from the sharing initialization script
U   trunk/cgi-bin/LJ/Share.pm
Modified: trunk/cgi-bin/LJ/Share.pm
===================================================================
--- trunk/cgi-bin/LJ/Share.pm	2012-03-21 11:47:58 UTC (rev 21486)
+++ trunk/cgi-bin/LJ/Share.pm	2012-03-21 12:01:47 UTC (rev 21487)
@@ -79,7 +79,6 @@
 
     if ( my $entry = delete $opts->{'entry'} ) {
         $opts->{'title'}        = LJ::ejs( LJ::Text->drop_html($entry->subject_raw) );
-        $opts->{'description'}  = LJ::ejs( LJ::Text->drop_html($entry->event_raw) );
         $opts->{'url'}          = $entry->url;
 
         if ($opts->{'title'}){
@@ -88,12 +87,6 @@
             $opts->{'title'}       = Encode::encode_utf8($opts->{'title'});
         }
 
-        if ($opts->{'description'}){
-            $opts->{'description'} = Encode::decode_utf8($opts->{description});
-            $opts->{'description'} =~ s/\r|\n|\x85|\x{2028}|\x{2029}//gsm;
-            $opts->{'description'} = Encode::encode_utf8($opts->{description});
-        }
-
     }
 
     my $opts_out = LJ::JSON->to_json($opts);

Tags: livejournal, pm, vad, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments