2018-05-18 13:41:41 -05:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% import 'utils.html' as utils %}
|
|
|
|
{% block header %}
|
|
|
|
<link rel="self" href="{{ config.ID }}/">
|
|
|
|
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/">
|
|
|
|
<meta content="profile" property="og:type" />
|
|
|
|
<meta content="{{ config.ID }}" property="og:url" />
|
|
|
|
<meta content="{{ config.USERNAME }}" property="og:site_name" />
|
|
|
|
<meta content="{{ config.USERNAME }}" property="og:title" />
|
2019-09-08 08:19:43 -05:00
|
|
|
<meta content="{{ me.summary | html2plaintext | trim }}" property="og:description" />
|
2018-05-18 13:41:41 -05:00
|
|
|
<meta content="{{ me.icon.url }}" property="og:image" />
|
|
|
|
<meta content="200" property="og:image:width" />
|
|
|
|
<meta content="200" property="og:image:height" />
|
|
|
|
<meta content="summary" property="twitter:card" />
|
|
|
|
<meta content="{{config.USERNAME}}@{{ config.DOMAIN}}" property="profile:username" />
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="h-feed" id="container">
|
2018-06-25 16:45:43 -05:00
|
|
|
<data class="p-name" value="{{config.USERNAME}} notes"></data>
|
2018-05-18 13:41:41 -05:00
|
|
|
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
2019-09-08 07:54:47 -05:00
|
|
|
<main id="notes">
|
2018-07-22 15:22:30 -05:00
|
|
|
{% for item in pinned %}
|
|
|
|
{% if item.meta.pinned %}
|
|
|
|
<p style="margin-left:65px;padding-bottom:5px;">
|
|
|
|
<span class="bar-item-pinned">pinned</span>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ utils.display_note(item.activity.object, meta=item.meta, no_color=True) }}
|
|
|
|
{% endfor %}
|
|
|
|
|
2018-05-18 13:41:41 -05:00
|
|
|
{% for item in outbox_data %}
|
|
|
|
|
2018-06-29 15:16:26 -05:00
|
|
|
{% if item | has_type('Announce') %}
|
2019-02-24 14:04:09 -06:00
|
|
|
{% if "actor" in item.meta %}
|
2018-07-20 03:56:39 -05:00
|
|
|
{% set boost_actor = item.meta.actor %}
|
2018-07-07 05:10:25 -05:00
|
|
|
{% if session.logged_in %}
|
2019-07-05 15:05:28 -05:00
|
|
|
<div style="margin-left:65px;padding-bottom:5px;margin-bottom:15px;display:inline-block">
|
2018-07-07 05:10:25 -05:00
|
|
|
<form action="/api/undo" class="action-form" method="POST">
|
|
|
|
<input type="hidden" name="redirect" value="/"/>
|
|
|
|
<input type="hidden" name="id" value="{{ item.remote_id }}"/>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
|
|
<button type="submit" class="bar-item">unboost</button>
|
|
|
|
</form>
|
2019-10-20 08:29:58 -05:00
|
|
|
{{ utils.display_actor_box(boost_actor, after="boosted") }}
|
|
|
|
{{ utils.display_in_reply_to(item.meta, item.activity.object) }}
|
2018-07-07 05:10:25 -05:00
|
|
|
</div>
|
|
|
|
{% else %}
|
2019-07-05 15:05:28 -05:00
|
|
|
<p style="margin-left:65px;padding-bottom:5px;display:inline-block;">
|
2019-10-20 08:29:58 -05:00
|
|
|
{{ utils.display_actor_box(boost_actor, after="boosted") }}
|
|
|
|
{{ utils.display_in_reply_to(item.meta, item.activity.object) }}
|
2018-07-07 05:10:25 -05:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2019-02-24 14:04:09 -06:00
|
|
|
{% endif %}
|
2018-06-29 15:16:26 -05:00
|
|
|
{% if item.meta.object %}
|
2019-10-02 15:41:28 -05:00
|
|
|
{{ utils.display_note(item.meta.object, meta=item.meta) }}
|
2018-05-18 13:41:41 -05:00
|
|
|
{% endif %}
|
2018-06-29 15:16:26 -05:00
|
|
|
{% elif item | has_type('Create') %}
|
2019-10-20 08:29:58 -05:00
|
|
|
{% if item.activity.object.inReplyTo %}
|
|
|
|
<p style="margin-left:65px;padding-bottom:5px;display:inline-block;">
|
|
|
|
{{ utils.display_in_reply_to(item.meta, item.activity.object) }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-07-01 05:49:16 -05:00
|
|
|
{{ utils.display_note(item.activity.object, meta=item.meta, no_color=True) }}
|
2018-06-29 15:16:26 -05:00
|
|
|
{% endif %}
|
2018-05-18 13:41:41 -05:00
|
|
|
|
|
|
|
{% endfor %}
|
2018-07-06 16:53:33 -05:00
|
|
|
|
|
|
|
{{ utils.display_pagination(older_than, newer_than) }}
|
2019-09-08 07:54:47 -05:00
|
|
|
</main>
|
2018-05-18 13:41:41 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2018-07-10 16:19:00 -05:00
|
|
|
{% block links %}<link rel="alternate" href="{{ config.ME.url | get_url }}" title="ActivityPub profile" type="application/activity+json">
|
|
|
|
<link rel="alternate" href="{{ config.ID }}/feed.json" type="application/json" title="JSON Feed">
|
|
|
|
<link rel="alternate" href="{{ config.ID }}/feed.rss" type="application/rss+xml" title="RSS">
|
|
|
|
<link rel="alternate" href="{{ config.ID }}/feed.atom" type="application/atom+xml" title="Atom 0.3">
|
|
|
|
{{ utils.display_pagination_links(older_than, newer_than) }}{% endblock %}
|