Permalink
Browse files

Jesus. Apparently "true" and "false" are just NOT BOOLEAN ENOUGH for …

…poor

little LiveJournal to comprehend: it wants "1" and "0".
  • Loading branch information...
1 parent 925cdd4 commit 9abc0d99f8891c1472407c6ed494c4874b6e4d2a @dagbrown committed with Dave Brown Oct 3, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/livejournaller.rb
View
@@ -164,6 +164,12 @@ def post subject, text, options = {}
end
end
+ [ :opt_nocomments, :opt_preformatted, :opt_backdated,
+ :opt_noemail, :hasscreened ].each do |boolean_option_name|
+ if Boolean === callhash[:props][boolean_option_name] then
+ callhash[:props][boolean_option_name] =
+ callhash[:props][boolean_option_name] ? 1 : 0
+ end
postevent callhash
end

0 comments on commit 9abc0d9

Please sign in to comment.