mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore(federation): 👽 Initial Versia Working Draft 4.0 support
This commit is contained in:
parent
9c71c3fe51
commit
c3fa867e74
22 changed files with 269 additions and 197 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue