fix(scripts): fix typo

fix typo

Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
Ching 2022-02-11 22:25:47 +08:00
parent f44ced4946
commit aa2f401636

View File

@ -39,7 +39,7 @@ def send_image_to_mastodon(image_url, text):
media_ids = [toot_resp['id']]
mastodon_cli.status_post(text, media_ids=media_ids)
logger.info('send %s', text)
image_name = urlparse(url).path.split('/')[-1]
image_name = url.path.split('/')[-1]
with open(settings.MASTODON_SYNCED_IMAGES_LOG, 'a') as f:
f.write(image_name + '\n')