From 4dc132c7bc0e466f60d067eeb920a9c81253f97d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Nov 2020 12:40:40 +0000 Subject: [PATCH] Get first paragraph for feed description --- webinterface.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index a2933611..f1d27bac 100644 --- a/webinterface.py +++ b/webinterface.py @@ -25,6 +25,7 @@ from ssb import getSSBAddress from tox import getToxAddress from matrix import getMatrixAddress from donate import getDonationUrl +from utils import firstParagraphFromString from utils import getCSS from utils import isSystemAccount from utils import removeIdEnding @@ -969,10 +970,11 @@ def rssHashtagSearch(nickname: str, domain: str, port: int, ' ' + \ postJsonObject['object']['summary'] + \ '' + description = postJsonObject['object']['content'] + description = firstParagraphFromString(description) hashtagFeed += \ ' ' + description + ']]>' hashtagFeed += \ ' ' + rssDateStr + '' if postJsonObject['object'].get('attachment'):