microblog/app/templates/object.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2022-06-22 18:11:22 +00:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
2022-06-26 19:54:07 +00:00
{% block head %}
2022-07-01 17:35:34 +00:00
{% if outbox_object %}
2022-06-26 19:54:07 +00:00
<link rel="alternate" href="{{ request.url }}" type="application/activity+json">
<meta name="description" content="{{ outbox_object.content | html2text | trim | truncate(50) }}">
<meta content="article" property="og:type" />
<meta content="{{ outbox_object.url }}" property="og:url" />
<meta content="{{ local_actor.display_name }}'s microblog" property="og:site_name" />
<meta content="Note" property="og:title" />
<meta content="{{ outbox_object.content | html2text | trim | truncate(50) }}" property="og:description" />
<meta content="{{ local_actor.icon_url }}" property="og:image" />
<meta content="summary" property="twitter:card" />
2022-07-01 17:35:34 +00:00
{% endif %}
2022-06-26 19:54:07 +00:00
{% endblock %}
2022-06-22 18:11:22 +00:00
{% block content %}
{% include "header.html" %}
2022-06-24 21:09:37 +00:00
{% macro display_replies_tree(replies_tree_node) %}
2022-06-25 08:20:07 +00:00
{% if replies_tree_node.is_requested %}
2022-07-09 06:15:33 +00:00
{{ utils.display_object(replies_tree_node.ap_object, likes=likes, shares=shares, expanded=True) }}
2022-06-25 08:20:07 +00:00
{% else %}
{{ utils.display_object(replies_tree_node.ap_object) }}
{% endif %}
2022-06-24 21:09:37 +00:00
{% for child in replies_tree_node.children %}
{{ display_replies_tree(child) }}
{% endfor %}
{% endmacro %}
{{ display_replies_tree(replies_tree) }}
2022-06-22 18:11:22 +00:00
{% endblock %}