From 282f3e1b0bfa89045fcbf49199368d8adfc8857e Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 5 Nov 2017 09:50:22 -0800 Subject: [PATCH] replace full image url with thumbnail --- assets/PostItem.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/PostItem.qml b/assets/PostItem.qml index 7b847d3..dcda1c3 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -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"] } }) }