diff --git a/blueprints/admin.py b/blueprints/admin.py index 72f5c2b..60dbc6c 100644 --- a/blueprints/admin.py +++ b/blueprints/admin.py @@ -336,6 +336,12 @@ def admin_new() -> _Response: ) +@blueprint.route("/admin/direct_messages", methods=["GET"]) +@login_required +def admin_direct_messages() -> _Response: + return htmlify(render_template("direct_messages.html")) + + @blueprint.route("/admin/lists", methods=["GET"]) @login_required def admin_lists() -> _Response: diff --git a/templates/layout.html b/templates/layout.html index 2c7099c..5293261 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -39,6 +39,8 @@ dt, dd { font-size: 0.9em; } {% if unread_notifications_count %} ({{unread_notifications_count}}) {% endif %} +
  • Lists
  • Bookmarks
  • Lookup
  • diff --git a/templates/new.html b/templates/new.html index 34c61e1..180cd11 100644 --- a/templates/new.html +++ b/templates/new.html @@ -19,7 +19,7 @@ {% endif %} {% endif %} -
    +
    - {{ utils.display_in_reply_to(item.meta, item.activity.object) }} - {% endif %} + {{ utils.display_in_reply_to(item.meta, item.activity.object) }} + {{ utils.display_note(item.activity.object, meta=item.meta) }} {% else %} {% if item | has_type('Announce') %} diff --git a/templates/utils.html b/templates/utils.html index b2175e9..0e5e831 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -59,7 +59,7 @@ {% if meta.in_reply_to_actor %} {{ display_actor_box(meta.in_reply_to_actor, before="in reply to", before_url=obj.inReplyTo) }} {% elif meta.in_reply_to_self %} - + self reply {% endif %} @@ -414,8 +414,14 @@ {% macro display_thread(thread, likes=[], shares=[]) -%} {% for reply in thread %} {% if reply._requested %} +
    +{{ display_in_reply_to(reply.meta, reply.activity.object) }} +
    {{ display_note(reply.activity.object, perma=True, likes=likes, shares=shares, meta=reply.meta) }} {% else %} +
    +{{ display_in_reply_to(reply.meta, reply.activity.object) }} +
    {{ display_note(reply.activity.object, perma=False, meta=reply.meta) }} {% endif %} {% endfor %}