Add alt text to media

This commit is contained in:
Hexaitos 2024-11-11 13:39:02 +01:00
parent ccf6ddeab5
commit 029ca31836
1 changed files with 1 additions and 1 deletions

View File

@ -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