fix: Add hostname when description is missing (#1145)

This commit is contained in:
sgenoud 2019-04-10 16:57:37 +02:00 committed by Nolan Lawson
parent 49b0633a8d
commit 5642b10c72
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@
card: ({ originalStatus }) => originalStatus.card,
title: ({ card }) => card.title,
url: ({ card }) => card.url,
description: ({ card }) => card.description || card.provider_name,
hostname: ({ url }) => window.URL ? new window.URL(url).hostname : '',
description: ({ card, hostname }) => card.description || card.provider_name || hostname,
imageUrl: ({ card }) => card.image
},
methods: {