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} || {};
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org