Skip to content

Commit b537781

Browse files
committed
🔀 Merge #486 updates to deploy/rinkeby
2 parents 29c61fa + d89d3f2 commit b537781

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎pages/nft/url/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,15 @@ export default class FetchIndex extends Vue {
643643
}
644644
645645
async crawlUrlData() {
646+
const isNewsPress = !!this.$route.query.news_press && this.$route.query.news_press !== '0'
646647
try {
647648
logTrackerEvent(this, 'NFTUrlMint', 'CrawlUrlData', this.url, 1);
648649
const { data } = await this.$axios.get(`/crawler/?url=${encodeURIComponent(this.encodedURL)}&wallet=${this.address}`)
649-
const { title, description, keywords, author, body, images = [] } = data
650+
const { title, description, author, body, images = [] } = data;
651+
let {keywords} = data;
652+
if(isNewsPress) {
653+
keywords = keywords ? `${keywords},NewsPress` : 'NewsPress';
654+
}
650655
if (!body) { throw new Error('CANNOT_CRAWL_THIS_URL') }
651656
if (title === 'patreon.com' && description === '') { throw new Error('SITE_NOT_CRAWLABLE: pateron') }
652657
this.iscnData = { title, description, keywords, author }

0 commit comments

Comments
 (0)