kopia lustrzana https://github.com/snarfed/bridgy-fed
tweak per-user responses page UI
rodzic
b24a22e817
commit
d8a71c9a9d
5
logs.py
5
logs.py
|
@ -54,7 +54,10 @@ def responses(domain=None):
|
|||
'start_time': calendar.timegm(r.updated.timetuple()),
|
||||
})
|
||||
|
||||
vars = {'responses': sorted(responses, key=lambda r: r.updated, reverse=True)}
|
||||
vars = {
|
||||
'domain': domain,
|
||||
'responses': sorted(responses, key=lambda r: r.updated, reverse=True),
|
||||
}
|
||||
|
||||
# calculate new paging param(s)
|
||||
new_after = (
|
||||
|
|
|
@ -134,6 +134,10 @@ To receive likes, reposts, replies, and follows from fedsocnets, just make sure
|
|||
<p>
|
||||
The webmention source URL will usually be a proxy page on <code>fed.brid.gy</code>. For best results, <a href="https://brid.gy/about#appspot">make sure your webmention handler detects and handles <code>u-url</code> links</a>!
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You can see your recent interactions at <a href="https://fed.brid.gy/responses/[your-domain.com]">fed.brid.gy/responses/[your-domain.com]</a>.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li id="setup" class="question">How do I set it up?</li>
|
||||
|
@ -238,7 +242,7 @@ I love scotch. Scotchy scotchy scotch.
|
|||
<li class="answer">
|
||||
<p>If you sent a webmention, check the HTTP response code and body. It will usually describe the error.</p>
|
||||
<p>If you got an HTTP 204 from an attempt to federate a response to Mastodon, that means Mastodon accepted the response. If it doesn't show up, that's a known inconsistency right now. We're actively working with them to debug these cases.</p>
|
||||
<p>You can also <a href="/responses">see recent Bridgy Fed requests here</a>, including raw logs. Warning: not for the faint of heart!</p>
|
||||
<p>You can also <a href="/responses">see all recent Bridgy Fed requests here</a>, including raw logs. Warning: not for the faint of heart!</p>
|
||||
</li>
|
||||
|
||||
<li id="cost" class="question">How much does it cost?</li>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title>Bridgy Fed: Logs</title>
|
||||
<title>Bridgy Fed: {{ domain or 'Recent activity' }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="mobile-web-app-capable" content="yes"/>
|
||||
<link rel="stylesheet" href="/oauth_dropins_static/bootstrap.min.css" />
|
||||
|
@ -11,8 +11,8 @@
|
|||
|
||||
<body>
|
||||
<main class="tp-main lead container">
|
||||
<h1>Bridgy Fed: Logs</h1>
|
||||
<h3>Recent requests we've attempted to federate.</h3>
|
||||
<h1>Bridgy Fed</h1>
|
||||
<h3>{{ domain or 'Recent activity' }}</h3>
|
||||
|
||||
<table>
|
||||
<tr><th>Source</th> <th>Target</th> <th>Protocol</th> <th>Status</th> <th>Time (click for log)</th></tr>
|
||||
|
|
Ładowanie…
Reference in New Issue