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

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

        Patch from LiveJournal; prepared for Dreamwidth by denise. 

diffs (24 lines):

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);
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to