forked from sam/fedifeed
add image descriptions
This commit is contained in:
parent
eae453813d
commit
fca1309e0b
2 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ function itemsForFeed(user,feed) {
|
|||
return a.type == "Document";
|
||||
}).map((a)=>{
|
||||
return {
|
||||
name:a.name,
|
||||
type:a.mediaType,
|
||||
url:a.url
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<% } else { %>
|
||||
<a target="_top" class="enclosure" href="<%= e.url %>" >
|
||||
<% if (e.type.indexOf('image') > -1){ %>
|
||||
<img src="<%= e.url %>"/>
|
||||
<img src="<%= e.url %>" alt="<%= e.name %>" title="<%= e.name %>"/>
|
||||
<% } else { %>
|
||||
<%= e.url %>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in a new issue