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-15 13:01:55 -05:00
|
|
|
<title>{{ local_actor.display_name }}'s microblog</title>
|
2022-07-10 04:04:28 -05:00
|
|
|
<link rel="indieauth-metadata" href="{{ url_for("well_known_authorization_server") }}">
|
|
|
|
<link rel="authorization_endpoint" href="{{ url_for("indieauth_authorization_endpoint") }}">
|
|
|
|
<link rel="token_endpoint" href="{{ url_for("indieauth_token_endpoint") }}">
|
2022-07-17 11:43:08 -05:00
|
|
|
<link rel="micropub" href="{{ url_for("micropub_endpoint") }}">
|
2022-06-26 14:54:07 -05:00
|
|
|
<link rel="alternate" href="{{ local_actor.url }}" title="ActivityPub profile" type="application/activity+json">
|
|
|
|
<meta content="profile" property="og:type" />
|
|
|
|
<meta content="{{ local_actor.url }}" property="og:url" />
|
|
|
|
<meta content="{{ local_actor.display_name }}'s microblog" property="og:site_name" />
|
|
|
|
<meta content="Homepage" property="og:title" />
|
2022-06-27 01:30:29 -05:00
|
|
|
<meta content="{{ local_actor.summary | html2text | trim }}" property="og:description" />
|
2022-11-09 02:29:25 -06:00
|
|
|
<meta content="{{ ICON_URL }}" property="og:image" />
|
2022-06-26 14:54:07 -05:00
|
|
|
<meta content="summary" property="twitter:card" />
|
|
|
|
<meta content="{{ local_actor.handle }}" property="profile:username" />
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-22 13:11:22 -05:00
|
|
|
{% block content %}
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
2022-08-24 13:52:15 -05:00
|
|
|
{% if objects %}
|
2022-06-22 13:11:22 -05:00
|
|
|
|
2022-08-24 13:52:15 -05:00
|
|
|
<div class="h-feed">
|
|
|
|
<data class="p-name" value="{{ local_actor.display_name}}'s notes"></data>
|
|
|
|
{% for outbox_object in objects %}
|
2022-11-29 16:08:43 -06:00
|
|
|
{% if outbox_object.ap_type in ["Note", "Video", "Question"] %}
|
2022-08-24 13:52:15 -05:00
|
|
|
{{ utils.display_object(outbox_object) }}
|
|
|
|
{% elif outbox_object.ap_type == "Announce" %}
|
2022-11-27 09:29:49 -06:00
|
|
|
<div class="h-entry" id="{{ outbox_object.permalink_id }}">
|
|
|
|
<div class="shared-header"><strong><a class="p-author h-card" href="{{ local_actor.url }}">{{ utils.display_tiny_actor_icon(local_actor) }} {{ local_actor.display_name | clean_html(local_actor) | safe }}</a></strong> shared <span title="{{ outbox_object.ap_published_at.isoformat() }}">{{ outbox_object.ap_published_at | timeago }}</span></div>
|
|
|
|
<div class="h-cite u-repost-of">
|
|
|
|
{{ utils.display_object(outbox_object.relates_to_anybox_object, is_h_entry=False) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-09 02:33:34 -05:00
|
|
|
{% endif %}
|
2022-08-24 13:52:15 -05:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-06-22 13:11:22 -05:00
|
|
|
|
2022-11-30 13:11:20 -06:00
|
|
|
{% if has_previous_page or has_next_page %}
|
|
|
|
<div class="box">
|
|
|
|
{% if has_previous_page %}
|
|
|
|
<a href="{{ url_for("index") }}?page={{ current_page - 1 }}">Previous</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if has_next_page %}
|
|
|
|
<a href="{{ url_for("index") }}?page={{ current_page + 1 }}">Next</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-08-24 13:52:15 -05:00
|
|
|
|
|
|
|
{% else %}
|
2022-08-29 14:42:54 -05:00
|
|
|
<div class="empty-state">
|
2022-08-24 13:52:15 -05:00
|
|
|
<p>Nothing to see here yet!</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-06-22 13:11:22 -05:00
|
|
|
|
|
|
|
{% endblock %}
|