diff --git a/lib/adamantium/client/mastodon.rb b/lib/adamantium/client/mastodon.rb index f5c63c9..3190676 100644 --- a/lib/adamantium/client/mastodon.rb +++ b/lib/adamantium/client/mastodon.rb @@ -60,7 +60,7 @@ module Adamantium file_size = file.size.to_f / 2**20 formatted_file_size = "%.2f" % file_size - return if formatted_file_size > 2.0 + return if formatted_file_size.to_i > 2.0 response = HTTParty.post("#{mastodon_server}api/v2/media", { headers: {