Skip to content

Commit

Permalink
Use attachment1 as opts for image stream
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclmrvn committed Dec 16, 2013
1 parent 5d4362c commit 7856ffd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/lolcommits/plugins/lol_yammer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def run
retries = 2
begin
lolimage = File.new(self.runner.main_image)
attacment = client.create_pending_attachment(lolimage)
debug attacment.body.inspect
response = client.create_message(post)
response = client.create_message(post, :attachment1 => lolimage)
debug response.body.inspect
if response
puts "\t--> Status posted!" unless self.runner.capture_stealth
Expand Down

0 comments on commit 7856ffd

Please sign in to comment.