-
-
+ for (let r in responses) {
+ let part = responses[r];
-
- ${part.value.title}
-
-
-
- ${part.signing_channel.name || "Anon"}
-
-
- `);
+ if (part.value && part.value.thumbnail.url) {
+ renderedContentCollection.push(`
+
+
+
+
+
+ ${part.value.title}
+
+
+
+ ${part.signing_channel.name || "Anon"}
+
+
+ `);
+ }
+ }
}
- }
-
- renderedContentCollection.push(`
-
- `);
-
- displayTrendingContent(renderedContentCollection.join(""));
- });
+ renderedContentCollection.push(`
+
+ `);
+ displayTrendingContent(renderedContentCollection.join(""));
+ })
+ .catch(error => {
+ console.error(error);
+ });
}
}
diff --git a/package.json b/package.json
index f571c59..25d287e 100755
--- a/package.json
+++ b/package.json
@@ -44,7 +44,8 @@
"redis": "^2.8.0",
"slack-node": "^0.1.8",
"socket.io": "^2.2.0",
- "stringify-object": "^3.3.0"
+ "stringify-object": "^3.3.0",
+ "request": "latest"
},
"description": "Documentation for the LBRY protocol and associated projects",
"devDependencies": {