From c515b8a5bdda977e93116952619eb929dc5c3f96 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sat, 26 Dec 2020 14:20:41 +0000
Subject: [PATCH 01/38] Try setting style
---
webapp_column_right.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webapp_column_right.py b/webapp_column_right.py
index 36e1daada..5216e241d 100644
--- a/webapp_column_right.py
+++ b/webapp_column_right.py
@@ -190,7 +190,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
def getBrokenFavSubstitute() -> str:
"""Substitute link used if a favicon is not available
"""
- return " onerror=\"this.onerror=null; this.src=''\""
+ return " onerror=\"this.onerror=null; this.style='width:0%'; this.src=''\""
def getFavicon(url: str) -> str:
From 48fbe278494c64c33a6a67c470563db36a1b235b Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sat, 26 Dec 2020 17:03:53 +0000
Subject: [PATCH 02/38] Apply replacements within content warnings
---
webapp_post.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/webapp_post.py b/webapp_post.py
index 2daff3307..c297e8357 100644
--- a/webapp_post.py
+++ b/webapp_post.py
@@ -1506,6 +1506,8 @@ def individualPostAsHtml(allowDownloads: bool,
cwContentStr = \
insertQuestion(baseDir, translate, nickname, domain, port,
cwContentStr, postJsonObject, pageNumber)
+ cwContentStr = \
+ switchWords(baseDir, nickname, domain, cwContentStr)
if not isBlogPost(postJsonObject):
# get the content warning button
contentStr += \
From 908e6b5c84583f98d439631db58ec2f0b2b9ae74 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sun, 27 Dec 2020 14:04:48 +0000
Subject: [PATCH 03/38] Add article tags
---
webapp_post.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/webapp_post.py b/webapp_post.py
index c297e8357..2a1586ecd 100644
--- a/webapp_post.py
+++ b/webapp_post.py
@@ -1482,6 +1482,8 @@ def individualPostAsHtml(allowDownloads: bool,
objectContent = \
postJsonObject['object']['content']
+ objectContent = '' + objectContent + ''
+
if not postIsSensitive:
contentStr = objectContent + attachmentStr
contentStr = addEmbeddedElements(translate, contentStr,
From f3122480d2c9693cfdc5528a16788e2028c1606e Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sun, 27 Dec 2020 15:22:14 +0000
Subject: [PATCH 04/38] Navigation markup
---
webapp_column_left.py | 2 ++
webapp_column_right.py | 3 +++
2 files changed, 5 insertions(+)
diff --git a/webapp_column_left.py b/webapp_column_left.py
index 6d444d839..cb2ba283e 100644
--- a/webapp_column_left.py
+++ b/webapp_column_left.py
@@ -171,6 +171,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
linksList = sharesList + linksList
if linksList:
+ htmlStr += '\n'
if firstSeparatorAdded:
htmlStr += separatorStr
diff --git a/webapp_column_right.py b/webapp_column_right.py
index 5216e241d..c8ba14c0f 100644
--- a/webapp_column_right.py
+++ b/webapp_column_right.py
@@ -297,6 +297,9 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
totalVotesStr
htmlStr += ' '
htmlStr += dateShown + '
\n'
+
+ if htmlStr:
+ htmlStr = '\n'
return htmlStr
From 11d804bb4efb5a9921701c056a5a522beb96423d Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sun, 27 Dec 2020 16:42:03 +0000
Subject: [PATCH 05/38] Navigation markup
---
webapp_headerbuttons.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py
index 83bb68cb1..0ab548174 100644
--- a/webapp_headerbuttons.py
+++ b/webapp_headerbuttons.py
@@ -48,7 +48,7 @@ def headerButtonsTimeline(defaultTimeline: str,
buttons for inbox, outbox, search, calendar, etc
"""
# start of the button header with inbox, outbox, etc
- tlStr = '\n'
+ tlStr += ' \n'
return tlStr
From 3bc7dfb837b136ac64359dc0026b651729be20e1 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sun, 27 Dec 2020 16:57:15 +0000
Subject: [PATCH 06/38] Header markup
---
webapp_column_left.py | 4 +++-
webapp_column_right.py | 4 +++-
webapp_create_post.py | 4 +++-
webapp_search.py | 4 +++-
webapp_timeline.py | 4 +++-
5 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/webapp_column_left.py b/webapp_column_left.py
index cb2ba283e..3157d9857 100644
--- a/webapp_column_left.py
+++ b/webapp_column_left.py
@@ -325,11 +325,13 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
# top banner
editLinksForm += \
+ '\n'
editLinksForm += \
'