From 029ca318367fe46b80a25529c9245487d15ab683 Mon Sep 17 00:00:00 2001 From: Hexaitos Date: Mon, 11 Nov 2024 13:39:02 +0100 Subject: [PATCH] Add alt text to media --- main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.rb b/main.rb index 44c3344..c7da5b3 100644 --- a/main.rb +++ b/main.rb @@ -49,7 +49,7 @@ file = Faraday::Multipart::FilePart.new( response = conn.post('/api/v2/media') do |req| 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 puts response.status