mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 02:34:27 +00:00
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
{%- import "utils.html" as utils with context -%}
|
|
{% extends "layout.html" %}
|
|
|
|
{% block head %}
|
|
<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" />
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% include "header.html" %}
|
|
|
|
{% macro display_replies_tree(replies_tree_node) %}
|
|
|
|
{% if replies_tree_node.is_requested %}
|
|
{{ utils.display_object_expanded(replies_tree_node.ap_object) }}
|
|
{% else %}
|
|
{{ utils.display_object(replies_tree_node.ap_object) }}
|
|
{% endif %}
|
|
|
|
{% for child in replies_tree_node.children %}
|
|
{{ display_replies_tree(child) }}
|
|
{% endfor %}
|
|
|
|
{% endmacro %}
|
|
|
|
{{ display_replies_tree(replies_tree) }}
|
|
|
|
{% endblock %}
|