From c68e2b2d223c57836e04e18105255cf0e10ae75b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Feb 2022 10:31:54 +0100 Subject: Fix plaintext markdown converter --- server/controllers/feeds.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/controllers') diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts index 3c8680ca4..e6cdaf94b 100644 --- a/server/controllers/feeds.ts +++ b/server/controllers/feeds.ts @@ -1,6 +1,6 @@ import express from 'express' import Feed from 'pfeed' -import { mdToPlainText, toSafeHtml } from '@server/helpers/markdown' +import { mdToOneLinePlainText, toSafeHtml } from '@server/helpers/markdown' import { getServerActor } from '@server/models/application/application' import { getCategoryLabel } from '@server/models/video/formatter/video-format-utils' import { VideoInclude } from '@shared/models' @@ -236,7 +236,7 @@ function initFeed (parameters: { return new Feed({ title: name, - description: mdToPlainText(description), + description: mdToOneLinePlainText(description), // updated: TODO: somehowGetLatestUpdate, // optional, default = today id: webserverUrl, link: webserverUrl, @@ -299,7 +299,7 @@ function addVideosToFeed (feed, videos: VideoModel[]) { title: video.name, id: video.url, link: WEBSERVER.URL + video.getWatchStaticPath(), - description: mdToPlainText(video.getTruncatedDescription()), + description: mdToOneLinePlainText(video.getTruncatedDescription()), content: toSafeHtml(video.description), author: [ { -- cgit v1.2.3