Fix bugs found in the audit
- People tiles resolve a bare photo filename to /uploads, via personPhoto - api.ts keeps the Accept header when a request sets its own headers - Feedback hashes IPs with auth.js's salt and client IP helper - Drop the better-sqlite3 fallback (not installed); require Node 22.13+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9d8de0176e
commit
693dd84b6e
6 changed files with 15 additions and 56 deletions
|
|
@ -38,8 +38,8 @@ export class ApiError extends Error {
|
|||
|
||||
async function request(path, options: RequestInit = {}) {
|
||||
const response = await fetch(`${BASE}${path}`, {
|
||||
headers: { Accept: "application/json", ...options.headers },
|
||||
...options,
|
||||
headers: { Accept: "application/json", ...options.headers },
|
||||
});
|
||||
|
||||
if (response.status === 204) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue