Adjust Pixelfed description order

This commit is contained in:
Fred Boniface 2023-11-06 00:05:44 +00:00
parent f920ad6f15
commit 0b223fe094

View File

@ -18,7 +18,7 @@ def formatPost(file: dict):
tag_string = formatTags(file['tags']) tag_string = formatTags(file['tags'])
if load_config.config['pixelfed']['add_to_description']: if load_config.config['pixelfed']['add_to_description']:
file['description'] = file['description'] + load_config.config['pixelfed']['add_to_description'] file['description'] = file['description'] + load_config.config['pixelfed']['add_to_description']
return f"{file['title']} | {formatDate(file['create'])} \n {file['description']} \n {tag_string}" return f"{file['title']} | {file['description']} \n {formatDate(file['create'])} \n {tag_string}"
def formatTags(tags: list): def formatTags(tags: list):
formatted_tags = ['#' + tag.title().replace(' ', '') for tag in tags] formatted_tags = ['#' + tag.title().replace(' ', '') for tag in tags]