diff --git a/data/titles.json b/data/titles.json index 20d77292..a618cea2 100644 --- a/data/titles.json +++ b/data/titles.json @@ -4,7 +4,7 @@ "link": "https://github.com/Crossbell-Box/xLog/graphs/contributors", "list": [ 10, 30, 12, 32022, 32179, 45, 19, 4583, 4381, 32168, 33446, 33492, 52055, - 153, 50143, 51470, 31132, 45089, 50351, 52343, 5825 + 153, 50143, 51470, 31132, 45089, 50351, 52343, 5825, 51406 ] } ] diff --git a/src/components/ui/APlayer.tsx b/src/components/ui/APlayer.tsx index cb963d2b..5795d21a 100644 --- a/src/components/ui/APlayer.tsx +++ b/src/components/ui/APlayer.tsx @@ -15,9 +15,6 @@ export const APlayer: React.FC< if (cover) { cover = toGateway(cover) } - if (lrc) { - lrc = toGateway(lrc) - } if (name) { name = name.replace(/^user-content-/, "") } diff --git a/src/pages/dashboard/[subdomain]/editor.tsx b/src/pages/dashboard/[subdomain]/editor.tsx index 7cc27183..fa9bb1e3 100644 --- a/src/pages/dashboard/[subdomain]/editor.tsx +++ b/src/pages/dashboard/[subdomain]/editor.tsx @@ -394,10 +394,9 @@ export default function SubdomainEditor() { try { if ( !file.type.startsWith("image/") && - !file.type.startsWith("audio/") && - !(file.type === "text/plain" && file.name.endsWith(".lrc")) + !file.type.startsWith("audio/") ) { - throw new Error("You can only upload images, audios or .lrc files") + throw new Error("You can only upload images and audios") } const { key } = await uploadFile(file)