afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-07-11 08:09 am

[dw-free] Viewing entries moderation queue doesn't display non-whitelisted videos

[commit: http://hg.dwscoalition.org/dw-free/rev/83b16513deb0]

http://bugs.dwscoalition.org/show_bug.cgi?id=1357

Embedded videos from moderation queue should be parsed as the community's,
not as the poster's.

Codemerge: http://community.livejournal.com/changelog/7403229.html

Patch from LiveJournal; prepared for Dreamwidth by denise.

Files modified:
  • cgi-bin/ljprotocol.pl
  • htdocs/community/moderate.bml
--------------------------------------------------------------------------------
diff -r 405f9bcfe713 -r 83b16513deb0 cgi-bin/ljprotocol.pl
--- a/cgi-bin/ljprotocol.pl	Sat Jul 11 08:01:53 2009 +0000
+++ b/cgi-bin/ljprotocol.pl	Sat Jul 11 16:07:50 2009 +0800
@@ -1261,7 +1261,7 @@ sub postevent
             $req->{'_moderate'}->{'authcode'} = LJ::make_auth_code(15);
 
             # create tag <lj-embed> from HTML-tag <embed>
-            LJ::EmbedModule->parse_module_embed($u, \$req->{event});
+            LJ::EmbedModule->parse_module_embed($uowner, \$req->{event});
 
             my $fr = $dbcm->quote(Storable::freeze($req));
             return fail($err, 409) if length($fr) > 600_000;
diff -r 405f9bcfe713 -r 83b16513deb0 htdocs/community/moderate.bml
--- a/htdocs/community/moderate.bml	Sat Jul 11 08:01:53 2009 +0000
+++ b/htdocs/community/moderate.bml	Sat Jul 11 16:07:50 2009 +0800
@@ -357,7 +357,7 @@ body<=
                                          });
 
         # create iframe from <lj-embed> tag
-        LJ::EmbedModule->expand_entry($up, \$event);
+        LJ::EmbedModule->expand_entry($c, \$event);
 
         BML::ebml(\$event);
 
--------------------------------------------------------------------------------