This commit is contained in:
Eloi Torrents 2025-09-05 12:57:23 +02:00
parent 75e80c5993
commit 9034775a48
2 changed files with 3 additions and 2 deletions

View File

@ -549,6 +549,7 @@ if __name__ == "__main__":
updated = []
updated += writepage(tpl, tl, tc, cfg["page"],
paginate=True if new_posts is None else False)
cfg["rss"]["accepted_images"] = cfg["post"]["accepted_images"]
if cfg["rss"]["enabled"]:
# ensure output directory for feeds exists
if not os.path.exists("feeds"):

View File

@ -38,7 +38,7 @@ def _is_image_token(token: str, extensions):
return len(parts) == 2 and parts[1] in extensions
# this is similar to the markup function in microblog
def enrich_msg(lines, is_atom=True, image_extensions=[], base_url=None):
def enrich_msg(lines, is_atom=True, accepted_images=[], base_url=None):
if not is_atom:
return lines
content = []
@ -104,7 +104,7 @@ def write_feed(posts, filename, params, tagname=None):
enrich_msg(
msg,
base_url=params["url"],
image_extensions=params["image_extensions"],
accepted_images=params["accepted_images"],
)
)
else: