Add alt text to media
This commit is contained in:
parent
ccf6ddeab5
commit
029ca31836
2
main.rb
2
main.rb
|
@ -49,7 +49,7 @@ file = Faraday::Multipart::FilePart.new(
|
||||||
|
|
||||||
response = conn.post('/api/v2/media') do |req|
|
response = conn.post('/api/v2/media') do |req|
|
||||||
req.headers['Authorization'] = "Bearer #{auth_token}"
|
req.headers['Authorization'] = "Bearer #{auth_token}"
|
||||||
req.body = { file: file }
|
req.body = { file: file, description: "A photo of a bird of prey taken from Wikimedia Commons. The photo was described as follows by the original uploader or creator: #{desc_sanitised}" }
|
||||||
end
|
end
|
||||||
|
|
||||||
puts response.status
|
puts response.status
|
||||||
|
|
Loading…
Reference in New Issue