Add description to files that aren't video or images
This commit is contained in:
parent
c9d3e0f8f6
commit
b6c6b1fc5f
@ -56,6 +56,9 @@ export default function File({ isValidFile, fileData }) {
|
|||||||
if (!isValidFile) {
|
if (!isValidFile) {
|
||||||
openGraph.description = "This file was not found, is this correct id?";
|
openGraph.description = "This file was not found, is this correct id?";
|
||||||
}
|
}
|
||||||
|
if (!isVideo && !isImage) {
|
||||||
|
openGraph.description = "Click to open and download this file";
|
||||||
|
}
|
||||||
if (imageOrVideo) {
|
if (imageOrVideo) {
|
||||||
openGraph = Object.assign(openGraph, imageOrVideo);
|
openGraph = Object.assign(openGraph, imageOrVideo);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user