fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-11-02 07:26 am

[dw-free] Revamp /update

[commit: http://hg.dwscoalition.org/dw-free/rev/7dd50fab01f2]

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

Fix crossposts -- need to use ditemid, not entry item id.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Controller/Entry.pm
--------------------------------------------------------------------------------
diff -r 0efc26e399c0 -r 7dd50fab01f2 cgi-bin/DW/Controller/Entry.pm
--- a/cgi-bin/DW/Controller/Entry.pm	Tue Nov 01 19:16:44 2011 +0800
+++ b/cgi-bin/DW/Controller/Entry.pm	Wed Nov 02 15:26:24 2011 +0800
@@ -706,7 +706,7 @@
         if ( $u->equals( $ju ) && $form_req->{crosspost_entry} ) {
             my $user_crosspost = $form_req->{crosspost};
             my ( $xpost_successes, $xpost_errors ) =
-                LJ::Protocol::schedule_xposts( $u, $res->{itemid}, 0,
+                LJ::Protocol::schedule_xposts( $u, $ditemid, 0,
                         sub {
                             my $submitted = $user_crosspost->{$_[0]->acctid} || {};
 
--------------------------------------------------------------------------------