diff --git a/app/ap_object.py b/app/ap_object.py index 67543cb..788d267 100644 --- a/app/ap_object.py +++ b/app/ap_object.py @@ -96,6 +96,9 @@ class Object: def attachments(self) -> list["Attachment"]: attachments = [] for obj in ap.as_list(self.ap_object.get("attachment", [])): + if obj.get("type") == "PropertyValue": + continue + if obj.get("type") == "Link": attachments.append( Attachment.parse_obj( diff --git a/app/scss/main.scss b/app/scss/main.scss index fe9747d..dc99b1c 100644 --- a/app/scss/main.scss +++ b/app/scss/main.scss @@ -531,3 +531,13 @@ a.label-btn { text-decoration: underline; } } + +.ap-place { + h3 { + display: inline; + font-weight: normal; + } + h3::after { + content: ': '; + } +} diff --git a/app/templates/utils.html b/app/templates/utils.html index 18644a1..7a33730 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -383,6 +383,7 @@ {% block display_attachments scoped %} {% for attachment in object.attachments %} + {% if attachment.type != "PropertyValue" %} {% if object.sensitive and (attachment.type == "Image" or (attachment | has_media_type("image")) or attachment.type == "Video" or (attachment | has_media_type("video"))) %}
{% endif %} + {% endif %} {% endfor %} {% endblock %} {% endmacro %} @@ -425,7 +427,7 @@ {% macro display_object(object, likes=[], shares=[], webmentions=[], expanded=False, actors_metadata={}, is_object_page=False) %} {% block display_object scoped %} {% set is_article_mode = object.is_from_outbox and object.ap_type == "Article" and is_object_page %} -{% if object.ap_type in ["Note", "Article", "Video", "Page", "Question"] %} +{% if object.ap_type in ["Note", "Article", "Video", "Page", "Question", "Event"] %}