Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r15446: LJSV-363: Viewing entries in moderation ...

Committer: gariev
LJSV-363: Viewing entries in moderation queue doesn't display non-whitelisted videos
Bugfix: embeds are saved in community, not in poster's journal

U   branches/r51/cgi-bin/ljprotocol.pl
U   branches/r51/htdocs/community/moderate.bml
Modified: branches/r51/cgi-bin/ljprotocol.pl
===================================================================
--- branches/r51/cgi-bin/ljprotocol.pl	2009-07-09 05:43:52 UTC (rev 15445)
+++ branches/r51/cgi-bin/ljprotocol.pl	2009-07-09 06:15:50 UTC (rev 15446)
@@ -1261,7 +1261,7 @@
             $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) > 200_000;

Modified: branches/r51/htdocs/community/moderate.bml
===================================================================
--- branches/r51/htdocs/community/moderate.bml	2009-07-09 05:43:52 UTC (rev 15445)
+++ branches/r51/htdocs/community/moderate.bml	2009-07-09 06:15:50 UTC (rev 15446)
@@ -370,7 +370,7 @@
                                          });
         
         # create iframe from <lj-embed> tag
-        LJ::EmbedModule->expand_entry($up, \$event);
+        LJ::EmbedModule->expand_entry($c, \$event);
 
         BML::ebml(\$event);
 

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