Don't try to set the content if we didn't send any.
Patch by kareila.
diffs (13 lines):
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;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog