From 745ca8d9c4867bd8e48601b13fe7e377f7648dfd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Nov 2020 22:03:58 +0000 Subject: [PATCH] Skip newswire items with no title --- webapp_column_right.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_column_right.py b/webapp_column_right.py index 1095b3b78..fad26c5a6 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -222,6 +222,8 @@ def htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, votesIndicator(totalVotes, positiveVoting) title = removeLongWords(item[0], 16, []).replace('\n', '
') + if not title: + continue htmlStr += '

' + \ '' + \ '' + title + \ @@ -248,6 +250,8 @@ def htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, votesIndicator(totalVotes, positiveVoting) title = removeLongWords(item[0], 16, []).replace('\n', '
') + if not title: + continue if moderator and moderatedItem: htmlStr += '

' + \ '' + \