unoffical wafrn mirror wafrn.net
atproto social-network activitypub
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

do not call the database that much

+2 -1
+2 -1
packages/backend/utils/activitypub/checkFediverseSignature.ts
··· 13 13 import { LdSignature } from "./rsa2017.js"; 14 14 import { getAdminUser } from "../getAdminAndDeletedUser.js"; 15 15 16 + const adminUser = getAdminUser(); 17 + 16 18 function getCheckFediverseSignatureFunction(force = false) { 17 19 return async function checkFediverseSignature( 18 20 req: SignedRequest, ··· 28 30 ? `petition without sighead ${req.header("user-agent")}` 29 31 : "somewhere not specified"; 30 32 let remoteUserUrl = ""; 31 - const adminUser = getAdminUser(); 32 33 try { 33 34 const headersToValidate = ["(request-target)", "host", "date"]; 34 35 if (req.method === "POST") {