chore(federation): 👽 Initial Versia Working Draft 4.0 support

This commit is contained in:
Jesse Wierzbinski 2024-08-26 19:06:49 +02:00
parent 9c71c3fe51
commit c3fa867e74
No known key found for this signature in database
22 changed files with 269 additions and 197 deletions

View file

@ -1,4 +1,4 @@
import type { ContentFormat } from "@lysand-org/federation/types";
import type { ContentFormat } from "@versia/federation/types";
import { lookup } from "mime-types";
import { config } from "~/packages/config-manager";
@ -31,6 +31,7 @@ export const urlToContentFormat = (url?: string): ContentFormat | null => {
return {
"image/svg+xml": {
content: url,
remote: true,
},
};
}
@ -41,6 +42,7 @@ export const urlToContentFormat = (url?: string): ContentFormat | null => {
return {
[mimeType]: {
content: url,
remote: true,
},
};
};