Add support for displaying Page object
This commit is contained in:
parent
7ba2408c8d
commit
4a975dcbfa
4 changed files with 25 additions and 9 deletions
|
@ -78,7 +78,6 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac
|
|||
# Next:
|
||||
# - UI support for updating posts
|
||||
# - Support for processing update
|
||||
# - Page support
|
||||
# - Article support
|
||||
# - Fix tests
|
||||
# - Fix SQL tx in the codebase
|
||||
|
@ -1087,8 +1086,8 @@ async def _gen_rss_feed(
|
|||
|
||||
if outbox_object.attachments:
|
||||
for attachment in outbox_object.attachments:
|
||||
if attachment.type == "Image" or attachment.media_type.startswith(
|
||||
"image"
|
||||
if attachment.type == "Image" or (
|
||||
attachment.media_type and attachment.media_type.startswith("image")
|
||||
):
|
||||
content += f'<img src="{attachment.url}">'
|
||||
# TODO(ts): other attachment types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue