view website/issues/detectors/no_texthtml.py @ 6623:aa52c5e114b2

highlight rest and xml-rpc support awesome-selfhosted had issues with my wording of the summary for their site. They wanted it to better match the official site.
author John Rouillard <rouilj@ieee.org>
date Sun, 13 Mar 2022 10:47:26 -0400
parents 0942fe89e82e
children
line wrap: on
line source


def audit_html_files(db, cl, nodeid, newvalues):
    if 'type' in newvalues and newvalues['type'] == 'text/html':
        newvalues['type'] = 'text/plain'
    

def init(db):
    db.file.audit('set', audit_html_files)
    db.file.audit('create', audit_html_files)

Roundup Issue Tracker: http://roundup-tracker.org/