From 15217f478955cd4bcb239a962407ad344a610c15 Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Tue, 8 Jul 2025 10:22:35 -0500 Subject: [PATCH] forgot some details in the post --- puppies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/puppies.py b/puppies.py index df27a58..cfd1c90 100644 --- a/puppies.py +++ b/puppies.py @@ -19,7 +19,10 @@ if unsplash_result.reason == 'OK': upload_result = post(media_endpoint, headers=puppy_hdr, data=payload, files=file) if upload_result.reason == 'OK': uploaded = DefaultMunch.fromDict(loads(upload_result.text)) - status_record = {'spoiler_text': 'Random puppy image courtesy of Unplash.com', 'status': f"{picture_details.description or picture_details.alt_description}\n\n{puppy_tags}", 'visibility': 'public', 'media_ids[]': [uploaded.id]} + status_record = {'spoiler_text': 'Random puppy image courtesy of Unplash.com', + 'status': f"{picture_details.description or picture_details.alt_description}\n({picture_details.user.name} - {picture_details.links.html})\n\n{puppy_tags}\n and because unsplash photos don\'t always have it ... #AltText4Me", + 'visibility': 'public', + 'media_ids[]': [uploaded.id]} post_result = post(post_endpoint, headers=puppy_hdr, data=status_record) if post_result.reason == 'OK': notify(-1, 'puppybot: ' + loads(post_result.text)['url'])