Add debug mode to help debug thread issues
This commit is contained in:
23
templates/note_debug.html
Normal file
23
templates/note_debug.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "layout.html" %}
|
||||
{% import 'utils.html' as utils %}
|
||||
{% block title %}{{ config.NAME }}: "{{ note.activity.object.content | html2plaintext | truncate(50) }}"{% endblock %}
|
||||
{% block header %}
|
||||
<meta content="article" property="og:type" />
|
||||
<meta content="{{ note.activity.object.url }}" property="og:url" />
|
||||
|
||||
<meta content="{{ config.USERNAME }}" property="og:site_name" />
|
||||
<meta content="{{ config.USERNAME }}" property="og:title" />
|
||||
<meta content="{{ note.activity.object.content | html2plaintext | truncate(50) }}" property="og:description" />
|
||||
<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" />
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div id="container">
|
||||
{% include "header.html" %}
|
||||
<pre><code>{{ thread | remove_mongo_id | tojson(indent=4) }}</code></pre>
|
||||
{{ utils.display_thread(thread, likes=likes, shares=shares) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block links %}<link rel="alternate" href="{{ note.activity.object.id}}" type="application/activity+json">{% endblock %}
|
Reference in New Issue
Block a user