From b6c6b1fc5fadd222f99f2841b8f26e2680d1387a Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Nov 2022 07:19:17 +0000 Subject: [PATCH] Add description to files that aren't video or images --- src/pages/files/[fileId].js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/files/[fileId].js b/src/pages/files/[fileId].js index cf36b11..cb9e339 100644 --- a/src/pages/files/[fileId].js +++ b/src/pages/files/[fileId].js @@ -56,6 +56,9 @@ export default function File({ isValidFile, fileData }) { if (!isValidFile) { 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) { openGraph = Object.assign(openGraph, imageOrVideo); }