diff --git a/components/Wildcard.js b/components/Wildcard.js
index 8367db26..847d06ab 100644
--- a/components/Wildcard.js
+++ b/components/Wildcard.js
@@ -17,7 +17,7 @@ const Header = (props) => (
{props.title}
{props.verbose && ({formatDate(new Date(props.date))})}
-
+ { props.uri ? : null }
)
diff --git a/screens/Post.js b/screens/Post.js
index af967fe4..f7eb5039 100644
--- a/screens/Post.js
+++ b/screens/Post.js
@@ -30,6 +30,7 @@ if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental
export default function Post({ route, navigation }) {
const { article, sourceName } = route.params
+ const articleImage = article["jetpack_featured_media_url"]
const featuredMedia = `${article["jetpack_featured_media_url"]}?w=${pixelRatio*width}`
const colorScheme = useColorScheme()
const theme = useTheme()
@@ -98,10 +99,14 @@ export default function Post({ route, navigation }) {
// That would vastly increase loading time when so many posts are being fetched at once,
// most of which are not going to be tapped on anyway.
- Model.media().id(article["featured_media"]).get().then(media => {
- setCaption(decode(media.caption?.rendered).slice(3, -5))
+ if(article["featuredMedia"]) {
+ Model.media().id(article["featured_media"]).get().then(media => {
+ setCaption(decode(media.caption?.rendered).slice(3, -5))
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
+ })
+ } else {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
- })
+ }
}, [article])
@@ -109,7 +114,7 @@ export default function Post({ route, navigation }) {