From ba409ef2fcf028be95b27bf94fd24e1295888d07 Mon Sep 17 00:00:00 2001
From: Pitu <heyitspitu@gmail.com>
Date: Thu, 21 Jan 2021 01:35:04 +0900
Subject: chore: update metadata

---
 src/site/pages/a/_identifier.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/site/pages/a/_identifier.vue')

diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue
index 6aecde6..d9abf0a 100644
--- a/src/site/pages/a/_identifier.vue
+++ b/src/site/pages/a/_identifier.vue
@@ -146,8 +146,9 @@ export default {
 	},
 	head() {
 		if (this.files) {
-			const image = this.isNsfw ? logo : this.files.length ? this.files[0].thumbSquare : logo;
+			const image = this.isNsfw ? logo : this.files.length ? this.files[0].url : logo;
 			const title = this.name ? this.isNsfw ? `[NSFW] ${this.name}` : this.name : '';
+			const description = `Files: ${this.totalFiles}`;
 			return {
 				title,
 				meta: [
@@ -156,6 +157,8 @@ export default {
 					{ hid: 'twitter:image', name: 'twitter:image', content: image },
 					{ hid: 'twitter:label1', name: 'twitter:label1', value: 'Files' },
 					{ hid: 'twitter:data1', name: 'twitter:data1', value: this.totalFiles },
+					{ hid: 'twitter:description', name: 'twitter:description', content: description },
+					{ hid: 'og:description', property: 'og:description', content: description },
 					{ hid: 'og:url', property: 'og:url', content: `${this.config.URL}/a/${this.$route.params.identifier}` },
 					{ hid: 'og:title', property: 'og:title', content: title },
 					{ hid: 'og:image', property: 'og:image', content: image },
-- 
cgit v1.2.3

