chore: filter unnecessary tag

This commit is contained in:
Cory Dransfeldt 2023-11-05 20:09:03 -08:00
parent 8f92695c24
commit 3c745ab3e8

View file

@ -12,7 +12,7 @@ module.exports = async function () {
return { return {
title: link['description'], title: link['description'],
url: link['href'], url: link['href'],
tags: [...new Set(link['tags'].split(' '))], tags: [...new Set(link['tags'].split(' ').filter((tag) => tag.toLowerCase() !== 'share'))],
date: link['time'], date: link['time'],
description: link['extended'], description: link['extended'],
} }