fix: Add hostname when description is missing (#1145)
This commit is contained in:
parent
49b0633a8d
commit
5642b10c72
|
@ -86,7 +86,8 @@
|
||||||
card: ({ originalStatus }) => originalStatus.card,
|
card: ({ originalStatus }) => originalStatus.card,
|
||||||
title: ({ card }) => card.title,
|
title: ({ card }) => card.title,
|
||||||
url: ({ card }) => card.url,
|
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
|
imageUrl: ({ card }) => card.image
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue