Default to content type HTML;

Correct name to XHTML;
Improve CSS.
This commit is contained in:
Schimon Jehudah, Adv. 2024-07-12 18:05:33 +03:00
parent 694c8bb489
commit eb280b5aab
4 changed files with 7 additions and 5 deletions

View file

@ -298,7 +298,7 @@ def generate_atom(iq, link):
content_type = content.attrib['type'] if 'type' in content.attrib else 'text'
content_type_text = 'html' if 'html' in content_type else 'text'
else:
content_type_text = 'text'
content_type_text = 'html'
published = item_payload.find(namespace + 'published')
published_text = None if published == None else published.text
updated = item_payload.find(namespace + 'updated')