fix(scripts): fix typo
fix typo Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
parent
f44ced4946
commit
aa2f401636
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user