replace full image url with thumbnail

This commit is contained in:
Morgan McMillian 2017-11-05 09:50:22 -08:00
parent d2fd41d81e
commit 282f3e1b0b

View file

@ -144,6 +144,7 @@ Container {
}
}
Container {
// TODO: add tab to open full image in a page
horizontalAlignment: HorizontalAlignment.Center
bottomMargin: ui.sdu(2.0)
WebImageView {
@ -152,7 +153,7 @@ Container {
if (typeof ListItemData.raw !== "undefined") {
ListItemData.raw.forEach(function (item) {
if (item["type"] == "io.pnut.core.oembed") {
oembed = item["value"]["url"]
oembed = item["value"]["thumbnail_url"]
}
})
}