lib/ayadn/action.rb in ayadn-2.0.2 vs lib/ayadn/action.rb in ayadn-2.0.3
- old
+ new
@@ -641,10 +641,10 @@
pinner.ask_credentials
@status.pin_creds_saved
end
credentials = pinner.load_credentials
maker = Struct.new(:username, :password, :url, :tags, :text, :description)
- bookmark = maker.new(credentials[0], credentials[1], resp['canonical_url'], usertags.join(","), post_text, links[0])
+ bookmark = maker.new(credentials[0], credentials[1], resp['canonical_url'], usertags.join(","), post_text, resp['canonical_url'])
@status.saving_pin
pinner.pin(bookmark)
@status.done
rescue => e
Errors.global_error({error: e, caller: caller, data: [post_id, usertags]})