remove alt from data json

This commit is contained in:
Nico Jensen 2023-08-23 16:22:36 +02:00
parent e2cbb4e090
commit fe62d71067

View File

@ -41,8 +41,7 @@ class PixelfedAPI:
} }
data = { data = {
"status": ImageDescription, "status": ImageDescription,
"media_ids": [ImageID], "media_ids": [ImageID]
"alt": ImageAltDescription
} }
try: try:
response = requests.post(apiurl, headers=headers, json=data) response = requests.post(apiurl, headers=headers, json=data)