feat: align frontend languages with posts api
This commit is contained in:
@@ -35,6 +35,7 @@ function postMatchesType(post: Post, type: string): boolean {
|
||||
return a.kind === "image" || a.mime.startsWith("image/");
|
||||
if (type === "video")
|
||||
return a.kind === "video" || a.mime.startsWith("video/");
|
||||
if (type === "music") return a.mime.startsWith("audio/") || ext === "mp3";
|
||||
if (type === "pdf") return ext === "pdf" || a.mime === "application/pdf";
|
||||
if (type === "ppt")
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user