added new config option showTitleAsUrl to newsfeed module

This commit is contained in:
Karsten Hassel
2022-01-22 23:34:57 +01:00
parent d181365620
commit c4e7e42cdd
3 changed files with 21 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ Module.register("newsfeed", {
broadcastNewsFeeds: true,
broadcastNewsUpdates: true,
showDescription: false,
showTitleAsUrl: false,
wrapTitle: true,
wrapDescription: true,
truncDescription: true,
@@ -141,6 +142,7 @@ Module.register("newsfeed", {
sourceTitle: item.sourceTitle,
publishDate: moment(new Date(item.pubdate)).fromNow(),
title: item.title,
url: item.url,
description: item.description,
items: items
};