Skip to content

Commit

Permalink
fix to twitter tempfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Aug 13, 2024
1 parent 1a63baa commit 7dd1653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blue/twitter/send-post/lib/lib/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def upload(*media)

# Upload images
images.each_with_index.map do |image, i|
Tempfile.open do |tempfile|
Tempfile.open('twitter-', '/tmp') do |tempfile|
tempfile.write(image.body)
tempfile.rewind

Expand Down

0 comments on commit 7dd1653

Please sign in to comment.