mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
chore(federation): ⬆️ Upgrade @lysand-org/federation to 2.1.1
This commit is contained in:
parent
da16a5d4c2
commit
ba56c98e35
|
|
@ -104,7 +104,7 @@
|
|||
"@json2csv/plainjs": "^7.0.6",
|
||||
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2",
|
||||
"@lysand-org/client": "^0.2.3",
|
||||
"@lysand-org/federation": "^2.1.0",
|
||||
"@lysand-org/federation": "^2.1.1",
|
||||
"@oclif/core": "^4.0.12",
|
||||
"@tufjs/canonical-json": "^2.0.0",
|
||||
"altcha-lib": "^0.4.0",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { ContentFormat } from "@lysand-org/federation/types";
|
|||
import { lookup } from "mime-types";
|
||||
import { config } from "~/packages/config-manager";
|
||||
|
||||
export const getBestContentType = (content?: ContentFormat) => {
|
||||
export const getBestContentType = (content?: ContentFormat | null) => {
|
||||
if (!content) {
|
||||
return { content: "", format: "text/plain" };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue