2022-06-22 13:11:22 -05:00
|
|
|
{%- import "utils.html" as utils with context -%}
|
|
|
|
{% extends "layout.html" %}
|
2022-06-26 14:54:07 -05:00
|
|
|
|
|
|
|
{% block head %}
|
2022-07-01 12:35:34 -05:00
|
|
|
{% if outbox_object %}
|
2022-07-15 13:01:55 -05:00
|
|
|
{% set excerpt = outbox_object.content | html2text | trim | truncate(50) %}
|
|
|
|
<title>{{ local_actor.display_name }}: "{{ excerpt }}"</title>
|
2022-07-10 12:19:55 -05:00
|
|
|
<link rel="webmention" href="{{ url_for("webmention_endpoint") }}">
|
2022-06-26 14:54:07 -05:00
|
|
|
<link rel="alternate" href="{{ request.url }}" type="application/activity+json">
|
2022-07-15 13:01:55 -05:00
|
|
|
<meta name="description" content="{{ excerpt }}">
|
2022-06-26 14:54:07 -05:00
|
|
|
<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" />
|
2022-07-15 13:01:55 -05:00
|
|
|
<meta content="{{ excerpt }}" property="og:description" />
|
2022-06-26 14:54:07 -05:00
|
|
|
<meta content="{{ local_actor.icon_url }}" property="og:image" />
|
|
|
|
<meta content="summary" property="twitter:card" />
|
2022-07-01 12:35:34 -05:00
|
|
|
{% endif %}
|
2022-06-26 14:54:07 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-22 13:11:22 -05:00
|
|
|
{% block content %}
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
2022-06-24 16:09:37 -05:00
|
|
|
{% macro display_replies_tree(replies_tree_node) %}
|
|
|
|
|
2022-06-25 03:20:07 -05:00
|
|
|
{% if replies_tree_node.is_requested %}
|
2022-07-14 09:29:17 -05:00
|
|
|
{{ utils.display_object(replies_tree_node.ap_object, likes=likes, shares=shares, webmentions=webmentions, expanded=not replies_tree_node.is_root) }}
|
2022-06-25 03:20:07 -05:00
|
|
|
{% else %}
|
|
|
|
{{ utils.display_object(replies_tree_node.ap_object) }}
|
|
|
|
{% endif %}
|
|
|
|
|
2022-06-24 16:09:37 -05:00
|
|
|
{% for child in replies_tree_node.children %}
|
|
|
|
{{ display_replies_tree(child) }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{{ display_replies_tree(replies_tree) }}
|
2022-06-22 13:11:22 -05:00
|
|
|
|
|
|
|
{% endblock %}
|