mirror of https://gitlab.com/bashrc2/epicyon
Redirect to a moderation url
parent
a7c94a006a
commit
6dbf97e172
|
@ -5346,8 +5346,9 @@ def htmlNewswire(newswire: str) -> str:
|
||||||
shown = False
|
shown = False
|
||||||
if len(item) > 2:
|
if len(item) > 2:
|
||||||
if item[2].startswith('moderate'):
|
if item[2].startswith('moderate'):
|
||||||
|
moderationUrl = '/moderate?' + item[1]
|
||||||
htmlStr += '<p class="newswireItemModerate">' + \
|
htmlStr += '<p class="newswireItemModerate">' + \
|
||||||
'<a href="' + item[1] + '">' + item[0] + '</a>'
|
'<a href="' + moderationUrl + '">' + item[0] + '</a>'
|
||||||
shown = True
|
shown = True
|
||||||
|
|
||||||
if not shown:
|
if not shown:
|
||||||
|
|
Loading…
Reference in New Issue