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

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

Committer: nnikulochkina
LJSUP-13244: XML RPC: lj-embed are not expanded
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-08-09 14:23:04 UTC (rev 22614)
+++ trunk/cgi-bin/ljprotocol.pl	2012-08-10 08:32:08 UTC (rev 22615)
@@ -1344,11 +1344,6 @@
         LJ::EmbedModule->expand_entry($entry->poster, \$h{event_raw}, get_video_id => 1) if $req->{get_video_ids};
         LJ::Poll->expand_entry(\$h{event_raw}, getpolls => 1, viewer => $u ) if $req->{get_polls};
 
-        if ($req->{'asxml'}) {
-            my $tidy = LJ::Tidy->new();
-            $h{event_raw} = $tidy->clean( $h{event_raw} );
-        }
-
         if ($req->{view}) {
             LJ::EmbedModule->expand_entry($entry->poster, \$h{event_raw}, edit => 1) if $req->{view} eq 'stored';
         } elsif ($req->{parseljtags}) {
@@ -1357,6 +1352,11 @@
                 embed_url => $entry->url)
         }
 
+        if ($req->{'asxml'}) {
+            my $tidy = LJ::Tidy->new();
+            $h{event_raw} = $tidy->clean( $h{event_raw} );
+        }
+
         #userpic
         $h{poster_userpic_url} = $h{userpic} && $h{userpic}->url;
 

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