Fix typo to correctly limit toot length to 500 characters, fixes #13
This commit is contained in:
@ -25,7 +25,7 @@ def main():
|
|||||||
|
|
||||||
for feed in config['feeds']:
|
for feed in config['feeds']:
|
||||||
for entry in get_feed(feed['url'], config['updated']):
|
for entry in get_feed(feed['url'], config['updated']):
|
||||||
masto.status_post(feed['template'].format(**entry)[0:49999999999])
|
masto.status_post(feed['template'].format(**entry)[0:499])
|
||||||
|
|
||||||
save_config(config, config_file)
|
save_config(config, config_file)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user