Redirect to a moderation url

main
Bob Mottram 2020-10-05 12:47:53 +00:00
parent a7c94a006a
commit 6dbf97e172
1 changed files with 2 additions and 1 deletions

View File

@ -5346,8 +5346,9 @@ def htmlNewswire(newswire: str) -> str:
shown = False
if len(item) > 2:
if item[2].startswith('moderate'):
moderationUrl = '/moderate?' + item[1]
htmlStr += '<p class="newswireItemModerate">' + \
'<a href="' + item[1] + '">' + item[0] + '</a>'
'<a href="' + moderationUrl + '">' + item[0] + '</a>'
shown = True
if not shown: