Add enrich_msg params

This commit is contained in:
Eloi Torrents 2025-09-05 10:17:24 +02:00
parent fa96dfd36d
commit 9f1aea1f5c

View File

@ -39,7 +39,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):
def enrich_msg(lines, is_atom=True, image_extensions=[], base_url=None):
if not is_atom:
return lines
content = []