журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22622: LJSUP-13244: XML RPC: lj-embed are not e...

Committer: nnikulochkina
LJSUP-13244: XML RPC: lj-embed are not expanded
U   trunk/cgi-bin/LJ/Entry.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2012-08-10 13:46:44 UTC (rev 22621)
+++ trunk/cgi-bin/LJ/Entry.pm	2012-08-10 13:49:41 UTC (rev 22622)
@@ -3232,12 +3232,6 @@
         LJ::Poll->expand_entry(\$row->{event_raw}, getpolls => 1, viewer => $remote );
     }
 
-    if ($opts->{asxml}) {
-        my $tidy = LJ::Tidy->new();
-        $row->{event_raw} ||= $entry->event_raw;
-        $row->{event_raw} = $tidy->clean( $row->{event_raw} );
-    }
-    
     if ($opts->{parseljtags}) {
         $row->{event_raw} ||= $entry->event_raw;
         $row->{event_raw} = LJ::convert_lj_tags_to_links(
@@ -3245,6 +3239,12 @@
             embed_url => $entry->url);
     }
 
+    if ($opts->{asxml}) {
+        my $tidy = LJ::Tidy->new();
+        $row->{event_raw} ||= $entry->event_raw;
+        $row->{event_raw} = $tidy->clean( $row->{event_raw} );
+    }
+    
 }
 
 1;

Tags: livejournal, nikulochkina, nnikulochkina, pm
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