diff --git a/posts.py b/posts.py index 55850fb01..f2318279a 100644 --- a/posts.py +++ b/posts.py @@ -512,6 +512,7 @@ def _getCommonWords() -> str: 'using', 'uses', 'https', 'still', 'want', 'wants' ) + def _updateWordFrequency(content: str, wordFrequency: {}) -> None: """Creates a dictionary containing words and the number of times that they appear diff --git a/webapp_moderation.py b/webapp_moderation.py index 6530d64a5..482210b39 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -145,7 +145,9 @@ def htmlAccountInfo(cssCache: {}, translate: {}, ctr = 1 for postDomain, blockedPostUrls in domainDict.items(): infoForm += '' + postDomain + ' ' + httpPrefix + '://' + postDomain + '" ' + \ + 'target="_blank" rel="nofollow noopener noreferrer">' + \ + postDomain + ' ' if isBlockedDomain(baseDir, postDomain): blockedPostsLinks = '' urlCtr = 0 @@ -153,7 +155,9 @@ def htmlAccountInfo(cssCache: {}, translate: {}, if urlCtr > 0: blockedPostsLinks += '
' blockedPostsLinks += \ - '' + url + '' + '' + \ + url + '' urlCtr += 1 blockedPostsHtml = '' if blockedPostsLinks: @@ -194,7 +198,8 @@ def htmlAccountInfo(cssCache: {}, translate: {}, followingDomain, followingPort = getDomainFromActor(actor) followingDomainFull = \ getFullDomain(followingDomain, followingPort) - infoForm += '' + \ + infoForm += '' + \ followingNickname + '@' + followingDomainFull + \ '

\n' infoForm += '\n' @@ -211,7 +216,8 @@ def htmlAccountInfo(cssCache: {}, translate: {}, followerNickname = getNicknameFromActor(actor) followerDomain, followerPort = getDomainFromActor(actor) followerDomainFull = getFullDomain(followerDomain, followerPort) - infoForm += '' + \ + infoForm += '' + \ followerNickname + '@' + followerDomainFull + '

\n' infoForm += '\n'