From 4bff74136ca84d91d5c1721f7a5b23cc0a58cfdc Mon Sep 17 00:00:00 2001 From: William Chong Date: Mon, 20 Jan 2025 15:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20Conditional=20export=20json=20da?= =?UTF-8?q?ta=20in=20view=20iscn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/view/_iscnId/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/view/_iscnId/index.vue b/pages/view/_iscnId/index.vue index 6d7d0cc0..a0144d86 100644 --- a/pages/view/_iscnId/index.vue +++ b/pages/view/_iscnId/index.vue @@ -899,14 +899,16 @@ export default class ViewIscnIdPage extends Vue { handleClickDownload() { logTrackerEvent(this, 'ISCNView', 'ClickDownload', this.iscnId, 1) + const { sameAs, metadata } = this.metadata const generateData = { contentMetadata: { - ...this.metadata, + ...metadata, + sameAs: this.isIscnOwner ? sameAs : undefined, '@type': this.type, '@context': "http://schema.org/", }, stakeholders: this.recordData?.stakeholders, - contentFingerprints: this.recordData.contentFingerprints, + contentFingerprints: this.isIscnOwner ? this.recordData.contentFingerprints : undefined, recordNotes: '', }