Fix BuildError: nav links to renamed api_info endpoint

base.html referenced url_for('api_hello'), but that endpoint is now
api_info (/api/info). Since every page extends base.html, the dead
reference raised werkzeug BuildError and returned HTTP 500 site-wide --
including /finger/<user>, which federated Mastodon instances fetch for
link previews. The 500s also defeated nginx's 200-only cache, so every
fetch re-ran the finger subprocess against the daemon on mammut.
This commit is contained in:
pmb
2026-06-15 17:01:56 -07:00
parent 295a123717
commit b99636d3c0
+1 -1
View File
@@ -33,7 +33,7 @@
<a class="nav-link" href="{{ url_for('finger') }}">Finger</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('api_hello') }}" target="_blank">API</a>
<a class="nav-link" href="{{ url_for('api_info') }}" target="_blank">API</a>
</li>
</ul>
</div>