From fca1309e0b8d449e8d5829f756ed7fdd24b48a6f Mon Sep 17 00:00:00 2001 From: fenwick67 Date: Wed, 31 Jul 2019 14:52:17 -0400 Subject: [PATCH] add image descriptions --- lib/convertv2.js | 1 + lib/template.ejs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/convertv2.js b/lib/convertv2.js index 5996e87..7d0172e 100644 --- a/lib/convertv2.js +++ b/lib/convertv2.js @@ -76,6 +76,7 @@ function itemsForFeed(user,feed) { return a.type == "Document"; }).map((a)=>{ return { + name:a.name, type:a.mediaType, url:a.url } diff --git a/lib/template.ejs b/lib/template.ejs index f26e7ed..dd20448 100644 --- a/lib/template.ejs +++ b/lib/template.ejs @@ -75,7 +75,7 @@ <% } else { %> <% if (e.type.indexOf('image') > -1){ %> - + <%= e.name %> <% } else { %> <%= e.url %> <% } %>