madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21605: LJSUP-11646: Incorrect tag returned in r...

Committer: sbelyaev
LJSUP-11646: Incorrect tag returned in response ( tag 
)
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-03-30 10:20:45 UTC (rev 21604)
+++ trunk/cgi-bin/ljprotocol.pl	2012-03-30 10:40:23 UTC (rev 21605)
@@ -1245,6 +1245,11 @@
         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}) {
@@ -1253,11 +1258,6 @@
                 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, madeon, pl, sbelyaev
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