diff --git a/webinterface.py b/webinterface.py index 0f86c7f2e..9baaf060c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1300,7 +1300,7 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str: title = item[0] url = item[1] nick = item[2] - # status = item[3] + status = item[3] postFilename = item[4].replace('/', '#') # create the html for this post @@ -1321,16 +1321,26 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str: resultStr += \ '' - resultStr += \ - '' + if '[vote:' + nickname + ':approve]' in status: + resultStr += \ + '' + else: + resultStr += \ + '' resultStr += \ '' - resultStr += \ - '' + if '[vote:' + nickname + ':deny]' in status: + resultStr += \ + '' + else: + resultStr += \ + '' resultStr += \ '