change config entry for post_template
parent
ce40985b7c
commit
518eba489c
|
@ -60,7 +60,7 @@ def main():
|
|||
if args.dry_run:
|
||||
print("trial run, not tooting ", entry["title"][:50])
|
||||
continue
|
||||
masto.status_post(feed['template'].format(**entry),
|
||||
masto.status_post(feed['post_template'].format(**entry),
|
||||
content_type='text/html',
|
||||
visbility=feed['visibility'])
|
||||
if not args.dry_run:
|
||||
|
@ -165,7 +165,7 @@ def setup(config_file):
|
|||
'url': url,
|
||||
'feeds_index': feeds_index,
|
||||
'tokens': tokens,
|
||||
'template': '{title} {summary} {url}'
|
||||
'post_template': '{title} {summary} {url}'
|
||||
}
|
||||
if not old_posts:
|
||||
config['updated'] = datetime.now(tz=timezone.utc).isoformat()
|
||||
|
|
Loading…
Reference in New Issue