fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-28 09:47 am

[dw-free] clean up error logs

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

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

Don't try to set the content if we didn't send any.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm
--------------------------------------------------------------------------------
diff -r 0d57bab283f6 -r d1735726b4ac cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm
--- a/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm	Sat Aug 28 17:35:13 2010 +0800
+++ b/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm	Sat Aug 28 17:46:52 2010 +0800
@@ -145,7 +145,8 @@ sub handle_post {
     # an explanation
     $entry->title(   LJ::no_utf8_flag( $entry->title         ));
     $entry->link(    LJ::no_utf8_flag( $entry->link          ));
-    $entry->content( LJ::no_utf8_flag( $entry->content->body ));
+    $entry->content( LJ::no_utf8_flag( $entry->content->body ))
+        if $entry->content;
 
     my @tags;
 
--------------------------------------------------------------------------------