Add more debug data

This commit is contained in:
Jesse Wierzbinski 2024-04-09 20:57:29 -10:00
parent 80d592de48
commit b30dd98f73
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -17,13 +17,13 @@ import { parse } from "marked";
import { client } from "~database/datasource";
import type { APIAttachment } from "~types/entities/attachment";
import type { APIStatus } from "~types/entities/status";
import type { LysandPublication, Note } from "~types/lysand/Object";
import type { Note } from "~types/lysand/Object";
import type * as Lysand from "lysand-types";
import { applicationToAPI } from "./Application";
import { attachmentToAPI, attachmentToLysand } from "./Attachment";
import { emojiToAPI, emojiToLysand, parseEmojis } from "./Emoji";
import type { UserWithRelations } from "./User";
import { resolveUser, parseMentionsUris, userToAPI } from "./User";
import { resolveUser, userToAPI } from "./User";
import { statusAndUserRelations, userRelations } from "./relations";
import { objectToInboxRequest } from "./Federation";

View file

@ -134,6 +134,10 @@ export const resolveUser = async (uri: string) => {
if (foundUser) return foundUser;
if (!URL.canParse(uri)) {
throw new Error(`Invalid URI to parse ${uri}`);
}
const response = await fetch(uri, {
method: "GET",
headers: {